im trying to send a simple hello msg to another NRF module but the message is not being sent. the code im using is below and every time i try to send a message it displays not sent message in serial print. PLease help
Hi,
Please a schematic, also have you got a 10uF capacitor across the 3.3V supply, the 3.3V regulator on the controller sometimes need this to deal with the surge current when the NRF starts to Tx.
shaikhhammadali:
Tried that in first place. It didnt worked
Then you have done something wrong or one of your nRF24s is faulty.
First thing is to try the connection test program on both Arduinos. If that does not work then nothing will work.
The connection test does not test the wireless part of the nRF24 and a common problem is an inadequate 3.3v power supply. Try powering your nRF24s with a pair of AA alkaline cells (3v) with the battery GND connected to the Arduino GND.
If you still cannot get my first example program to work then please post the exact programs that YOU uploaded to your Arduino and also provide a sample of the output from each Arduino.
TomGeorge:
Hi,
Please a schematic, also have you got a 10uF capacitor across the 3.3V supply, the 3.3V regulator on the controller sometimes need this to deal with the surge current when the NRF starts to Tx.
What about your receiver?
What model Arduino are you using?
Thanks.. Tom..
HI tom
yes i have got a capacitor on both Modules.
im using arduino NANO for transmitting and a UNO for receiving.
BTW i just saw that if on code i define CE and CSN as 7 and 8 respectively and my NRF is physically connected to PIN 9 and 10.
on the above condition the nrf is transmitting a hello world msg.
Can you help me with this?
Connect CE and CSN on the NRF24s to the that you use when creating the instance of the radio object. You cannot hope to make the program work if you do not do that
Once again, have you tried Robin's connection test program ?
UKHeliBob:
Connect CE and CSN on the NRF24s to the that you use when creating the instance of the radio object. You cannot hope to make the program work if you do not do that
Once again, have you tried Robin's connection test program ?
I can assure you that Robin2's code does work. I have used his code many times. If it did not work for you, you most likely have a hardware problem.
One thing to note is that a reset of the Arduino that a rf24 that is connected to will not reset the radio. After you upload new code to the Arduino, power cycle the Arduino to reset the radio. I found that that is often necessary.