Wemos D1 and RF24L01 OSError: nRF24L01+ Hardware not responding

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Lodimup
Posts: 2
Joined: Sat May 18, 2019 1:26 am

Wemos D1 and RF24L01 OSError: nRF24L01+ Hardware not responding

Post by Lodimup » Sun May 19, 2019 5:34 pm

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!

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Pin numbers look correct

Post by pythoncoder » Mon May 20, 2019 5:56 am

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).
Peter Hinch
Index to my micropython libraries.

Lodimup
Posts: 2
Joined: Sat May 18, 2019 1:26 am

Re: Wemos D1 and RF24L01 OSError: nRF24L01+ Hardware not responding

Post by Lodimup » Tue May 21, 2019 9:11 am

Thank you. I rechecked and the error came from the initialization line. I think it might be a bad module.

Post Reply