[nevdull] found himself in possession of a magnetic card reader. What else was he to do but show us all how to read from it using an AVR? He goes through the basics of how the card reader works, as well as how to detect the different card states such as entering, reading, leaving. There is source code to download to try for yourself, but unless you have the same reader, you’ll have to do some modifications. While this doesn’t get you all the way to reading the complete content off of the card, its a great start. Maybe you guys can help him finish up the last bits.
13 thoughts on “Quick And Dirty Magnetic Card Reader”
Leave a Reply
Please be kind and respectful to help make the comments section excellent. (Comment Policy)
you mean, read from it using an avr?
@lekernel,
yes, yes I did mean AVR.
Does anybody know of a DIY card writer? Someone told me that it could be done with an old fashioned tape recording head……
Very old “proof of concept” I did in college, for use with Microchip PIC: http://goldscott.googlepages.com/cardread
I’m currently working on a new design. It should be done very soon, just waiting on the PCBs in the mail, and of course getting the rest of the code written.
Reading track 2 should be just more of the same of what he’s doing. He needs to add /strobe2 as an interrupt source and sample /data2 when it asserts.
I’ve used a similar reader for my custom alarm system at home! They are really easy to interface.
I found one that uses the head out of a cassette player and a sound card to decode the cards. But I think the avr has more potential.
http://lekernel.net/blog/?p=12
“Maybe you guys can help him finish up the last bits.”
BITS. Get it? GET IT? …No? Ok, nevermind then.
@lazymegaman,
I try to sneak puns in whenever I can get away with it. go back and look, I even went nuts once on the ceiling fan POV, I don’t recall if anyone noticed.
I’ve designed a similar project for a 8 pin PIC micro. http://www.ringolake.com/pic_proj/mag_card/mag_lock10.html
Interfacing to older heads is a bit of a PITA, but Magtek has some newer ones that do USB, serial, or bit serial modes and buffer the data so you don’t have to do much timing sensitive stuff. really not that big of a deal these days.
Does anyone have a pic card reader schematic whitch stores data to external eeprom or can someone help me with schematic and source code?
Can somebody help me please to convert the wav file to text file to see the track2 from the card?
Thanks!!