I'm trying to receive data from Arduino boards since I am so tired of C. I connected the pins to Wemos D1 according to the nrf24l01test.py
'miso': 12 ->D6, 'mosi': 13->D7, 'sck': 14->D5, 'csn': 4->D2, 'ce': 5->D1
but always get OSError: nRF24L01+ Hardware not responding when I try nrfl01test.slave().
The modules are not defective since they worked on Arduino boards.
Any idea? Thanks!
Wemos D1 and RF24L01 OSError: nRF24L01+ Hardware not responding
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Pin numbers look correct
The pin numbers look correct.
But what is your slave running? The test program assumes that the slave is also running the same MicroPython test program in slave mode. If you're trying to talk to an Arduino there are several settings which have to match and you'll need to study the code in detail. In particular the pipes bytes must match. This is a feature of the NRF24L01+ which ensures that only matching radios will talk to each other.
If you have two Wemos boards you could build confidence by running the test between them before adapting your code to talk to the Arduino (or adapting the Arduino end).
But what is your slave running? The test program assumes that the slave is also running the same MicroPython test program in slave mode. If you're trying to talk to an Arduino there are several settings which have to match and you'll need to study the code in detail. In particular the pipes bytes must match. This is a feature of the NRF24L01+ which ensures that only matching radios will talk to each other.
If you have two Wemos boards you could build confidence by running the test between them before adapting your code to talk to the Arduino (or adapting the Arduino end).
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Wemos D1 and RF24L01 OSError: nRF24L01+ Hardware not responding
Thank you. I rechecked and the error came from the initialization line. I think it might be a bad module.