Arduino Micro Servo Keypad

Published

Introduction: Arduino Micro Servo Keypad

For this project, I made created a micro servo that pivots to a three digit value input by a keypad.

The libraries need to run the setup are "Servo.h" and "Keypad.h". Both can be installed in the arduino.exe program. The materials needed include:

1)breadboard

2)keypad

3)servo

4)Arduino

5)male to male jumper wires

Step 1: Connecting Servo

The servo is the thing connected to the power and ground on the breadboard. So make sure your set up is just like mine as shown above. You may want to glue or hold down your servo with something so that it doesnt run away from you and it will be a lot easier and neater to work with.

Step 2: Connecting the Keypad

Connect the keypad exactly as shown above. Left to Right (9,8,7,6,5,4,3,2) should be the pins. The keypad is the input so it wont work correctly if the wires are not correctly connected to the pins. The keypad is a 4x4 matrix but the letters and symbols wont be counted into to numerical position of the servo. Only the numbers will be sent to the servo position.

Step 3: CODE

The servo my spin around when the value is zero, but that may just be your servo. But other than that, make sure you download the libraries to let the code work.

Share

    Recommendations

    • Water Contest

      Water Contest
    • Oil Contest

      Oil Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    Discussions