March 29th, 2010

Sniffer Nano reading demo

Produce, by ITead.

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

1

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.

sniffer1

You may also be interested in these posts:

  1. Mini 125K RFID card reader module : Sniffer Nano
  2. Customizable Arduino RFID module : Sniffer Nano v2.0
  3. Sniffer Nano Source Code v1.0
  4. Play RDM630 with Arduino
  5. Sniffer Nano is coming

Back Top

Responses to “Sniffer Nano reading demo”

  1. I love manufacturing blogs such as this and the foreseeable future involving humankind is expanding daily in engineering. I’m going to suggest your blog to other tech gurus.

    Thanks.

Leave a Reply

Back Top


SEO Powered by Platinum SEO from Techblissonline