Skip to content

Commit b9d9036

Browse files
committed
drivers/radio/nrf24l01: Increase startup delay.
According to the datasheet of the NRF240L1 chip, 150 μs startup time is only acceptable when the chip is clocked externally. Most modules use crystal, which require 1.5 ms to settle. I think it's okay to wait more in both cases, for a reliable startup. Signed-off-by: Marcell Pünkösd <[email protected]>
1 parent e4cf095 commit b9d9036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: micropython/drivers/radio/nrf24l01/nrf24l01.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def send(self, buf, timeout=500):
227227
def send_start(self, buf):
228228
# power up
229229
self.reg_write(CONFIG, (self.reg_read(CONFIG) | PWR_UP) & ~PRIM_RX)
230-
utime.sleep_us(150)
230+
utime.sleep_us(1500) # needs to be 1.5ms
231231
# send the data
232232
self.cs(0)
233233
self.spi.readinto(self.buf, W_TX_PAYLOAD)

0 commit comments

Comments
 (0)