The first device I will be using from the kit is the
Servo Motor, which is an output device.
Where I will write a code using
Arduino IDE, upload it to the
Arduino Nano, and then the
Servo Motor will operate.
To begin, I used a built-in example called
Sweep.
The servo motor has Three wires to be connected:
1. Ground wire(brown or black) to be connected to
GNF on the
Arduino Nano.
2. Power wire (red) to be connected to
5V on the
ArduinoNano.
3. Signle wire (yellow) to be connected to a digital pin on the
Arduino Nano.
*You can see below how to connect wires between the
Servo Motor and
Arduino Nano.
*Press on
Code to see the written code, and then on
Start Simulation to see how the code is working.