[pc486] sent in his hack that uses an ATtiny85 to act like an EM4102, a chip used for RFID tags. Minimally, all that is needed is the AVR and a coil, but he recommends some filtering capacitors. Depending on the size of the coil, different frequencies and ranges can be achieved. This project actually includes several hacks, such as using the coil for not only power, but a clock signal. The coil is actually able to power the chip without being connected to the power pins due to clamping diodes on the connected pins. The firmware is short but available on subversion.
Related: Scratch-built RFID tags
29 thoughts on “AVR RFID Tag”
I love those tiny AVRs. This is a very nice project I will probably try out myself some time.
Using the clamping diodes to power the AVR via the coil? Amazing. Absolutely amazing. I’m floored by the creativity and simplicity of this hack. This is truly what hacking is about!! =)
“An engineer can do for $5 what a fool can do for $20”
I would so not be happy if I was one of the people with an RFID in my hand to operate my car/house locks.
Next build a business card PCB with the surface mount version of that chip and the antenna etched in copper.
This is the most awesome thing I’ve seen in three months.
I’ve noticed the back powering effect but I’d never though to intentionally run a device with it, not to mention pulling clock pulses directly from the receiver coil.
This is the best hack I’ve seen in a long, long time.
Come on bobz,
This is not the place for apocalyptic bible thumping. Hackaday is about technology and sharing of such information. Lest you assume me to be just another cretin, let me assure you, I know exactly where that scripture originates and the apparent fulfillment does not escape me. This fact does not necessitate trolling.
Please take it elsewhere.
don’t you normally need to tune the antenna to the carrier frequency (by using a capacitor in parallel to the coil)??
i wonder how good is the range with just avr+coil version? i guess a capacitor on power pins would increase the range quite a lot.
You could also use smd avr and smd coil to make it even smaller.
Finally, something NOT TWITTER. And a real hack, taking advantage of technology. Awesome
Lupin: The AVR’s silicon die already has some capacitance; I suppose all it takes is a rough guess what the capacitance is and find a matching coil for it.
I am high as a tree now, so here an easy target target but I trow a lot of grenades
id have to say that this prob one of the coolest things I have ever seen. An ‘unpowered’ avr and an inductor…brilliant. How did you even think of it ?
“hm..im bored, lets see what happens if I stick this inductor here..and lets pass it through a 125Khz magnetic feild”
is that how it went down ?
could also be handy for powering “smart” tags that can log environmental data using ambient light, and then be read back wirelessly.
If you power the AVR then you can brute force a RFID reader. If I had a AVR programer I’d try it.
5 stars hack
i did also notice the power by the i/o, but always see it as a drawback.
genuine genius, you shoud request a patent for that
Hack a Day, more like this please
timour patents cost a lot of money. This idea is very good but special rfid chips cost much less
Fuck all people who use US quarters for size comparison, hope they die in a fire already, I’m sick and tired of it as you might have surmised at this point.
Lol who even needs a size reference if there’s a dip-8 in a pic???
They should use Chinese Yuan for a change!
therian, i mean a patent for the supply without a dedicated supply pin.
so we could have cpu with only 2 pins, like a resistor in a 0805 package
Minimalistic, awesome, pure creativity, just brilliant. You must be very proud of this kind of beautiful ideas!! My most sincere Congratulations.
timour patent on diode or 1wire ? lol
It’s not entirely original, at least not the way the chip is powered. I saw something similar, years ago, called iglassware (see website link for PDF).
One problem with using the I/O pins for power on an AVR is that the ESD diodes are very weak, and could fail in this application. PIC devices have much better ESD diodes (I think Microchip specifies 10 or 20mA, while Atmel specifies “<1mA" and "do not use").
I’m having trouble compiling the code for an ATMega168 target, using the HID mode. For some reason, the lines:
manchester HID_SITE_CODE, 8
manchester HID_UNIQUE_ID, 16
have to be commented out, or else the compiler blows up with this error, like the chip is out of memory (the program code is 7496 bytes when compiled for attiny85).
avr-gcc -Wl,-Map,avrrfid.map -mmcu=atmega168 -o”avrrfid.elf” ./avrfid.o
./avrfid.o: In function `loop’:
(.text+0x1d12): relocation truncated to fit: R_AVR_13_PCREL against `no symbol’
New Link to this HACK
Credits: Scanlime aka Micah Elizabeth Scott
Code: http://svn.navi.cx/misc/trunk/avrfid/avrfid.S Version 1.1, 2010-06-15
Please be kind and respectful to help make the comments section excellent. (Comment Policy)