Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including rfid-sl030 with all npm packages installed. Try it out:

var rfidSl030 = require("rfid-sl030")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

rfid-sl030 v0.1.1

Access an SL030 RFID reader on a Raspberry Pi


Node.js module for a Raspberry Pi to talk to an SL030 RFID reader

Because of how the library accesses the i2c bus, it needs to be run as root. The default baud rate used to talk to the i2c bus also seems to produce unreliable results with the SL030 hardware. If you're seeing the "Check modprobe baud rate" message then you should run the following commands before using this module:

sudo modprobe -r i2c-bcm2708
sudo modprobe i2c-bcm2708 baudrate=200000


  1. Download and build Mike McCauley's libbcm2835 library
  2. By default that creates a src/libbcm2835.a, whereas we want a .so. To create that, run this in the bcm2835-1.50 directory: gcc -shared -o src/ -fPIC src/bcm2835.c


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free