Elektor_Mag_-_January-February_2021

([email protected]) #1

60 January & February 2021 http://www.elektormagazine.com


(lab_app) root@raspberrypi-zero:/var/www/lab_app/
rf24libs/RF24/pyRF24/
pyRF24Network/examples# python helloworld_rx.py
================ SPI Configuration ================
CSN Pin = CE0 (PI Hardware Driven)
CE Pin = Custom GPIO22
Clock Speed = 8 Mhz

(lab_app) root@raspberrypi-zero:/var/www/lab_app/
rf24libs/RF24/pyRF24/
pyRF24Network# cd examples/
(lab_app) root@raspberrypi-zero:/var/www/lab_app/
rf24libs/RF24/pyRF24/
pyRF24Network/examples# ls
helloworld_rx.py helloworld_tx.py


[1] Gerber files for RF24 HAT board: https://techexplorations.com/parts/rpifs-parts/
[2] HAT PCB (unpopulated) from PCBWay:
http://www.pcbway.com/project/shareproject/Raspberry_Pi_Full_Stack_RF24_and_DHT22_HAT.html
[3] High-resolution version of schematic: https://techexplorations.com/parts/rpifs-parts/
[4] rf24_receiver.py script source code: https://github.com/futureshocked/RaspberryPiFullStack_Raspbian/blob/master/rf24_receiver.py
[5] See line 137 of RF24.h: https://github.com/nRF24/RF24/blob/master/RF24.h#L137
[6] See line 373 of RF24Network.h: https://github.com/nRF24/RF24Network/blob/master/RF24Network.h#L373
[7] Learn about ‘lambda expressions’ : https://docs.python.org/3/tutorial/controlflow.html#lambda-expressions
[8] Learn about ‘int()’ : https://docs.python.org/3/library/functions.html#int
[9] Further info at : https://github.com/nRF24/RF24Network/blob/master/RF24Network.h#L413
[10] Further info at: https://github.com/nRF24/RF24Network/blob/master/RF24Network.h#L467
[11] Learn about ‘decode()’ : https://docs.python.org/3/library/stdtypes.html#bytes.decode
[12] Learn more about ‘split()’: https://docs.python.org/3/library/stdtypes.html#str.split
[13] Learn about ‘float()’: https://docs.python.org/3/library/functions.html#float
[14] Latest version of rf24_receiver.py: https://github.com/futureshocked/RaspberryPiFullStack_Raspbian/blob/master/rf24_receiver.py
[15] The project’s “home”: https://tmrh20.github.io/RF24/

WEB LINKS

RASPBERRY PI FULL STACK
Raspberry Pi Full Stack will take you on a whirlwind tour of full-stack web application
development using Raspberry Pi. In addition to learning how to build an application
from the ground up, you will gain experience and know-how of technologies including:

> The Linux operating system and command line.
> The Python programming language.
> The Raspberry Pi General Purpose Input Output pins (GPIOs).
> The Nginx web server.
> Flask Python web application microframework.
> JQuery and CSS for creating user interfaces.
> Dealing with time zones.
> Creating charts with Plotly and Google Charts.
> Data logging with Google Sheet.
> Developing applets with IFTTT.
> Securing your application with SSL.
> Receiving SMS notifications to your phone using Twilio.

This book will also teach you how to set up a remote wireless Arduino sensor node and
collect data from it. Your Raspberry Pi web application will be able to process Arduino
node data in the same way it processes data from its onboard sensor.

Raspberry Pi Full Stack will teach you many skills essential to building Web and Internet of Things applications. The application you
will build in this project is a platform that you can extend upon. This is just the start of what you can do with a Raspberry Pi and the
software and hardware components that you will learn about. This book is supported by the author via a dedicated discussion space.

Hard copy: http://www.elektor.com/raspberry-pi-full-stack
E-Book: www.elektor.com/raspberry-pi-full-stack-e-book
Free download pdf