How To Upload Code In Arduino Uno And Arduino Nano

 


Arduino Uno 


Arduino Nano 



Basic Arduino Codes:-


Servo Motor Test :-

Connections:
Servo Motor                      Arduino 
Signal                                  D9
+ve                                       5v
-ve                                        GND


Code:-

#include <Servo.h>

Servo myServo;

void setup() {
  myServo.attach(9); // Attach servo to pin D9
}

void loop() {
  myServo.write(0); // Move to 0°
  delay(1000);

  myServo.write(90); // Move to 90°
  delay(1000);

  myServo.write(180); // Move to 180°
  delay(1000);
}







Thankyou...

Comments

Popular posts from this blog

EMO Robot Using Arduino Nano

Obstacle Avoiding Robot Car Arduino Project

RC Bluetooth Car

4 Best Science Projects For School Without Using Arduino

SENSOR TUTORIAL

ARDUINO TUTORIAL

BASIC SERVO MOTOR TEST

RAIN ALARM PROJECT

AUTOMATIC TOLL GATE PROJECT

Drone Tech | How To Make Mini Drone For Science Exhibition It Can Fly || Remote Control Drone