Skip to content

Basic code to read IDs from RFID tags using an SL030 reader on a Raspberry Pi

License

Notifications You must be signed in to change notification settings

DoESLiverpool/simple_sl030_rfid_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Simple SL030 RFID reader

Basic code to read IDs from RFID tags using an SL030 reader on a Raspberry Pi

Tries for a few seconds to read a tag on the reader. If a tag is found, its ID is printed to stdout in hex.

Usage

  1. Install Mike McCauley's C library for Broadcom BCM 2835 (used to access the I2C bus on the Raspberry Pi)
  2. Compile the code:
    gcc -static rfid_sl030.c -lbcm2835 -o rfid_sl030
  1. Run the code, as root
    sudo ./rfid_sl030

You might need to set the baudrate for the I2C bus to get it to work reliably:

    sudo modprobe -r i2c_bcm2708
    sudo modprobe i2c_bcm2708 baudrate=200000

About

Basic code to read IDs from RFID tags using an SL030 reader on a Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages