jeudi 10 mars 2011

Arduino & RFID reader, Piezo Sounder Melody Player, Relay activation, and EEPROM Write

A small application with an Arduino or rather a clone called RBBB:
- RFID reader cards (ID12 reader - 125kHz)
- If the RFID card is valid, it plays a melody corresponding to each card, if not, it beeps and lights a red LED,
- Then it activates a relay if the card is valid
- And finally write in the EEPROM memory of the Arduino, the number of times the card was used.
The melodies are played by a piezoelectric buzzer. There are now 5 songs recorded in the Arduino: indiana jones, star wars, mario bros, tetris ...
 




To create this application I've adapted codes that I found here and there, some part of the sketch comes from:
1 - RFID reader Mickael ROBERTS: Beginning Arduino (Apress)
2 - Piezo Sounder Melody Player Mickael ROBERTS: Beginning Arduino (Apress)
3 - management of the EEPROM is inspired by the Arduino page http://www.arduino.cc/en/Reference/EEPROM
You will find the source code here:
http://code.google.com/p/my-arduino-projects/downloads/list




------------------------------------------------------------------------------------------------------------------------------

Une petite application avec un Arduino ou plutôt un clone RBBB  qui:
- lit des cartes RFID (ID12 reader - 125kHz),
- si la carte est valide, joue une mélodie correspondante à chacune des cartes, sinon émet un son et allume une LED rouge,
- puis, actionne un relay si la carte est valide,
- et enfin écrit dans la mémoire morte de l'Arduino, le nombre de fois que la carte a été utilisée. 

Les mélodies sont jouées par un buzzer piezoélectrique.
Il y a pour l'instant 5 mélodies enregistrées dans l'Arduino:
indiana jones, star wars, mario bros, tétris...

Pour créer cette application j'ai
adapté des codes que j'ai trouvés par ci par là, notamment une partie du sketch provient de:
1 - RFID reader de Mickael ROBERTS: Beginning Arduino (APRESS)
2 - Piezo Sounder Melody Player de Mickael ROBERTS: Beginning Arduino (APRESS)
3 - la gestion de l'EEPROM de l'Arduino est inspiré de la page http://www.arduino.cc/en/Reference/EEPROM

Vous trouverez le code source ici:
http://code.google.com/p/my-arduino-projects/downloads/list

1 commentaire:

  1. Cool intéressant, je vais me renseigner pour faire de même quand cette puce sera dispo :

    http://fr.farnell.com/stmicroelectronics/m24lr04e-rmn6t-2/eeprom-4-kbit-512x8-8soic/dp/2291181
    Elle est eeprom I2C + rfid + energie harvesting capable d'alimenter le chip + electronique de la carte sans alimentation.

    Demo board : http://fr.farnell.com/jsp/search/displayproduct.jsp?SKU=2280018&ICID=I-STM-1000962-HPBLOF-0168

    RépondreSupprimer