Hi people, i have an arduino mini pro that sends information through the chip nrf24l01 to another when a button is pressed, the prototype powered by usb works fine, but when I feed it with a 5V cell phone charger fails, not always.
The problem is when you plug into the 220V network some device that consumes a lot of current, for example, the iron solder itself, switch an old light bubble or a ceiling fan, in those cases send random information without any pressed button.
take a good psu, the cell phone chargers often have not 5V, more 4.xV and are designed for charging.
Often also they might dont have caps for filtering / buffering.
The RF24l01 needs a 100nF + 10µF cap directly on his + and gnd.
For the RF24l01 a good psu is a must!
the only diference is 10K was very sensitive for me, so i changed for 1k and works perfectly
remove the external resistors
change the if condition (digitalRead(x) == DOWN)
change the side of the button which is connected in vcc to gnd
I brought one of them to my house to try again and put in a multiple plug my pc, a little stereo, my cellphone, an old bubble light, a floor fan in maximum speed and the arduino powered with the first cheap charger.
I turn everything on and off several times (i know it was dangerous for de devices, but i had to clear my doubt, and nothing mess up ) and the arduino works perfectly, doesn't fail any single time
so, the only i can think is that the electrical instalation of the house where it fails is really bad. now i remember that while are making the instalation of these arduinos, when we used the drill all the lights lose a little of intensity
you must check the mains instalation for bad connections!
i dont think so, the connections already been checked twice in the first instalation, and twice again in the second instalation. the sistem works perfectly meanwhile don't use the devices listed above and nothing heats up, make smoke or fail in some way, beside i have the exacly same connection here since i brought the last one to test
honestly, my brain is dry, i don't know what else to try and i already searched for everywhere. i'm done, we gonna to optimice the code to use bateries and end this mess
thank you very much for your time spent here since you are the onlyone who tryed to help me, take your deserve karma point, and thanks again
Your false positives may come form anywhere, and you may look endlessly to find the cause. I control my lighting with arduino and had similar issues (100% success in trial setup, 1% false positives in live deployment), and decided to go for polling.
Please read this reply from me to get an example of switch polling that works for me, with a mega and internal pullups.