Closed amad3v closed 2 years ago
My first guess: The nano 33 BLE has a faulty SPI connnection. Try slowing down the SPI speed
RF24 radio(9, 10, 4000000); // uses 4MHz instead of default 10MHz
Did you first try any RF24 lib examples? The scanner sketch is more of a tool than an example. I have to ask as my suggestion doesn't involve RF24Network library, and doing so would help narrow down the problem.
Thank you @2bndy5 You nailed it 👍🏼 💯 , slowing down the SPI speed solved the issue.
If you don't mind me asking. When you say "has a faulty SPI connection", do you mean internal to the BLE? and why slowing down the SPI speed solves the issue? I'd like to understand what's going on 🤔
Some boards have a high impedance on certain data buses. In such cases, the high-to-low (& low-to-high) transitions on the MOSI/MISO/SCK lines may not be recognizable by the time the pulses reach the radio (or when they are returned to the board). This failure to interpret pulses results in corrupted data (AKA misinterpreted data) going to/from the radio's SPI connections. Some boards' data buses are just extremely sensitive in terms of identifying pulses from noisy power spikes.
Using short wires or pull-up resistors may help (no guarantee from me - please be cautious with pull-up resistors).
IIRC, you aren't the first person that reported this problematic experience with the Nano 33 BLE board.
why slowing down the SPI speed solves the issue?
Sorry, I completely forgot to answer this. By slowing down the SPI speed, we can better serve a series of pulses that are more easily interpreted. And that's about as technical as I can get in this context.
That was more than enough. Thank you once again!
Hi guys,
I'm trying to establish a network between nano 33 IoT and nano 33 BLE through nRF24L01P with the following configuration on both boards:
The scanner sketch works fine and both boards read FFF at the selected channel (+/-1).
If I use the BLE as a receiver (address 000), the IoT outputs
Sending...ok.
but the BLE doesn't diplay anything. Switching the roles (IoT becomes the receiver), BLE outputsSending...ok.
and the IoT displays random data without the set delay:The same code and configuration on 2 Arduino UNO works fine:
The provided examples (
helloworld_rx.ino
andhelloworld_tx.ino
) are usedsketch:
Any suggestions?
Thank you!