0

I watched this video and used his transmitter code and receiver code. However, it's not working. There's no response from the receiver.

The transmitter stuck at the loop:

if (!radio.write( &data, sizeof(unsigned char) )) {
Serial.println("No acknowledgement of transmission - receiving radio device connected?"); 
}

and the receiver never received anything and only printed:

  Serial.println("THIS IS THE RECEIVER CODE - YOU NEED THE OTHER ARDUINO TO TRANSMIT");

I've been stuck here for hours. I checked the hardware, there's no issue there. I also tried to adjust the code couple of times, and it looked decent but not helping. Could you help me to check what went wrong with the code please?

11
  • 1
    Try moving the transmitter and receiver further apart. Commented Jan 2, 2020 at 16:27
  • Check your wiring thrice, 99% of issues are there. Make sure the 3.3V bus is decoupled with at least 10mF of capacitance, noise on the 3.3V bus is an enormous no-no for nRF24L01+. Commented Jan 2, 2020 at 20:07
  • After that is done, find the RF24 examples from Arduino IDE, upload those to your boards with the right configuration and see if those work - it's a battle-tested piece of code. Commented Jan 2, 2020 at 20:09
  • @Avamander I saw your post in Arduino forum. However, it did not work for me. I went the expansive way. I tried the multiple noise filter, but it did not help. Eventually I got a special adapter with onboard regulator, it still didn't work. Turns out, it has to do with the communication device itself. The one I got had an antenna that strength singal the distance and penetration. But somehow it made the device very unreliable, possibly because it's receiving single within a mile. Once I switched to a weaker chip, it worked out immediately and the data was guaranteed. Though less sensitive. Commented Jan 2, 2020 at 23:58
  • 1
    It's perpetuation ability was too good. [...] think the device is boosting every single received from the entire building. A nearby source will still most certainly overpower any far away noise source, receiving should work. The fact that a weaker module works still indicates a power supply issue rather than noise issue. However it's also possible that you have stumbled upon a counterfeit nRF24L01+, by any chance is it under a blob of epoxy? Commented Jan 3, 2020 at 1:41

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.