Testing bi-directional transmission between two high-power nRF24L01 radio modules.
Additional notes:
A 6 byte packet is sent to the receiver, which bounces the exact same packet back. The transmitter checks the time taken using millis() to determine a 'latency' value. The throughput speed degrades quickly as the packet size grows. 6 bytes is enough for 4 analog channels and 16 binary switches.
Keep in mind though, this is the round-trip time taken for a confirmed receipt. If you're using one-way communication as would be more typical for RC vehicles, the 'latency' would be much much shorter.
Messy source: www.iforce2d.net/rf24RangeTest...
I had a lot of memory issues trying to get the OLED library, TinyGPS++ and the nRF24 library all working together on a 328p, so I have squeezed a lot of variables and extraneous stuff out. You may find that increasing the packet size or even adding a few more variables to the transmitter sketch will give you problems.
Негізгі бет Ойын-сауық nRF24L01 range test (arduino)
Пікірлер: 131