rf24sn

0.1.4 • Public • Published

RF24SN nodejs Server

Full implementation of RF24SN with little dependencies. Should run on all platforms where there is nodejs and the node-nrf driver / pi-spi driver - currently it has been tested on Raspberry Pi.

For full description of protocol, client server setup or alternative implementations, see RF24SN

Installation:

npm install rf24sn --global

Uninstallation:

npm uninstall rf24sn --global

Usage:

sudo rf24sn -b mqtt://localhost:1883 -spi /dev/spidev0.0 -ce 25 -irq 24 -vvv

or if the above defaults are ok any or all can be omited:

sudo rf24sn

The -v parameter sets logging level:

  • (no v) : almost silent, only errors and warnings
  • -v : only received radio packets are reported
  • -vv : received radio packets and MQTT communication is reported
  • -vvv : debug info
  • -vvvv : silly amount of data including underlaying nrf pipes statuses

The sudo is required in standard Raspbian instalation unless access to /dev/spidevX.X and the GPIO pins has been granted to other user (via quick2wire or similar).

Wiring

Wiring

The SPI wires (yellow) have to go exactly to their counterparts:

  • MOSI to MOSI
  • MISO to MISO
  • SCK to SC(L)K

The VCC (red) has to go to any 3.3V pin. Connecting it to 5V pin will damage the nRF24L01.

GRN (black) can go to any ground.

The CSN (blue) has to go to either CS0 or CS1. This determines the spi device. To use the /dev/spidev0.0 use the CS 0.

The CE and IRQ (cyan) can go to any GPIO pin. The diagram follows the rf24sn defaults - CE 25, IRQ 24.

Package Sidebar

Install

npm i rf24sn

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • jajis