Skip to content

jrobertson/RF24SN_CPP_Server

 
 

Repository files navigation

RF24SN C++ Server

Full implementation of RF24SN on top of RF24-rpi - a Raspberry Pi port of arduino RF24 driver. Currently only runs on Raspberry Pi.

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

Installation:

Install RF24-rpi according to this guide.

Install libmosquitto

apt-get install libmosquito-dev

Then compile

git clone https://github.com/VaclavSynacek/RF24SN_CPP_Server.git
cd RF24SN_CPP_Server
make

Usage:

sudo ./RF24SN

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

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(cyan) can go to any GPIO pin. The diagram follows the F24SN defaults - CE 25.

The IRQ pin is not used by this implementation.

About

C++, RF24-Rpi, Raspberry Pi Server implementation of RF24SN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 80.9%
  • Makefile 11.7%
  • C 7.4%