Giter Club home page Giter Club logo

Comments (4)

iGerchak avatar iGerchak commented on June 25, 2024 1

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.

2bndy5 avatar 2bndy5 commented on June 25, 2024
    radio.begin();
    radio.setAutoAck(1);
    radio.setRetries(0, 15);
    radio.enableAckPayload();
    radio.setPayloadSize(32);

A few problems here:

  1. radio.begin() doesn't need to be called twice.
  2. 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 means 250 + (250 * 1) = 500 ) or more when using ACK payloads (of at least 5 bytes).
  3. 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 the enableDynamicPayloads() is invoked.
  4. 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.

iGerchak avatar iGerchak commented on June 25, 2024

@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:
image

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:
image

So, will try to add a capacitor.

from rf24.

2bndy5 avatar 2bndy5 commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.