Showing posts with label Junk. Show all posts
Showing posts with label Junk. Show all posts

Friday, November 27, 2009

Card Reader Tinkering

So, I have a habit of collecting electronics that even I can only refer to as "junk." It's even in a big box, labelled "junk." There's around 15kg of it that I just can't bear to leave behind every time I move... Needless to say, much of it consists of equipment pulls and junk I desoldered from old VCRs, microwaves, fridge relays, and such, and these are often sensors or actuators I want to try interfacing. This has turned into a regular hobby and has actually opened up a larger part of the world of electronics for me...



All that garble aside, I had a Mag-tek 21006505-based Track 2 magnetic card stripe reader sitting around, which I had purchased surplus from All Electronics way back in the day. It's a slide-through system that can be mounted on just about anything flat, and was purchased for ~$4USD... These days, they offer a different model for about the same price, but this one requires the card be inserted into a slot and removed quickly... Coincidentally, Hack Miami made a Sanguino interface program for this particular reader, but I didn't know about this until after my tinkering. Also, Sparkfun has a 3-track RS-232 serial reader, even an expensive USB reader/writer, but I can't say I'm "$60 interested" in this field. $4 for Track 2 is just fine with me.

So, why did I bother? Well, besides the thing just gathering dust in the Junk Box, who hasn't, at one point, wondered was was on the magnetic cards in their wallet? I had some hope that more interesting things than just the number on the front would be there, and I wasn't disappointed. I don't plan on using this anywhere else, so I just used the Arduino platform to get a quick prototype "sketch" going, reporting the information back through the Serial Port. Rather than just throw the code at you, however, I'll explain what's being read off Track 2, and what resources I used to figure this out...