Problem with NRF24L01+PA+LNA (Gateway - Sensor Connection)
-
You are most likely not supplying enough power for the radio module for transmitting. Also if the radio module is not shielded it could cause problems too if TX power is too high
-
We bought these: NRF24L01+ PCB Adapter
We do not use any capacitor.
What irritates me, the gateway works (ethernet gateway) with the +PA+LNA, whereas the sensor nodes do not. We have switched the PCB Adapters and antennas without any change.
-
Ok, try adding one cap on the vcc/gnd pins of the radio: try with a 100uF just to play safe and see if it gets any better, then if it works you could work your way down to a smaller value
-
I've also had some issues with these nRF24L01+PA+LNA versions, while not having any issues with the regular nRF24L01 modules.
I found that if I set the transmitter power (MY_RF24_PA_LEVEL) to a lower setting the problem generally reduced or disappeared completely.
Of course it is not really nice to use a lower power setting on these modules as it was intended to get maximum range, but it does point in two likely causes:- As stated by others, it can be due to poor power at the radio and this must be fixed first:
1. Make sure to use an adequate external power supply (most arduino's are not up to the task of delivering sufficient current for this type of radio).
2. Use a (low voltage drop out) regulator near the radio, note that the external power supply delivers sufficient voltage for the regulator to operate correctly.
3. add a decent size (10~100uF) capacitor near or on the radio's power line - At least some of the nRF24+PA+LNA appear sensitive for picking up noise (transmitted by its own antenna). To solve this you will need to shield your radio. The easiest way is if your radio and other parts are in a case and the antenna is sticking out to run to the kitchen and grap the aluminium or tin foil and wrap the entire casing (excluding the antenna) in (multiple layers of) aluminium or tin foil.
If the latter works (which it did for me), you can look into a cleaner solution of shielding the module (maybe a metal casing?).
- As stated by others, it can be due to poor power at the radio and this must be fixed first: