"Intro to RFID" gives you the complete step-by-step instructions for 15 different fun RFID projects. Learn to make an RFID cat door, universal RFID key, door lock and
more. All projects come from Instructables.com, are written by our creative community, and contain pictures for each step so you can easily make these yourself.
Instructables is the most popular project-sharing community on the Internet. We provide easy publishing tools to enable passionate, creative people like you to share
their most innovative projects, recipes, skills, and ideas. Instructables has over 40,000 projects covering all subjects, including crafts, art, electronics, kids, home
improvement, pets, outdoors, reuse, bikes, cars, robotics, food, decorating, woodworking, costuming, games, and more. Check it out today!
Laura Khalil
Editor, Instructables.com
http://www.instructables.com/id/Intro-to-RFID/
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Disclaimer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Weather proof, Bluetooth capable RFID reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Intro: Weather proof, Bluetooth capable RFID reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Step 1: Solder headers to the BlueSmirf Bluetooth module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Step 2: Configure the BlueSmirf module via USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Disclaimer
All do-it-yourself activities involve risk, and your safety is your own responsibility, including proper use of equipment and safety gear, and determining whether you have
adequate skill and experience. Some of the resources used for these projects are dangerous unless used properly and with adequate precautions, including safety gear.
Some illustrative photos do not depict safety precautions or equipment, in order to show the project steps more clearly. The projects are not intended for use by children.
Many projects on Instructables are user-submitted, and appearance of a project in this format does not indicate it has been checked for safety or functionality. Use of the
instructions and suggestions is at your own risk. Instructables, Inc. disclaims all responsibility for any resulting damage, injury, or expense. It is your responsibility to make
sure that your activities comply with all applicable laws.
http://www.instructables.com/id/Intro-to-RFID/
Author:drj113
I have a background in digital electronics, and am very interested in computers. I love things that blink, and am in awe of the physics associated with making
blue LEDs.
http://www.instructables.com/id/Intro-to-RFID/
1100
C
0000
0
0000
0
0110
0
2 CHECKSUM STOP
This code is 2c 0077 55a2 if we break the code into 3 groups, we have 2c, followed by 0077 (which is 119 in decimal), and finally 55A2, which is 21922 in decimal - this
corresponds to the 119,21922.
The same number is also written in another way on these cards 0007820706 (in decimal) is simply the hexadecimal number 7755A2.
WOOT we now understand how the data is stored.
2C is a constant code that is sent with all of the cards. It is simply a facility identifier for this RFID system.
How does the parity and checksum work?
One final piece of data that the card transmits is a checksum word - this is used to ensure that all of the data has been received successfully. Firstly, the parity bit at the
end of each nibble of data is Even parity - this means that the transmitter will add a 1 to make sure that each block of data has an 'even' number of '1' bits - So if we look
a the '2', which is 0010 in binary - the parity system would detect that there was an odd number of '1' bits, and would add one to compensate. Compare that to the 'C'
which is 1100, the parity system would detect that there are an even number of '1' bits, so it would add a zero.
00101 2
11000 C
00000 0
00000 0
http://www.instructables.com/id/Intro-to-RFID/
01111 7
01111 7
01010 5
01010 5
10100 A
00101 2
0110 checksum
+ 0 stop bit
Finally, the checksum is an even parity bit applied to each of the vertical row bits. This way, there is a horizontal and vertical check of every bit sent - everything has to
line up, or the reader will simply reject the transmission.
When I decoded the data for my work prox card, it followed a similar sequence here, but (for obvious reasons) I won't actually publish the numbers. Again, part of the
sequence was a facility code, and the rest of the sequence held the same number that was printed on the back of the card.
Image Notes
1. This number is all you need to duplicate the card
Image Notes
1. This number is also useful - we can duplicate this card as well
Image Notes
1. My RFID Reader - I will document this on Instructables in the future
http://www.instructables.com/id/Intro-to-RFID/
File Downloads
File Downloads
http://www.instructables.com/id/Intro-to-RFID/
File Downloads
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
AVR/Arduino
RFID Reader
with UART Code
in C by nevdull
How to connect
Arduino and
RFID by
otaviousp
Interfacing RFID
with 8051
Microcontroller
(video) by
ashoksharma
http://www.instructables.com/id/Intro-to-RFID/
iPhone RFID
Reader by
OniDaito
How to
block/kill RFID
chips by
w1n5t0n
RFID Reader
Detector and
Tilt-Sensitive
RFID Tag by
nmarquardt
How to make a
RFID pet food
access control
system by
mlarsen
Image Notes
1. Tilt-sensitive RFID tag
Image Notes
1. Tilt-sensitive RFID tag
2. RFID reader detector
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Simple RFID reader detector
Image Notes
1. Small RFID stickers
2. RFID tag in the form of a credit card
3. Inside of RFID tags: antenna and connected chip
Image Notes
1. Insulation tape
Image Notes
1. Conductive copper tape
2. Capacitors (e.g., SMD) 82pF
3. Cardboard, around 100x70 mm
4. LED (light-emitting diode)
Image Notes
1. Antenna of the Sonmicro RFID reader
2. Sonmicro 13.56 MHz RFID Module
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Micro tilt switches
2. RFID ICs (MIFARE Standard 1k)
Image Notes
1. Thin stripes of the conductive copper tape (around 2 mm thick)
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Taping the copper stripes onto the cardboard
Image Notes
1. Three loops of the antenna
Image Notes
1. Soldering the copper tape connections
2. Soldering the copper tape connections
Image Notes
1. Adding insulation tape for the connection
Image Notes
1. Adding connection to the inner end of the antenna loops
2. Soldering connection again
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. 82pF Capacitor
2. Low current LED
Image Notes
1. Soldering connections
2. Soldering connections
Image Notes
1. RFID reader is near the tag
2. LED lights up
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Additional copper tape for connecting the tilt switches, the capacitor, and the
LED with the antenna.
Image Notes
1. Again we use insulation tape for the connection
2. Soldering all copper tape connections
Image Notes
1. SMD capacitor (82 pF)
2. Again a connected low current LED
3. This arrangement of the tilt sensors makes is possible to sense the horizontal or
vertical position of the tag.
Image Notes
1. The angle of the tilt sensors is important
Image Notes
1. The tag is activated when it is in a horizontal position
Image Notes
1. As long as the tag is in a vertical position, the tag is inactive
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Using the MIFARE RFID chips to create a tilt-sensitive RFID tag
Step 5: Variations
This section concludes our instructable of how to build custom RFID tags. Here are a few additional tags to show the possible variations.
- Variable length of the tag antenna, and therefore also variable reading distance of the tag (Figure 1).
- Experiments with the tag size and material (Figure 2)
- Switching between the LED and an RFID chip (Figure 3)
- Light-sensitive tag: the tag is active in daylight, and inactive in darkness (Figure 4)
- Touch-sensitive: tag is active when someone touches the tag with a finger (Figure 5)
- Different material for antenna by using conductive silver ink (Figure 6)
- Stamped layout of an RFID tag antenna (Figure 7) that is in fact working!
Many other variations of RFID tags are feasible... Happy DIY!
Image Notes
1. Variable length (and loops) of the antenna
2. Switch to activate and deactivate the RFID IC
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Experiments with form factors for the RFID tags
Image Notes
1. Button to switch between LED reader detection and the RFID tag
2. RFID chip MIFARE 1k
Image Notes
1. Light sensitive tag
Image Notes
1. Capacitive touch-sensitive pad
2. Voltage regulator
3. Diode
Image Notes
1. Antenna layout painted with conductive silver ink.
Image Notes
1. This antenna layout is stamped with conductive silver ink (and the antenna is in
fact working!)
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
Interfacing RFID
with 8051
Microcontroller
(video) by
ashoksharma
How to
block/kill RFID
chips by
w1n5t0n
AVR/Arduino
RFID Reader
with UART Code
in C by nevdull
http://www.instructables.com/id/Intro-to-RFID/
A Universal
RFID Key by
drj113
USB RFID
Reading
Keyboard
(video) by
frank26080115
Stupid Simple
Arduino LF
RFID Tag
Spoofer by
sketchsk3tch
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. 2 solenoids
2. LED
3. Hall effect sensor
4. The big square frame is the antenna
Image Notes
1. IR proximity sensor
2. Arduino
3. additional circuitry (RF reader, tip120, pushbuttons)
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Magnets on both sides of the plywood
2. Hall effect sensor
3. Rubber padding on the door post
4. rubber padding on the door
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. The tag was attached to the collar with a piece of twine.
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Solenoid. You need two of these
2. Arduino Duemilanove
3. TIP120 Darlington transistor
4. RFID tag
5. resistors
6. magnets
7. Magnet wire. You need a longer piece than shown in the photo
8. diodes
9. LED
Image Notes
1. Hall effect sensor
Image Notes
1. RF reader
2. Antenna that comes with RF reader. I tossed it and used my own.
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. This antenna came with the RF reader
2. Home made antenna
3. The antenna I ended up using
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
How to make a
RFID pet food
access control
system by
mlarsen
Remote Home
Automation by
dathomar
http://www.instructables.com/id/Intro-to-RFID/
RFID Reader
Detector and
Tilt-Sensitive
RFID Tag by
nmarquardt
How to connect
Arduino and
RFID by
otaviousp
A Free Range
Habitat for
Meller's and
other Large
Chameleons by
GibbonsRock
Xanboo/Homesite
Laser Break
How to
Beam Sensor by block/kill RFID
krich
chips by
w1n5t0n
Author:SwitchGirl iHeartSwitch
Alison Lewis is a fashion hound who loves technology and DIY. She is the producer of www.iheartswitch.com and the author of Switch Craft. Her work has
been featured internationally and in such publications as the NY Times, Wired, USA Today, Bust, and the Boston Globe.
You can find Alison shopping in New York, writing up a new DIY, or doing anything to make technology more accessible to a wide female audience. Her next
challenge getting Martha Stewart Switch Crafty on October 26th!
Image Notes
1. Photo by Ryan Collard for the NY Times
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
How to
block/kill RFID
chips by
w1n5t0n
RFID Reader
Detector and
Tilt-Sensitive
RFID Tag by
nmarquardt
Stupid Simple
Arduino LF
RFID Tag
Spoofer by
sketchsk3tch
http://www.instructables.com/id/Intro-to-RFID/
USB RFID
Reading
Keyboard
(video) by
frank26080115
Arduino RFID
Door Lock by
pcmofo
How to connect
Arduino and
RFID by
otaviousp
Interfacing RFID
with 8051
Microcontroller
(video) by
ashoksharma
Image Notes
1. hobby knives
2. 2 Soda cans
3. packaging tape
4. felt-tip pen
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. hobby knives
2. 2 Soda cans
3. packaging tape
4. felt-tip pen
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. hobby knives
2. 2 Soda cans
3. packaging tape
4. felt-tip pen
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
Code Geass
Themed Duct
Tape Wallet &
RFID Chip
Blocker (Photos)
by
Shadow_Force
How to
block/kill RFID
chips by
w1n5t0n
RFID Secure
Wallet by
dogsrcool2me
http://www.instructables.com/id/Intro-to-RFID/
Circuit Board
RFID: The REAL
Wallet with RFID Story by
blocking and
metrogdor22
Resistors
(Photos) by
frenzy
Keyboard
Circuitry Wallet,
Version 2 by
nagutron
Bitchin'
Innertube Wallet
by jmengel
Easy Cardboard
Wallet by reutsap
http://www.instructables.com/id/Intro-to-RFID/
This comes with one adaptaplug tip. Make sure to get the adaptaplug M with the blue tip.
Project box
The dimensions of the box I used are 13cm x 7cm and was purchased at a local electronics dealer, but you can also buy them at Radio Shack.
The KL042 circuit board can be cut down to a min. size of 9cm x 5.7cm, so make sure your box is at least this size PLUS the dimension of your
adaptaplug and buzzers.
Annoying buzzer(s)
Also available at Radio Shack
Wire or L-Bracket
Used to secure the box to the food bowl. I bent one side of an l-bracket to make a hook shape.
Tools
Dremel
In case you decide to resize the circuit board.
Drill
For adding the sound and adaptaplug holes. You can also use your Dremel if you have the bits.
Image Notes
1. Radio Shack 500mA AC to 12VDC Adapter
2. Adaptaplug M - Blue Tip
3. White Electric Buzzer, Black Piezo Buzzer
4. KL042 Proximity Card Access Control Kit
5. SK02 125 kHz Proximity Key Fob
6. Antenna included in the KL042 kit.
7. Hole cut into cover for the Adaptaplug M.
8. 4 holes cut into cover for sound to escape.
9. Antenna connection
10. Buzzer connections.
http://www.instructables.com/id/Intro-to-RFID/
Step 2: Assembly
There isn't much to this step. If you purchased the unassembled version of the kit, consult the diagram that's included with the kit and put it together.
Then, have a look at the pictures below to put it all together.
Before you close the box, program the RFID key fobs via the DIP switches. Consult the manual that comes with the kit for this.
You need to program the RFID key fobs that DO NOT have access to the bowl. This way, when the pet who DOES have access to the bowl tries to eat nothing
will happen... but when a pet who DOES NOT have access to the bowl, a successful read will occur and the buzzers will sound.
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. The RFID key fob can be a max. of about 2" away from the device. Since this is
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
HOW TO PACK
AND MOVE
YOUR CAT
SAFELY TO A
NEW
RESIDENCE by
rentagreenbox
http://www.instructables.com/id/Intro-to-RFID/
Distinguishing
Pet Bowl by
prabbit22m
Cat enclosure:
cat walk/tunnel,
utilizes wasted
space (Photos)
by katerlyn
Filtered Pet
Watering Bowl
by Dirkus
Image Notes
1. This latest version of the feeder has a SEEED studio reader with a self-made antenna for more range.
2. Paint job
3. Proximity sensor
http://www.instructables.com/id/Intro-to-RFID/
Step 1: Materials
- A working CD player tray mechanism+motor from an old cd-rom player
- Sharp GP2D120 Proximity sensor
- 125KHz RFID reader (e.g. ID-innovations ID-20, SEEED studio RDM630, Parallax)
- 1.25" diameter 125KHz RFID tag (or as large as can be worn comfortably on the animal's collar. Tag size influences read range. Bigger is better in most cases)
- Arduino Duemilanove
- 1 adafruit motorshield
- 3 Pushbuttons
- 1 Toggle Switch
- 5 100-220? Resistors
- 4 10k? Resistors
- 1 Red LED
- 1 Green LED
- The material for the enclosure (such as cardboard, wood or plastic)
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. This metal strip pushes against a button when tray is all the way out, door state
= closed, motor stops.
2. button
3. When the tray is all the way in, the metal strip pushes against this button (door
state=open, motor stops)
4. right now the door is closed. The food bowl is under this panel.
Image Notes
1. auto/manual mode switch
2. open/close pushbutton (manual mode)
3. LEDs
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
How to make a
RFID pet food
access control
system by
mlarsen
A very simple
proximity
detector by
offlogic
http://www.instructables.com/id/Intro-to-RFID/
CAT FEEDING
PLATFORM by
Thinkenstein
How to connect
Arduino and
RFID by
otaviousp
Cat-Powered
Automatic Cat
Feeder by
labelreader
Infrared
Proximity
Sensing Coffee
Table Module &
Color Changing
Glowing Faucet
by grahmaustin
**Update**
All of the code, schematics, and PCB designs have been tested and refined. They are all posted here as of 8/9/2010
Updated video of the final system installed and working.
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Reader portion of the circuit
2. Controller portion of circuit
3. RFID keychain tag
4. RFID card tag
5. Master programming card
6. 12vDC connection to Door Lock
7. 12vDC power input
Image Notes
1. Reader mounted outside door, RGB LED is blue showing its on and ready.
Image Notes
1. 12v DC power
2. 12v output to door lock
3. TIP31A transistor to trigger door lock
4. Reset button for micro controller
5. Power on LED
6. Programing Header
7. ATMega168
8. 6 pin header going to reader
9. Jumper to switch between programing and reading serial data from the
RFID module
Image Notes
1. 6 Pin header to Controller
2. 2N2222 transistor for buzzer
3. Resistors for Buzzer
4. ID-12 RFID reader glued to front inside of project box
5. Spark Fun break out board
6. Jumper wires used to mount RFID reader 90deg away from the main board.
http://www.instructables.com/id/Intro-to-RFID/
Can also be mounted on the PCB without the SF break out board shown (green)
7. RGB LED with hole cut in front
8. PCB cut to slot into groves on project box
Image Notes
1. Reader portion of the circuit
2. Controller portion of circuit
3. RFID keychain tag
4. RFID card tag
5. Master programming card
6. 12vDC connection to Door Lock
7. 12vDC power input
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Breadboard Powersupply
2. TIP31A Transistor
3. ATMega168 Arduino
4. Reset Button
5. 16mhz Crystal
6. 10ohm Resistor
7. 22pF Capacitors
8. Connection to Door Lock
9. RGB outputs to reader
10. Serial input to arduino
11. 5v/ground to reader
12. Serial input
Image Notes
1. Breadboard Powersupply
2. 12vDC
3. 12vDC to door lock
4. Ground output from TIP31A
5. 12vDC from power supply
6. RGB LED outputs
7. Serial data input
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. TIP31A Transistor
2. ATMega168 Arduino
3. Reset Button
4. 10k ohm Resistor (for reset)
5. 16mhz Crystal
6. 22pF capacitors
7. Serial Data in from ID-20
8. Output to open door lock via TIP31A
9. RGB LED outputs
File Downloads
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. ID-20 reader, (ID-10 is smaller). Soldered to the Sparkfun break out board and
pin headers. It allows me to Plug it into the bread board easily.
2. RGB LED
3. Resistors for LEDs
4. RGB LED wires connected to Arduino output pins, Guess which one is which??
5. Serial out of ID-20 and into arduino Rx
6. Optional Resistor/transistor that I was playing with to connect a buzzer
7. Serial coming out of ID-20, hidden under the chip
8. 5v/Ground to power the reader from the main Controller power supply
9. Common ground for the RGB LED
http://www.instructables.com/id/Intro-to-RFID/
File Downloads
http://www.instructables.com/id/Intro-to-RFID/
Step 4: Program!
Time to program your arduino. This can be a bit tricky using a basic arduino, you may have to press the reset button multiple times before and during the first part of the
upload. A very important thing to remember, you WILL get an upload error if you do no temporarily disconnect the ID-20 serial line to the arduino's Rx line. The
ATMega168 only has 1 Rx input and it uses it to upload code to talk to the programmer. Disconnect the ID-20 while programming then plug it back in when your done.
I used a FTDI programmer which allows you to program the arduino via USB with only 4 wires. The Controller schematic shows a pin header connection to allow you to
plug one in directly. Sparkfun also sells this part but many may already have it.
You can easily upload my code to your arduino and never look back but whats the fun in that? Let me explain the basic idea of how it works.
First of all, I did not want any external buttons/switches/etc and I did not want to reprogram the arduino every time I wanted to add a new card. Therefore I wanted to use
only RFID to control the operation of the circuit as well as control over the door lock.
The program turns on the Blue LED to indicate it is ready to read a new card. When the card is read it decides if it is a valid card or not by comparing what it read in to a
list of valid cards. If the user is valid, the arduino turns OFF the Blue LED and turns on the Green LED for 5 seconds. It also turns on another output high for 5 seconds.
This output is connected to the TIP31A transistor and allows the tiny arduino to control a much larger 12v 300mA door lock without being damaged. After 5 seconds the
door lock re-locks and the LED turns back to blue to wait for another card to be read. If the card is invalid then the LED changes to RED for a few seconds and back to
Blue to wait for another card.
It is important that the door lock still work even if the arduino loses power overnight or is reset. Therefore all valid card ID's are stored in EEPROM memory. The
ATMega168 has 512 Bytes of EEPROM memory. Each RFID card has a 5 Hex Byte serial number and a 1 Hex Byte Check sum that we can use to verify there were no
errors in the transmission between the ID-20 and the arduino.
Valid cards are stored in the EEPROM by using the first Byte as a counter. For example, if there are 3 valid cards stored the first Byte in the EEPROM would be 3.
EEPROM.read(0); = 3. Knowing this, and the fact that each ID is 5 Bytes long we know that 1-5 is card one, 6-10 is card 2 and 11-15 is card 3. We can make a loop that
looks through the EEPROM 5 bytes at a time and tries to find the card that was read in by the reader.
But how can we add new cards to the EEPROM after the circuit is installed?? I have read in one of the RFID cards I have and hard coded it to be the Master RFID card.
So even if the entire EEPROM is wiped the master card will still function. Whenever a card is read, it checks first to see if it is the Master card, if not, then it continues to
see if it is a valid card or not. If the card is the master card we have the arduino go into a "programming mode" where it flashes RGB and waits for another valid tag to be
read. The next tag that is read is added to the next free spot in the EEPROM and the counter is incremented 1 if the card does not already exist in the EEPROM memory.
The reader then returns to normal mode and waits for a new card to be read.
Currently I have not programmed a way to delete a card as the reasons for deleting a card would most likely be it was lost or stolen. As this would most likely be used
with 1-10 people the easiest thing to do would be to hard program a Master Erase card that will wipe all cards from the EEPROM then re add them all, which only takes a
few seconds. I have added code to wipe the EEPROM but I have not implemented this feature yet. .
The code is attached in a text file along with a copy of the parts list.
File Downloads
Step 5: Expand
This is only some of the cool stuff you can do with RFID. You could expand this much further with a LCD output, logging of who enters and when, network/twitter
connection etc. I plan on making a finished PCB version of this circuit. I have never made a PCB before so I am still working on the design and layout of the parts. Once
I have them complete I will post them as well. I encourage anyone to take the code I have written and modify it to do even more cool things!
Related Instructables
A Universal
RFID Key by
drj113
Control a
Schlage
electronic
deadbolt with
an arduino! by
quadmasta
http://www.instructables.com/id/Intro-to-RFID/
Very Simple
Arduino Electric
Lock by RKlenka
Build an easy
temporary door
chain lock by
fastcar123
Secret Knock
Detecting Door
Lock by Grathio
Proper lock
releasing
etiquette by
dsv4724
This instructable assume knowledge of compiling iPhone custom software (in C++) , basic soldering and electronics.
For this project you will need:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
An iPhone USB Cable (genuine one is best and probably at least 3!)
A JAILBROKEN iPhone!
An ID-12 RFID Reader
An ID-12 Breakout Board
A Logic Level Converter
It's useful to have some IC Sockets for Soldering
Glass Tags if you want extra fun or any
125Khz Tags
If you don't like the idea of taking iPhone Cables apart, use an iPhone Breakout Board
A Battery Pack with a 5V step up
Wire.
Some kind of switch.
A box to put it all in.
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
We could use pin 12 for TX as well but the ID-12 doesn't need data sent to it and I have had significant problems in sending data FROM the iPhone. If anyone knows why
this is so, do let me know. Regardless, the iPhone only needs to receive and this is well because these two pins are very close together.
First, either solder your wires into the breakout board or open up the iPhone cable. To open a genuine iPhone cable, you need to run a thin blade around the inside of the
plastic case. A small amount of force should release the clips on either side and then pulling on the metal plug with a pair of pliers should do the job. Be careful at this
stage though as its VERY HANDY TO KEEP THE PLUG INTACT.
Taking apart the plug should reveal 4 cables. A genuine iPhone cable will have a sheath and small gold connectors. Cheaper cables will be glued in place and this can
wreak the project. You dont want glue inside the unused sockets and the less force you need to remove the cables, the better.
Removing the small plugs requires a lot of force and yet, you MUST be as delicate as possible. The connectors are attached to the wires with a very small amount of
solder. If the connectors snap they cannot be used and if the solder snaps, you will need to solder them again and if you use too much, the plugs will not fit back into their
sockets. Also, you are limited on how many times you can place the plugs as the sockets will wear out. I personally went through 5 cables with this method; two of them
were genuine. The geunine ones wear much less.
Place the black wire into the ground. You can decide which colour goes into which socket. I chose green for Pin12, white for Pin13 and Red for Pin18. Remember which
is which!
http://www.instructables.com/id/Intro-to-RFID/
In short, build with Xcode and use a fake signature as written on Saurik's site.
Serial Communication on the iPhone has been covered very well on DevDots page. The basic C/C++ code there works quite well for testing if you comment out the
sending code.
So now you have the ability to read RFID Tags. But you need some tags to read. For me, I quite like the idea of home automation and similar. There was an odd trend of
implanting glass RFID tags into the flesh near your thumb but why bother with that when you can simply make an RFID earring? That way, you can remove it if need be
or swap out the actual tag.
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
AVR/Arduino
RFID Reader
with UART Code
in C by nevdull
How to connect
Arduino and
RFID by
otaviousp
Stupid Simple
Arduino LF
RFID Tag
Spoofer by
sketchsk3tch
http://www.instructables.com/id/Intro-to-RFID/
Interfacing RFID
with 8051
Microcontroller
(video) by
ashoksharma
How to
block/kill RFID
chips by
w1n5t0n
RFID Reader
Detector and
Tilt-Sensitive
RFID Tag by
nmarquardt
Arduino RFID
Door Lock by
pcmofo
Twitter Poem
Box by saccpcomp
Image Notes
1. Arduino Board
2. RFID sensor board
3. RFID antenna
4. Wires
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Card that I used to add another tag.
2. The card I used to deny others TAGs
3. Sample TAGs
Image Notes
1. Some tape to hold the wires.
Image Notes
1. Arduino PIN2 (Rx) SoftSerial
2. NC
3. Tx
4. Vcc
5. GND
6. Antenna
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Tx PIN
2. GND
3. Vcc
File Downloads
RFID_2_eng.pde (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'RFID_2_eng.pde']
Step 4: Results!
There is no LED, sound or LCD for debug or visualization, just through the serial line.
The video demonstrate how to use the software. I didn't post any kind of explanation as text on the video. I hope that the images spokes more then words, xD
Any doubt or suggestion, feel free to ask, or correct me.
Please, if you like it, rate it,
thank you
Related Instructables
Twitter Poem
Box by saccpcomp
http://www.instructables.com/id/Intro-to-RFID/
Stupid Simple
Arduino LF
RFID Tag
Spoofer by
sketchsk3tch
How to
block/kill RFID
chips by
w1n5t0n
RFID Reader
Detector and
Tilt-Sensitive
RFID Tag by
nmarquardt
AVR/Arduino
RFID Reader
with UART Code
in C by nevdull
Seeeduino
Curtain Control
by suqingxiao
Image Notes
1. 7805 vreg
2. ID-12
3. Standard Automotive relay
4. BD667 darlington Transistor
5. Bi-colour LED
http://www.instructables.com/id/Intro-to-RFID/
Step 2: PCB
The PCB is fairly straight forward when teamed up with the schematic. There's not much to it...
Print, transfer, etch, drill etc.
The ID12 is wired in standard ASCII mode. The only connections needed are:
Pin 1: GND
Pin 2: +5v
Pin 7: GND
Pin 9: Data
Pin11: +5v
This means you only need 3 wires going to the ID-12. The others can be jumpered on the chip. If the run is long (more than say 20cm), I would suggest the use of
shielded cable as cars are electrically noisy and it might cause dodgey readings.
File Downloads
Image Notes
1. 7805 vreg
2. ID-12
3. Standard Automotive relay
4. BD667 darlington Transistor
5. Bi-colour LED
File Downloads
http://www.instructables.com/id/Intro-to-RFID/
Immobiliser_1.2.hex (5 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Immobiliser_1.2.hex']
immobliser_v1.2_12f675.hex (5 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'immobliser_v1.2_12f675.hex']
Step 4: Wrapping up
Programming: Power up the immobiliser with the jumper in place. The LED should go green and then go red. You can then program up to 10 tags. The LED will go
orange when a tag is read, then go back to red (waiting for another tag). If you want to 'erase' a tag, you must reprogam that position or 'key number'. Best is to just
keep reading the same tag over and over till all 10 positions are filled, or reprogramming the pic will clear the eeprom if needed.
Once you have programmed your tags in, you can remove the jumper. The unit is now in 'operation' mode and the LED is red.
When a tag is read, the LED will go orange and If a good tag is read, the LED will go green for 1/2 a second, then extinguish totally and the relay will close. If a bad tag is
read, it will go back to red waiting for another tag.
Bench test the setup and once you are happy with it, you can wire it into your car.
The main power for the circuit should come from an 'ignition' circuit on the car. Then connect the 'switched' relay contacts between a feed to the coil(s) or ignition input to
your EFI computer.
To operate, turn on the ignition of the car, then swipe the tag over the ID-12, the relay closes, then start the car. If the car is turned off, the process must be repeated.
Related Instructables
Mobile Phone
Alarm for a
motorbike, car
or anything you
want by
simon72post
Knex Bazooka
by fobblewabble
K'nex MP5 by
Trauts
http://www.instructables.com/id/Intro-to-RFID/
KNEX RBG
REPEATER
TRIGGER by
rivera364
knex light
hybrid
crossbow by
stf13
DD-KYT by
kingghaffari
Knex Wall-E
Home: Spinning
wheel by
Seleziona
Step 1: Parts
Parts:
*Some enamel coated solid core copper wire (I used the green spool from the 3 spool set Radio Shack carries).
*A NPN transistor, I used a 2N3904
*A 10 K Ohm Resistor
*A 10 nF capacitor (0.01 uF). I'm using a Metalized polyester film cap I got from Radio Shack, others should work though
*A toilet paper roll to wind the wire on
I tested my circuit using a Parallax RFID serial reader connected to a second Arduino
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
File Downloads
rfidFaker.pde (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'rfidFaker.pde']
Step 6: Testing
To test the circuit hold the antenna right up to the reader (go ahead and touch it to the reader for the first test), if everything's right you should see the tag ID you're
hoping to see. If not (and you're sure the sketch is uploaded properly and the circuit is connected correctly) start adding and removing winds from the coil and retesting it.
It should be somewhere in the 120-140 range with the green Radio Shack wire I used.
Once it's working at really short ranges (touching the reader) you can mess with the coil some more to tune the antenna better and you should be able to get a range of a
few inches.
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Step 9:
References
PDF on a similar project, good discussion of how it all works and schematic
mrl.cz/projects/rfid/rfid.pdf
Similar project, including C code
www.alexanderguthmann.de/en/emulator.html
An RFID tag that's just a small Microchip uController and a resistor
micah.navi.cx/2008/09/using-an-avr-as-an-rfid-tag/
A similar project, also a reader
www.cq.cx/prox.pl
School project, cool ideas, missing some details though
www.dennislambing.com/senior-design-rfid/
Related Instructables
A Universal
RFID Key by
drj113
How to connect
Arduino and
RFID by
otaviousp
Arduino
Magstripe
Emulator by
sketchsk3tch
http://www.instructables.com/id/Intro-to-RFID/
Magnetic stripe
card spoofer by
powerpants
AVR/Arduino
RFID Reader
with UART Code
in C by nevdull
Arduino RFID
Door Lock by
pcmofo
Interfacing RFID
with 8051
Microcontroller
(video) by
ashoksharma
How to
block/kill RFID
chips by
w1n5t0n
Material
ID12 RFID reader
ID12 breakout board
125kHz RFID Tag
USB to serial adapter
BlueSmirf Gold Bluetooth module
Right angle break away headers
Jumper wires premium F/F
Ensto junction box IP55
3 1.5V AA batteries
Battery holder with button connectors
Battery wire with button connectors
2 short pieces of wire
Solder
Tape
Tools
Cutter
Soldering iron
Helping hands
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. ID12 RFID reader soldered to breakout board
2. BlueSmirf Bluetooth module
3. 3 x 1.5V AA batteries
Image Notes
1. Solder on this side of the BlueSmirf module and do not heat the contacts longer
than necessary
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Right angle headers
Image Notes
1. Solder on this side of the breakout board
2. Make shure the headers are in a right angle to the breakout board
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. Take care not to create a short cut and do not heat the contacts longer than necessary
2. A small solder tip makes soldering this a lot easier
Image Notes
1. Take care not to create a short cut
Step 6: Connect the BlueSmirf to the ID12 reader and 3 1.5V AA batteries
Connect the BlueSmirf to the ID12 reader as follows:
VCC to 5V (11)
GND to GND (1)
RX-I to D0 (9)
Then connect the ID12 to the batteries:
5V (11) to + (Plus)
GND (1) to - (Minus)
If you use solder to create a durable connection it might be better to unplug the jumper cable before soldering. Also, the jumper cable's plastic cover melts really quick so
take care not to heat it too long.
Once you got the connections ready, attach 3 1.5V AA batteries (equals 4.5V) and make shure the BlueSmirf starts to flash its red LED.
Note: While the BlueSmirf is marked as 3.3V it does work pretty well with 4.5V. The ID12 which is laid out for 5V also functions with 4.5V (maybe with a slightly lower
range).
Put everything into the box and try to close it tightly without squeezing any cables. For the following test (next step) you might want to open the box again to be sure the
BlueSmirf LED works as supposed.
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
Related Instructables
Moleskine RFID
reader-external
hard drive
(Photos) by
Deslivres
Arduino RFID
Door Lock by
pcmofo
RFID Reader
Detector and
Tilt-Sensitive
RFID Tag by
nmarquardt
http://www.instructables.com/id/Intro-to-RFID/
How to
block/kill RFID
chips by
w1n5t0n
iPhone RFID
Reader by
OniDaito
AVR/Arduino
RFID Reader
with UART Code
in C by nevdull
Stupid Simple
Arduino LF
RFID Tag
Spoofer by
sketchsk3tch
http://www.instructables.com/id/Intro-to-RFID/
http://www.instructables.com/id/Intro-to-RFID/
BSET(PCMSK2,PCINT18);
http://www.instructables.com/id/Intro-to-RFID/
I modified SoftSerial code from Mikal Hart who modified code from David Mellis for the experimentally determined delays in the serial routines.
// Cente
if (bDataReady)
{#ifdef __DEBUG__
USART_tx_S(itoa(RFID_tag[0],&ibuff[0],16));
ibuff[0] = 0;
File Downloads
Related Instructables
Stupid Simple
Arduino LF
RFID Tag
Spoofer by
sketchsk3tch
Interfacing RFID
with 8051
Microcontroller
(video) by
ashoksharma
How to connect
Arduino and
RFID by
otaviousp
http://www.instructables.com/id/Intro-to-RFID/
Twitter Poem
Box by saccpcomp
USB RFID
Reading
Keyboard
(video) by
frank26080115
Telnet to your
Arduino/AVR!
by nevdull
A Universal
RFID Key by
drj113
Image Notes
1. My env2
Image Notes
1. If your card has this symbol, you should be able to do this mod.
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. General location of RFID chip
Image Notes
1. General area around RFID chip
Image Notes
1. RFID chip extracted from a previous card. This is as small as you can trim it.
2. Chip is about here
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. RFID chip and both plastic sides
2. Unseperated chip
http://www.instructables.com/id/Intro-to-RFID/
Image Notes
1. microSD card slot when viewed w/o the battery cover
Step 5: Success
Congratulations!
You now have a fully operational RFID-embedded cellphone.
Oh, and please let me know what you think as this is my first instructable.
P.S. before I forget, I did not come up with this completely on my own. I had seen something similar almost a year ago online. Try as I might I can't seem to find the site
anymore. I just want to give credit for the inspiration to the author of that webpage, whoever they may be.
Image Notes
1. My env2
Related Instructables
How to
block/kill RFID
chips by
w1n5t0n
RFID Secure
Wallet by
dogsrcool2me
how to block
anoying cell
phone
interference by
thematthatter
http://www.instructables.com/id/Intro-to-RFID/
Interfacing RFID
with 8051
Microcontroller
(video) by
ashoksharma
Make purchases
with your cell
phone by:
Jason Valalik by
jvalal
RFID Reader
Detector and
Tilt-Sensitive
RFID Tag by
nmarquardt