Comments (4)
I connected an additional power supply to the STM32 board, and now it works!!!!
So, power from USB isn't enough for NRF24L01+PA+LNA.
@2bndy5 thank you so much!
from rf24.
radio.begin(); radio.setAutoAck(1); radio.setRetries(0, 15); radio.enableAckPayload(); radio.setPayloadSize(32);
A few problems here:
radio.begin()
doesn't need to be called twice.- Care should be taken when setting the auto-retry delay (
0
means 250 microseconds). The delay specified here is the amount of time that the radio waits for auto-ACK packets. The datasheet recommends using 500 microseconds (1
means250 + (250 * 1)
= 500 ) or more when using ACK payloads (of at least 5 bytes). - Using ACK payloads requires enabling the dynamic payloads feature. Internally this is done for pipes 0 and 1 when
enableAckPayload()
is called, but just beware other pipes won't be usable unless theenableDynamicPayloads()
is invoked. - Building off of point 3,
setPayloadSize()
(for statically sized payloads) is useless when using dynamic payloads feature.
I tried different configs, pin connections, examples from the lib, power supplier, SPI speed, etc. but can't fix it.
I highly suspect this is a power supply problem due to the use of PA/LNA modules. If you tried the library examples (specifically the ACK payloads example) and it still failed on your STM32, then I think this is a hardware problem (not a software problem). Did you read through our COMMON_ISSUES.md?
from rf24.
@2bndy5 Thank you for the quick answer.
Some bugs in the code can be as I modified it a lot of times during debugging.
Yes, I tried the ACK payloads example, here are the results:
As you can see in the screenshot, the payload on the STM32 isn't available.
And after switching a role, Arduino can't send data.
Did you read through our COMMON_ISSUES.md?
Yes, a few times)
But I haven't tried to use a capacitor before, because I use a power adapter like this:
So, will try to add a capacitor.
from rf24.
Just make sure the adapter board's VCC pin is getting at least a stable 150 mA (at 5 V of course).
from rf24.
Related Issues (20)
- Is there a known ESP32 Deep Sleep issue with radio.powerDown()? [Question] HOT 19
- Can RF24 library be used with WiFi? HOT 2
- Can RF24 library be used with WiFi? HOT 4
- [Question] setChannel & setDataRate not read correctly by printPrettyDetails ? HOT 4
- ESP32 Core Panic on radio 0; No panic on Radio number 1, same wiring. How to troubleshoot?[Question] HOT 22
- Use Linux kernel's character device API to implement IRQ capability HOT 113
- [Question] R24.h, testRPD(void) "Strong signal > 64dBm" : "Weak signal < 64dBm" HOT 5
- [Question] Issue using the ManualAcknowledgements.ino HOT 11
- Multiple senders one receiver HOT 1
- reorganize examples HOT 5
- revise MRAA driver's GPIO
- Phasing out most Linux drivers HOT 1
- [Question] Address names used in examples problematic? HOT 8
- Library blocks 11 pin HOT 1
- Unable to use SPI1 on the raspberry pi pico HOT 3
- NRF24L01 does not show all characters in the receiver HOT 4
- Problem using stopListening() and startListening() HOT 3
- [Question] Some modules take way longer to write() HOT 6
- can't find RF24 method inside RF24 module HOT 18
- Change `SERIAL_DEBUG` into `RF24_DEBUG` HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rf24.