include SoftwareSerial.h SoftwareSerial rfid(7, 6); RX, TX boolean stare false; int reading 0; void setup() { Serial.begin(9600); initializeaza portul serial la 9600 baud rfid.begin(9600); initializeaza modulul rfid la 9600 baud } void loop() { while (rfid.available()) { reading rfid.read(); citeste byte-ul if (reading 2) { stare true; 39;2 39; reprezinta inceput de string Serial.print( Serie RFID tag: ); } if (reading 3) { stare false; 39;3 39; reprezinta sfarsit de string Serial.println( ); delay(5000); } if (stare reading ! 2 reading ! 10 reading ! 13) { transmite fiecare byte la serial monitor Serial.write(reading); } } } Specificatii: EM4102 64 bit Temperatura de operare : -40 C +85 C Frecventa : 125Khz
Related products
Accelerometru
RoboFun
Accelerometru