Hello!
I am a student working on a project at school. My goal is to build a foam-board airplane using an Arduino with an nRF24L01 module. However, I am facing some difficulties. (I am supplying power through a BEC, with 2A at 5V.)
My goal is to connect four servo motors to a receiver, controlling them with values received from a joystick. I am using an Arduino Nano on a breadboard with an RF24 module and a 10uF capacitor between the power lines. I also twisted the power wires in pairs to reduce noise as much as possible. However, the serial monitor shows that the transmission failed.
Could you show me how to connect the wiring? Please explain how I should set up the connections.
This works the other way around. You show how you have it wired up and then the rest of us comment. There are plenty of websites that detail how the RF24 modules can be connected to an Arduino. The main thing is to use suitable pins and to use the correct pin numbers in your sketch, corresponding with your hardware connections.
So start by showing a schematic of your project as it is now. Also include a clear photo of all connections. For both the sender and the receiver, please.
Also note that there are many, many threads about getting RF24's to work. They usually involve a step where a library is used to query the parameters of the RF24 to verify it's connected correctly. I'd give that a try. Do a little search and post back when you've tried this route.
I'm using the nRF24L01 PA + LNA version and an adapter board to ensure stable 5V power supply. My Arduino is at school, so I’ll be able to provide more detailed photos tomorrow. While my circuit is slightly different, including the addition of a capacitor, it’s roughly the same. Thank you.
Posting a correct, annotated schematic will go a long way in helping you get an accurate answer. Be sure to show all connections, power, ground, power sources, and note any leads longer than 10 inches (25 cm).
If you haven’t fried your Arduino yet, consider yourself lucky!
Gil's Crispy Critter Rules for Processor Hardware:
Rule #1: An Arduino is NOT a Power Supply!
Rule #2: Never connect anything inductive (motors, speakers) directly to an Arduino!
Rule #3: Avoid connecting or disconnecting wires while the power is on.
Rule #4: Do not apply power to any pin unless you are certain of what you're doing.
Rule #5: Do not exceed the maximum voltage ratings.
Rule #6: Many Arduinos cannot power transmitters directly.
Rule #7: Before powering your project, take a break and double-check the wiring.
LaryD’s Corollaries:
Coro #1: When starting out, add a 220Ω resistor in series with both input and output pins to protect against shorts.
Coro #2: Invest in a Digital Multi-Meter (DMM) to measure voltages, currents, and resistance.
Note: Violating these rules can turn your Arduinos into crispy critters. For optimal performance, keep your wires under 25 cm (10 inches).