Introduction: RFID Reader With Servo

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.

Comments

author
Wrrr 10-G (author)2016-05-29

Open Sesame!

author
DIY Hacks and How Tos (author)2016-05-25

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

About This Instructable

1,360views

29favorites

License:

More by houtroe:RFID Reader With Servo
Add instructable to: