Sunday, December 15, 2013

Hooking up the RFID-RC522 to the Arduino Leonardo

My initial trial with the RFID reader was with the library from https://github.com/miguelbalboa/rfid. I then switched over to the https://github.com/ljos/MFRC522 library as its code looks cleaner. The pin layout for the Leonardo was not given and it took me some time to figure it out. So here it is:
RC522
(left to right)
Leonardo
SDA pin 10
SCK SCK (on ICSP header)
MOSI MOSI (on ICSP header)
MISO MISO (on ICSP header)
IRQ (not used)
GND GND
RST Reset
3.3V 3.3V

Sunday, October 6, 2013

Arduino Pedestrian Traffic Light

Just for fun I programmed and build a pedestrian traffic light with the Arduino Leonardo from Borderless Electronics.

The v1.0 loops through the traffic light pattern continuously. With the v2.0 I added a pedestrian push button and an audible alert for pedestrians. Below is a video of the final result.


Detailed information, the Arduino program and building instructions can be found on Github.