I bought a E01-ML01DP5 module which is based on the nRF24L01+ (only amplified). I wanted to use the driver (nrf24l01.py) provided on the micropython repository, but can't get it work. The wiring should be ok (module connected to SPI; CS to pin 15, CE to pin 2) - it would give me the error "nRF24L01+ Hardware not responding" if it wasn't ok (as it was some time ago). Unfortunately, sending does not work anyway: The send(...) method always gives me an OSError. This is the same when I do it manually: send_start(...) is okay, but send_done() returns 2.
Here some simple code that fails, but should work (OSError: send failed):
Code: Select all
import machine
import nrf24l01
spi = machine.SPI(1, baudrate=4000000, polarity=0, phase=0)
cs = machine.Pin(15, mode=machine.Pin.OUT, pull=None)
ce = machine.Pin(2, mode=machine.Pin.OUT, pull=None)
nrf = nrf24l01.NRF24L01(spi, cs, ce)
nrf.open_tx_pipe(b'\xf0\xf0\xf0\xf0\xe1')
nrf.send(b'12345678')