Thursday, November 19, 2015

Arduino_Servo

Arduino Servo

Hardware

Servo motors have three wires: power, ground, and signal.
The power wire is typically red, and should be connected to the 5V pin on the Arduino
The ground wire is typically black or brown and should be connected to a ground pin on the board.
For my experiments i used some Servos with
  • Yellow Signal    (In the two scripts below Pin 9)
  • Red      +5V
  • Brown Ground

Example 1: Sweep

This script sweeps the servo

Example 2: Servo Potentiometer control

This script uses a potentiometer to control the servo..
I used the KY-023 XY-axis joystick module ( potmeter in X direction VRx )


More info


No comments: