Loading...

You have no items in your shopping cart.

 
 
 
×

Registration

Profile Informations

Login Datas

or login

First name is required!
Last name is required!
First name is not valid!
Last name is not valid!
This is not an email address!
Email address is required!
This email is already registered!
Password is required!
Enter a valid password!
Please enter 6 or more characters!
Please enter 16 or less characters!
Passwords are not same!
Terms and Conditions are required!
Email or Password is wrong!
Captcha is required!
Captcha is wrong!

Sniffer Nano reading demo

We introduced using the RDM630 reader module with Arduino to display the card ID before.Now we still use the Arduino to read back the card ID and display on the LCD screen, but in this time we use the Sniffer Nano to replace the RDM630.

Is also a very simple connection method for Arduino:
With module :TX to TXD ; RX to RXD; VCC to VCC; GND to GND ; pin 2 to INT
With LCD: RS => pin 12   RW => pin 11  EN => pin 10
D4, D5, D6, D7 => pins 7, 6, 5, 4

Now the different from the DRM630 is that the Sniffer Nano will use a interrupt to remind the host ,  telling the host that it received a card ID and will sent it out . If  ignore this signal , the operation with Sniffer Nano is exactly the same as DRM630.

#include "LiquidCrystal.h"

unsigned char ID[14];
unsigned char action = 0;

LiquidCrystal lcd(12, 11, 10, 7, 6, 5, 4);

void setup()
{
  pinMode(2,INPUT);
  Serial.begin(9600);
  lcd.print("Card ID :");
  Serial.flush();
  attachInterrupt(0, active, FALLING);
  lcd.setCursor(0, 1);
}

void loop()
{
  unsigned char p = 0;
  if (action)
  {
    action = 0;
    while (Serial.available())
    {
      ID[p] =  Serial.read();
      p++;
      delay(1);
    }

    lcd.setCursor(0, 1);
    for(p=0; p<7 ;p++)
      lcd.print(ID[p]);

  }

}

void active()
{
  action = 1;
}

Put the card above the coil , Sniffer Nano will read out the ID and send it to Arduino via the serial port. Arduino receive the data and print the Card ID on the LCD screen.