Skip to content

Commit 3e859d2

Browse files
marcsellodpgeorge
authored andcommitted
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 a crystal, which require 1.5 ms to settle. It should be okay to wait more in both cases, for a reliable startup. Signed-off-by: Marcell Pünkösd <punkosdmarcell@rocketmail.com>
1 parent 98d0a2b commit 3e859d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/drivers/radio/nrf24l01/nrf24l01.py

Lines changed: 1 addition & 1 deletion
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)