Posts

Showing posts from October, 2020

Arduino Servo Code

Image
Arduino Servo Code        Hardware Required Arduino  Servo   Circuit STEP = 1       STEP = 2 STEP = 3 STEP = 4  STEP = 5 CODE STEP = 6   #include <Servo.h> Servo myservo;  // create servo object to control a servo // twelve servo objects can be created on most boards int pos = 0;    // variable to store the servo position void setup() {   myservo.attach(9);  // attaches the servo on pin 9 to the servo object } void loop() {   for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees     // in steps of 1 degree     myservo.write(pos);              // tell servo to go to position in variable 'pos'     delay(15);                       // waits 15ms for the servo to reach the position   }   for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees     myservo.write(pos);              // tell servo to go to position in variable 'pos'     delay(15);                       // waits 15ms for the servo to reach the position   }

Arduino blinking led code

Image
Arduino blink ing LED code   Arduino blinking LED code Arduino  Led220  ohm Resistor STEP = 1 STEP = 2 STEP = 3 STEP = 4 STEP = 5 CODE void setup() {   pinMode(13, OUTPUT); } void loop() {   digitalWrite(13, HIGH);   delay(1000); // Wait for 1000 millisecond(s)   digitalWrite(13, LOW);   delay(1000); // Wait for 1000 millisecond(s) }     Related to Arduino blinking led code   Multiple blinking led: arduino code Alternate led blinking arduino code Blinking led arduino circuit diagram Running led arduino code Arduino blink function Led arduino projects Led blinking program Arduino blink led 5 times circuit board arduino ide voltage regulator ftdi chip arduino project arduino uno r3 reset button icsp header output pin usb cable raspberry pi development board arduino is an open source uno board arduino software latest version interactive objects arduino development analog input power supply   arduino blinking led code without delay arduino led blink code download arduino led blink code a