Вы находитесь на странице: 1из 4

Food Living Outside Play Technology Workshop

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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

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

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

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

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

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

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 Car
RFID Reader! RFID Reader! Stupid Simple Lock/Unlock Magic Music
Identify MK: II, Card Arduino LF Table RFID -
AVR/Arduino v1.0 by
anything with identifiers by RFID Tag iPod: No
RFID from credit RFID Reader thematthewknot
simonfrfr Spoofer by menus, no
cards to license with UART Code sketchsk3tch buttons by
plates by in C by nevdull XenonJohn
simonfrfr

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

Вам также может понравиться