Quick and dirty magnetic card reader

posted Aug 19th 2009 9:06am by
filed under: arduino hacks, security hacks

card

[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 Responses to Quick and dirty magnetic card reader

  • lekernel says:

    you mean, read from it using an avr?

  • Caleb Kraft says:

    @lekernel,
    yes, yes I did mean AVR.

  • SchrodingersCat says:

    Does anybody know of a DIY card writer? Someone told me that it could be done with an old fashioned tape recording head……

  • goldscott says:

    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.

  • chango says:

    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.

  • faelenor says:

    I’ve used a similar reader for my custom alarm system at home! They are really easy to interface.

  • J4y says:

    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

  • LazyMegaMan says:

    “Maybe you guys can help him finish up the last bits.”

    BITS. Get it? GET IT? …No? Ok, nevermind then.

  • calebkraft says:

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

  • amd says:

    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.

  • osceola says:

    Does anyone have a pic card reader schematic whitch stores data to external eeprom or can someone help me with schematic and source code?

  • lino says:

    Can somebody help me please to convert the wav file to text file to see the track2 from the card?
    Thanks!!

  • Leave a Reply

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks






         




    Hacks

    Resources