so i’m trying out the NRF24l01 and i thought i would do a very basic push button activated led light, press the button on the transmitter and the led on the receiver comes on, release the button and the light goes out. however no matter how much i play with the code i can’t seen to get it to work again. i say again cause i used the 2 arduinos for another project but when i re-uploaded the same code to them it didn’t work. can anyone tell me what i’ve done wrong?
Your transmitter is sending data every time through loop(). I doubt you need thousands of button states send every second. Try putting a delay in there so you only transmit a couple times a second.
How is your button wired up? You have it declared as an INPUT (vs. INTPUT_PULLUP) so you need an external pull-down resistor in your circuit. Do you have that?
That button has 4 pins. Are you sure you have it oriented correctly? If it is rotated 90 degrees, then it won't work. A schematic is better than a picture (even a hand drawn one)
Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.
The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work
so i manged to get the led to work, turns out that if was an error with the receivers code. other thing i've learnt is that removing the arduino from the usb port and plug it back in made it work.
the output digital pins on the nano are 2.8v doesn't hurt the led which is 2.5v max when using it in short burst. range tested these nrf24l01 up to 110 meters and the delay is unnoticeable to the human eye. so now the basics works i'll more on to making 1 transmitter and 3 receiver nanos with an led connection indicator