Hi everyone!
I'm working with 2 nRF24L01 (with the RF24 library) and a SFR05.
My idea is to send the distance measured by the SFR05 over to the receiver.
The problem that I have is that I'm not able to have the radio available (I have based my code on another one that works).
This is the Tx code:
Posting an annotated schematic showing exactly how you have wired it helps us help you. By showing all connections, power, components, ground and power sources you will save a lot of clarifying questions and time for
all of us. Be sure to note any logic wires over 10/25 inches/cm in length. Post links to technical information on the hardware items including the motors, shield, and Arduino. This should include all component values or model numbers and details of all power supplies used (which could be USB power for example). Posting the code following forum guidelines using code tags will also help. With this information we should be able to answer your question accurately. "How to get the best from this forum".
If you don't understand what a schematic is, please Google to find out. It is not the same thing as a wiring diagram. Hand-drawn is OK. Some bright, sharp photos of the circuit may also be useful.
The thing I see is many of the users do not want to draw schematics yet a large portion of there problems are in the connections, power etc. It appears they spend about a week or so with lots of questions and then maybe, give up, and some get lucky. It is amazing how many problems you find when doing a real labeled schematic including Technical links. That schematic makes them look like a pro. It appears to me that most of the time when a proper schematic is posted the solution is usually within day or so. Good schematic capture software can be gotten for the downloading. Months later a wire comes off, looking at the schematic and putting it back saves lots of headaches.
KiCad: There are many out there and you will find just like color different people like different colors, some blue, red, ..etc. CAD (Computer Aided Design) programs are like that. You will need to learn a schematic capture program that will work for you.
it is a good idea to call radio.isChipConnected() to check if the NRF24L01 is connected ok, e.g.
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("\n\nESP32_S3 > NRF24L01 Receive text");
radio.begin();
if (radio.isChipConnected())
Serial.println("Receiver NF24 connected to SPI");
else {
Serial.println("NF24 is NOT connected to SPI");
while (1)
;
}
Hi everyone!
Firstly:
I am using two NRF24L01+PA with the socket to convert to from 5V to 3.3V.
In the receiver side I use an Arduino Uno and on the transmitter side I use an Arduino Uno R3.
This is the schematic for the Tx:
Please note that the CE pin in the schematic is connected to the Arduino Uno PIN number 4 whilst in reality is connected to the 9th (I couldn't change sorry).
Secondly:
I used the function radio.isChipConnected() on both the Tx and the Rx and it says that both are connected.
Thanks for your help.
Powering the nRF24L01 with the Arduino 3V3 will probably not work.
Try an external 3V3 supply that can supply the required current.
A 220uF to 470uF capacitor on 3V3 might be helpful too.
Using digitalWrite() introduces a delay, forming what might be a long enough pukse.
But when I went to look at the sensor library code and examples, I find that using the NewPing library means not having to do the usual steps by hand,
@arduino_fan7 why don't you use the simpler calls that NewPing allows?
And have you tried just eliminating, temporarily, the ultrasonic stuff, instead send a value you can recognize as having been sent successfully?
Is your hardware unchanged since the two sketches that worked? Any wiring, lead dress or power supply changes may be at the bottom of this; I cannot compare your code to the code that worked just now.
The hardware has not been changed from the first project to this one except adding the sonar.
I've just tried to send just a float, without using the sonar or measuring with it… and I still have the same issue.
The radio (on the receiver end) is still not available.
Does anyone have and idea on how to solve this?
Thanks everyone.