Magnetic Card lock with the Arduino
I have posted alot of projects recently, and here is another project with the Arduino!
This projects is about making a magnetic card lock using the Arduino, a servo and a $4 cheap magnetic card reader from AllElectronics.com
The card reader, which you can see in the first picture, has 7 pins. The picture below shows theese pins functionality!
I’ve made a video about the project which explains it all!
If you want to try it yourself, you can grab the code underneath and change the checkCode character array to match the string on your card!
#include <string.h> #include <Servo.h> Servo servo1; /* Magnetic Card lock with the Arduino and servo's * by Thomas Jespersen http://elec.tkjweb.dk * * Reads a magnetic stripe and opens lock (turns servo) if card is the same as programmed * */ // Connections: DATA = Pin 2, CLOCK = Pin 3, CARD IN = Pin 5 // See PDF "Magnetic Stripe Card Reader! << HACKMIAMI.pdf" for more connection information Read more...







