I am using a pair of APC220 modules to communicate data from sensor from one place to another using 2 arduinos. I am currently learning how they work and am trying to send a string from one apc to another. However, this doesn't work. I assume that the APC220 is sending data, because the tx lamp is flashing, however on the receiving arduino i do not see the rx lamp flashing. I have checked the wires and checked if they both have the same settings. Does anyone have an idea of what the problem could be?
Powering a transmitter from the controller may be a reason for trouble. It's bad design using the controller as a power supply for motors, transmitter etc.
If You're lucky if things just don't work. If You're unlucky the controller board gets damaged.
As described in the RF24 Common Issues Guide, radio modules, especially the PA+LNA versions, are highly reliant on a stable power source. The 3.3V output from Arduino is not stable enough for these modules in many applications. While they may work with an inadequate power supply, you may experience lost packets or reduced reception compared to modules powered by a more stable source.
Symptoms of Power Issues:
Radio module performance may improve when touched, indicating power stability issues.
These issues are often caused by the absence of a capacitor, a common cost-saving omission by some manufacturers.
Temporary Patch:
Add Capacitors: Place capacitors close to the VCC and GND pins of the radio module. A 10uF capacitor is usually sufficient, but the exact value can depend on your circuit layout.
Use Low ESR Capacitors: Capacitors with low Equivalent Series Resistance (ESR) are recommended, as they provide better power stability and performance.
Adding the appropriate capacitors can greatly improve the reliability of your RF24 module by ensuring a stable power supply, thus minimizing packet loss and enhancing overall performance. A separate power supply for the radios is the best solution.
There is no link to the part being used so I took a SWAG:
nRF24L01 Features
2.4GHz RF transceiver Module
Operating Voltage: 3.3V
Nominal current: 50mA
Range : 50 – 200 feet
Operating current: 250mA (maximum)
Communication Protocol: SPI
Baud Rate: 250 kbps - 2 Mbps.
Channel Range: 125
Maximum Pipelines/node : 6
Low cost wireless solution:
They also work better if they are at least a meter apart.
the APC's rx goes into the arduinos tx and the APC's tx goes into the arduinos rx correct? I have checked the wires over and over again, seems like everything is correct.
This is pretty silly for single-character-based communications, especially considering that use of String objects tends to cause AVR-based Arduinos to crash:
The problem is fixed! I have switched to 2 brand new arduino's and new jumper wires. The problem was probably in one of the jumper wires, but im not sure.