Você está na página 1de 4

technology

workshop

living

food

play

outside

Wiring and programming the Parallax RFID Serial Card Reader for the Arduino
by Kev_MacD on April 30, 2012

Table of Contents
Wiring and programming the Parallax RFID Serial Card Reader for the Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Intro: Wiring and programming the Parallax RFID Serial Card Reader for the Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 1: Wiring the RFID Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 2: Loading the SoftwareSerial Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 3: RFID Sketch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

http://www.instructables.com/id/Wiring-and-programming-the-Parallax-RFID-Serial-Ca/

Intro: Wiring and programming the Parallax RFID Serial Card Reader for the Arduino
I recently completed an RFID project using an Arduino and the Parallax RFID Serial Card Reader - here are the hardware and software notes on making it all work.
Parts List:
1 - Arduino ( I am using an UNO R3 for this demo)
2 - Parallax RFID Serial Card Reader
3 - Solderless Breadboard

Step 1: Wiring the RFID Reader


Insert the RFID board into the solderless breadboard.
Jumper 5V to VCC on the RFID Board
Jumper GND to GND on the RFID Board
Jumper Digital IO pin 2 on the Arduino to /Enable on the RFID Board
Jumper Digital IO pin 5 on the Ardunio to SOUT on the RFID Board
If you power up the Arduino the LED on the RFID Reader should light green. In the next steps we will load the library and code to make the reader work.

http://www.instructables.com/id/Wiring-and-programming-the-Parallax-RFID-Serial-Ca/

Step 2: Loading the SoftwareSerial Library


The SoftwareSerial Library is a core library for Arduino - there should be no need to install it. If you need to install it for some reason, visit the Arduino site.
http://arduino.cc/en/Reference/Libraries

http://www.instructables.com/id/Wiring-and-programming-the-Parallax-RFID-Serial-Ca/

Step 3: RFID Sketch


Load the RFID Sketch below. The Sketch uses the Serial Monitor on the Arduino IDE to output the reader data at 9600 baud.
The Sketch also uses the SoftwareSerial library to make a connection to the SOUT pin on the reader at 2400 baud using Pin 2 on the Arduino.
The /Enable pin must be held low for the reader to work. The LED turns RED when the Reader is enabled.
Each tag read will be stored in the RFIDTAG variable. Note that the reader will continually read a tag that is within range, so the code "remembers" the last tag and
ignores duplicate reads.

File Downloads

RFID_Reader.ino (2 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'RFID_Reader.ino']

Related Instructables

RFID Reader!
Identify
anything with
RFID from credit
cards to license
plates by
simonfrfr

AVR/Arduino
RFID Reader
with UART Code
in C by nevdull

RFID Reader!
MK: II, Card
identifiers by
simonfrfr

Arduino RFID
Lock box by
aidenv

RFID Car
Lock/Unlock
v1.0 by
thematthewknot

Simple Internet
Gizmo by
talk2bruce

Advertisements

Comments
2 comments

Add Comment

canguiri says:

Apr 3, 2014. 10:41 PM REPLY

hola.
espero y me puedas ayudar
tengo una tarjeta RFID read/write pero no he podido leer unas tags que compre y solo tengo una que es la que traia pero aun asi no se que hacer
como le haria para que me funcione

nolanwethington says:
How can I use this to turn on an LED or a motor?

http://www.instructables.com/id/Wiring-and-programming-the-Parallax-RFID-Serial-Ca/

Aug 4, 2013. 1:07 PM REPLY

Você também pode gostar