Servo Motors

 Hardware Required:

.Arduino

. BreadBoard

. Servo Motor

. Wires



First the red wire is connected to the 5V of Arduino then the black wire is connected to GND of arduino. Lastly orange wire is connected to -9V of arduino to the servo motor.

Code



Outcome


The servo motor starts moving from 0 to 180 degrees and 180 to 0 degrees.

Comments

Popular posts from this blog

Arduino PIR sensor LED and Buzzer

Quantum Learning Companion

Passive Infrared sensors