-
1Step 1
For the controller and PIR the NRF24L01 uses the same pins to connect to arduino,
Pin connections are,
- Vcc - 3v3
- CE - Pin 9
- CSN - Pin 10
- SCK - Pin 13
- MOSI - Pin 11
- MISO - Pin 12
- GND - 0v
- On the controller board you will need to connect to pi A4 to GND
-
2Step 2
The OUTPUT pins are mapped to the INPUT pins which are
PIN 2 = INPUT/OUTPUT 1
PIN 3 = INPUT/OUTPUT 2
PIN 4 = INPUT/OUTPUT 3
PIN 5 = INPUT/OUTPUT 4
-
3Step 3
On the new version of source code i need to add a 10k resistor from arduino INPUT pin to GND on one side of switch and 5v on other side. Before i added the 10k i was getting false readings. I may need to re enable the internal pull-up resistor in the next version of source as on my PIRs i have an NPN which would normally bring the INPUT pin LOW
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.