chootka / rpi-compostpile

ASCII art and Python script for sending / receiving data from children over NRF24L01+ radios using the RF24 libs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rpi-compostpile

Steps to set up the Raspberry Pi to communicate via the NRF24L01+ radio
0/ flash SD card with latest raspbian stretch lite (from April 19)

1/ Be sure to include an empty file named ssh in the root of your newly flashed SD card so you can SSH into it later

2/ You will also want to enable SPI on by default (this is how the Rasbperry Pi will communicate with our radio) by editing the file called config.txt in the root of the Rasbperry Pi image and making sure that this is in there:
dtparam=spi=on

2/ Connect to your pi with user pi and default password raspberry
$ ssh pi@raspberrypi.local

3/ Go into the raspi-config tool and change the default password!!! Additionally, enable SPI, expand system to take up the full disk space of your SD card and join a wireless network so you are connected to the internet.
$ sudo raspi-config

4/ Install git, RF24 for radio comms and other image processing libraries
$ sudo apt-get update
$ sudo apt-get install git libboost-python-dev python-pip libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev python-pil python-requests -y
$ git clone https://github.com/nRF24/RF24.git
$ cd RF24
$ sudo make install
$ cd pyRF24
$ sudo python setup.py build
$ sudo python setup.py install

5/ Install this repo
$ git clone https://github.com/chootka/rpi-compostpile.git
$ cd rpi-compostpile

6/ Add the script to your profile so it boots automatically on start up $ sudo nano /etc/profile
$ sudo python /home/pi/p2p/parent-children.py &

7/ Reboot

Additional Resources

Image to ASCII art converter: http://picascii.com/
https://github.com/nRF24/RF24
https://github.com/nRF24/RF24Network
http://thezanshow.com/electronics-tutorials/raspberry-pi/tutorial-34-35
http://spencernusbaum.com/wordpress/index.php/2018/07/22/working-with-the-nrf24l01-transcievers-on-the-raspberry-pi-and-arduino/
https://howtomechatronics.com/tutorials/arduino/how-to-build-an-arduino-wireless-network-with-multiple-nrf24l01-modules/

About

ASCII art and Python script for sending / receiving data from children over NRF24L01+ radios using the RF24 libs


Languages

Language:C++ 55.0%Language:C 20.7%Language:Python 20.6%Language:CSS 1.3%Language:Processing 1.1%Language:Makefile 1.0%Language:XSLT 0.2%Language:Shell 0.1%Language:Euphoria 0.0%