
Project 2
Fully Controlling Our Robotic Arm
with the Rotary Encoder
Supplies
• Jumper wires (7)
• 5 V 2A power supply
(1)
• Micro screwdriver
(1)
• MG995 servos (4)
• Micro servo (1)
• Joystick (1)
• Arduino and
programming cable
(1)
• Barrel jack adapter
(1)
• Breadboard (1)
• Rotary-encoder
module (1)
155Chapter 8: Rotary Encoder Control
WHAT ARE WE BUILDING?
Now that our rotary encoder is working and we have developed a sketch
that allows us to control the position of one of our motors using our rotary
encoder, we can now write a slightly more complicated program that will
allow us to control the entire robotic arm using just one rotary encoder. The