Aurdino Programming
I programme the arduino board by using Arduino IDE app which installed in the laptop.After I connect the USB Micro Port B with arduino board and mt laptop,then I open the Arduino IDE app and go to File > Examples > Servo > Sweep. Then I adjust the value for pos value in the void loop part, one is used to control the servo from 0 o to 180 o and the other is used to control the servo from 180 o to 0 o .Besides I also adjust the value for delay part .As I finish adjusting these value so I can get the speed of servo motor moving desired. The code below is the source codes I used #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 ...