Difference between revisions of "RFID"
(Undo revision 2070 by Noucktourno (Talk)) |
|||
(15 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | A self-built RFID reader is connected to the DS via [[DSerial]]. It is part of the project "Nordlich BlitzPlay (RFID Guitar Hero III)". For details and concept of this pervasive game, please take your time and look at the website: http://www.ludic-society.net/blitz! | + | A self-built RFID reader (designed as PataCircuitBoard introduced by the [http://www.ludic-society.net/play/objects.php Ludic Society]) is connected to the Nintendo DS via the [[DSerial]] card. It is part of the project "Nordlich BlitzPlay (RFID Guitar Hero III)" which has been performend during Piksel Festival in Bergen/Norway. For details and concept of this pervasive art-game, please take your time and look at the website: http://www.ludic-society.net/blitz! |
[[Image:Dserial_RFID_level3.jpg|thumb|400px|none|Street Play Performance]] | [[Image:Dserial_RFID_level3.jpg|thumb|400px|none|Street Play Performance]] | ||
− | The signal lines are connected to DSerial CMOS-level [[UART]] at [[IO|IO2]] connector. Make sure to set baud rate to 9600baud. Please, make sure that you edited also mcu.h and the firmware according to the "Hello World LED" example | + | The signal lines are connected to DSerial CMOS-level [[UART]] at [[IO|IO2]] connector. Make sure to set baud rate to 9600baud. Please, make sure that you edited also mcu.h and the firmware according to the "Hello World LED" example in the dev-scene [http://forum.dev-scene.com/viewtopic.php?t=395 Forum]. |
Here is some sample code of the UartHandler: | Here is some sample code of the UartHandler: | ||
<cpp> | <cpp> | ||
− | int ledTimer = | + | int ledTimer = 0; |
+ | |||
void uartReceiveHandler(char * data, unsigned int size); | void uartReceiveHandler(char * data, unsigned int size); | ||
− | void uartReceiveHandler(char * data, unsigned int size) | + | void uartReceiveHandler(char * data, unsigned int size) { |
− | { | + | if((size > 0) && (size <= MAX_DATA_SIZE)) { |
− | if((size > 0) && (size <= MAX_DATA_SIZE)){ | ||
char buffer[MAX_DATA_SIZE+1]; | char buffer[MAX_DATA_SIZE+1]; | ||
memcpy(buffer, data, size); | memcpy(buffer, data, size); | ||
Line 20: | Line 20: | ||
iprintf(buffer); | iprintf(buffer); | ||
} | } | ||
+ | ledTimer = 10; | ||
} | } | ||
Line 31: | Line 32: | ||
if (ledTimer>0) ledTimer--; | if (ledTimer>0) ledTimer--; | ||
− | if (ledTimer==0) | + | if (ledTimer==0) { |
− | |||
− | |||
− | { | ||
ledTimer=-1; | ledTimer=-1; | ||
uint8 p1 = dseReadRegister(MCU_P1); | uint8 p1 = dseReadRegister(MCU_P1); | ||
dseWriteRegister(MCU_P1, p1 | 0xC0); | dseWriteRegister(MCU_P1, p1 | 0xC0); | ||
} | } | ||
− | if (ledTimer<0) | + | if (ledTimer<0) ledTimer=-1; |
</cpp> | </cpp> | ||
Line 50: | Line 48: | ||
Parts | Parts | ||
− | *[http://www.rfid- | + | *[http://www.rfidshop.com/core-2-rfid-reader-module-109-p.asp Core2 RFID] Reader Module (works at 5Volt!) |
− | *[http://www.alldatasheet.com/datasheet-pdf/pdf/68400/IRF/IRFD9014.html] | + | *[http://www.alldatasheet.com/datasheet-pdf/pdf/68400/IRF/IRFD9014.html IRF9014] MOSFET |
+ | *LM2698 Boost Regulator (3,3Volt -> 5Volt) | ||
+ | *MAX1811 Li-Io Charger | ||
*MAX232 | *MAX232 | ||
*SMD Parts (Resistors, Capacitor, Coil) | *SMD Parts (Resistors, Capacitor, Coil) | ||
Line 62: | Line 62: | ||
== PCB == | == PCB == | ||
− | [[Image: | + | [[Image:Dserial_RFID_pcb.jpg|thumb|600px|none|PCB]] |
Latest revision as of 21:40, 9 September 2010
Contents
Description
A self-built RFID reader (designed as PataCircuitBoard introduced by the Ludic Society) is connected to the Nintendo DS via the DSerial card. It is part of the project "Nordlich BlitzPlay (RFID Guitar Hero III)" which has been performend during Piksel Festival in Bergen/Norway. For details and concept of this pervasive art-game, please take your time and look at the website: http://www.ludic-society.net/blitz!
The signal lines are connected to DSerial CMOS-level UART at IO2 connector. Make sure to set baud rate to 9600baud. Please, make sure that you edited also mcu.h and the firmware according to the "Hello World LED" example in the dev-scene Forum.
Here is some sample code of the UartHandler: <cpp> int ledTimer = 0;
void uartReceiveHandler(char * data, unsigned int size);
void uartReceiveHandler(char * data, unsigned int size) {
if((size > 0) && (size <= MAX_DATA_SIZE)) { char buffer[MAX_DATA_SIZE+1]; memcpy(buffer, data, size); buffer[size] = '\0'; iprintf(buffer); } ledTimer = 10;
}
/* during initalization do following */
dseUartSetBaudrate(9600); dseSetModes(ENABLE_CMOS /* | ENABLE_SERVO */); dseUartSetReceiveHandler(uartReceiveHandler);
/* then somewhere else within the while(1) do: */
if (ledTimer>0) ledTimer--; if (ledTimer==0) {
ledTimer=-1; uint8 p1 = dseReadRegister(MCU_P1); dseWriteRegister(MCU_P1, p1 | 0xC0);
} if (ledTimer<0) ledTimer=-1;
</cpp>
Schematic
The gate of NPN Mosfet is connected to PIN 6 of DSerial's IO1
Parts
- Core2 RFID Reader Module (works at 5Volt!)
- IRF9014 MOSFET
- LM2698 Boost Regulator (3,3Volt -> 5Volt)
- MAX1811 Li-Io Charger
- MAX232
- SMD Parts (Resistors, Capacitor, Coil)