RFID Reader With Servo

4,217

30

4

In this instruction I'm just going to tell you about making a simple circuit with 2 LED's, a servo ,an RFID reader and a arduino uno.

You will need:

- 2 LED (2 different collors)
- a servo motor
- an RFID reader and key
- an arduino uno
- a few wires
- 2x 10kohm resistors
-a breadboard

Step 1: Wiring

The wiring is very simple.

RFID reader:

- RX and TX to pin 10 and 11 respectively ( the position of these pins on your RFID reader depends on the type, therefore I'm not giving a diagram)

LED's

- red: pin 8
- blue: pin 7

Servo:

- pin 9

Step 2: Programming

After the wiring is done you can start to program the arduino.

The goal is to have the servo move and the blue LED light up , when the RFID key passes in front of the coil.

The code is very straigt forward.

It uses the Servo and the SoftwareSerial library to control the servo and the RFID reader.

Step 3: Result

The result of your wiring and coding should be that:

- The servo moves and the blue LED lights up when waving the RFID key in front of the coil.

- After a while the red light goes back on and the servo returns to its original position.

If this is the case, then congratulations.

If not, check the code and wiring for errors, and try again.

Share

    Recommendations

    • Epilog X Contest

      Epilog X Contest
    • Paper Contest

      Paper Contest
    • Faux-Real Contest

      Faux-Real Contest

    4 Discussions

    0
    None
    KevinB554

    4 weeks ago

    how do I configure the RFID tag?

    0
    None
    SarahB400

    1 year ago

    hi, i'm new with the arduino... i have a rfid rc522... how should i wire it?

    0
    None
    Wrrr 10-G

    2 years ago

    Open Sesame!

    0
    None

    Cool project. This kind of setup would let you make all sorts of wireless sensors.