Uncategorized

nrf24l01 project notes

PSU Optical Grounding Isolation
https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=219744&start=400#p1416079

Wallwart with a ground pin
Macbook charger teardown: The surprising complexity inside Apple’s power adapter
http://www.righto.com/2015/11/macbook-charger-teardown-surprising.html

kung fu
https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=219744&start=200

i2c buffer
https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=219744&start=175#p1367903

Rooftop Garden
https://www.raspberrypi.org/forums/download/file.php?id=24832

Lipo power bank
https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=219744&start=150#p1362456

Lead acid batteries
https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=219744&start=150#p1362466

meanwell psu
https://raspberrypi.stackexchange.com/questions/103628/reporting-undervoltage-accidental-reverse-voltage

 

sudo aptget install pythondev. # python2
sudo aptget install python3dev. # python3

wget https://github.com/Gadgetoid/py-spidev/archive/master.zip

ls

unzip master.zip

rm master.zip

cd pyspidevmaster

cd ..

mkdir NRF24L01

cd NRF24L01/
git clone https://github.com/Blavery/lib_nrf24
cp lib_nrf24.py ~/Desktop/NRF24L01/

24. The names could be: TransmitPi.py (in one of the devices) and Receive.py (in the other device). Save them in the NRF24L01 directory in both the devices.

25. In the file TransmitPi.py, write the following code with comments (line starting

with “#”) for clear understanding and save (press Cntrl + S on your PC keyboard) the file.

26. In the file ReceivePi.py, write the following code with comments (line starting with “#”) for clear understanding and save (press Cntrl + S on your PC keyboard) the file.

27. Finally, run the script by clicking on Run -> Run Module in the menu bar or by pressing F5 on your PC keyboard.

TransmitPi.py output

TxOutput

ReceivePi.py output

RxOutput

28. For a master/slave setup, follow steps 1 – 23 as above and run the following python scripts Master.py and Slave.py on your respective devices.

Master.py

Slave.py

Master.py output

MasterOutput

Slave.py output

SlaveOutput

Hardware Connections ->

1. Raspberry Pi 3 GPIO Header.

pi3_gpio

2. nRF24L01 pinout

nrf24l01_module_pinout

3. nRF24L01 to Pi connections.

RFToPiConnections

4. Wire up both the devices to the RF modules.

RFToPi_schem

RFToPi_bb

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: