2Pcs 125K EM4100 Rfid Card Reader Module RDM6300 Id Rf Uart Output Ic New

Frequency: 125kHz
      Baud rate: 9600bps (TTL RS232 format)
      Working voltage: DC 5V (±5%)
      Relative humidity: 0-95%
      Working temperature: -10°C to +70°C
      Storage temperature: -20°C to +80°C
      Wiring size:46mm x 32mm x 3mm
      Module size:38.5mm x 19mm x 9mm
      Supported card: EM/TK 4100, EM/TK4102. EM4200 or compatible
      Receiving range: 20-50mm (It depends on the antenna, card and the  surroundings)
      Sample Code:

     

String comdata = "";
        Void setup ()
        {
        PinMode (2. the OUTPUT);
        PinMode (3. the OUTPUT);
        DigitalWrite (2. HIGH);
        DigitalWrite (3. HIGH);
        Serial. The begin (9600);
        }

     

Void loop ()
        {

     

DigitalWrite (2. HIGH);
        DigitalWrite (3. HIGH);
        While (Serial. The available () > 0)
        {
        Comdata + = char (Serial. The read ());
        Delay (2);
        }
        If (comdata. Length () > 0 && comdata = = "0500 addf1443")
        {
        While (comdata. Length () > 0)
        {
        DigitalWrite (3. LOW);
        Delay (100);
        While (Serial. The available () > 0)
        {
        Comdata + = char (Serial. The read ());
        Delay (2);
        }
        Comdata = "";
        }
        }
        Else if (comdata length () > 0)
        {
        While (comdata. Length () > 0)
        {
        DigitalWrite (2. LOW);
        Delay (100);
        While (Serial. The available () > 0)
        {
        Comdata + = char (Serial. The read ());
        Delay (2);
        }

     

Comdata = "";
        }
        }
        }

      
 
Fri, 10 May 2024 02:07:13 GMT 638509324337251899 9C2F203F04FADB0B20F98AB41122DA5D