I'm working on a personal project to build a head tracking camera with an Arduino. So far I've succeeded with the wired version, which uses an MPU6050 and two servos connected to a single uno board to track movement, but I'm struggling with sending data wirelessly to the NRF24L01 using an Arduino nano and uno. I have also soldered a 100uF capacitor to the NRF24L01 and after changing the NRF24L01 itself, I am getting the same symptoms. I have connected an MPU6050 and NRF24L01 to the nano board, and 2 servos and NRF24L01 to the uno board. I am currently testing with code that sends a simple message, but I keep getting a "SEND FAILED" message on the transmit side.
Any help or advice would be greatly appreciated.
both nano and uno NRF24L01 are connected like this:
CE-> D8
CSN-> D7
SCK-> D13
MOSI-> D11
MISO-> D12
VCC-> 5V
GND-> GND
I'm using adapter with NRF24L01
Hi! jremington thank you for your advice. I hadn't thought of an external power supply for the servo though. If the wireless communication is successful, I'll take your advice for the next step. I removed all other parts, including servos, and just connected the adapter and NRF24L01. Unfortunately, it still says SEND FAILED on the nano.
Hi alto777. followed your advice to make some distance, but it doesn't seem to have made a difference.
and yes, I made a code with GPT. maybe I would rather try IDE examples in RF24....
Funny thing is, if I move the NRF24L01 on the adapter around or leave it loose in the socket, it sometimes says 'sent'. I don't think it's actually sent. Because the transmitter just says broken.
It's really killing me, I'm just following the tutorial. I bought an extra NRF24L01 just in case, I'll try to swap them out. Any other advice or help would be really helpful!
OMG, I finally did it, I changed the address and suddenly it works. I'm finally able to move on to the next step, I'll try to update when I get it working. Thanks to everyone who is helping this rookie.
Now carefully save the working sketches and keep them as they are exact. For later when things may not work that you try to do.
Always have them ready to flash so you can check the hardware is working.
Give yourself a merit badge. Getting these little radio sets to function is hard, no one did it without aging a bit… and yes, show chatGPT the door and work from known good code, usually the code with a competent tutorial that also spells out every. Other. Pesky. Little. Detail.
no, it's not work, maybe something's wrong with my address. Also, the communication code seemed to be overloaded, so changing the code itself to a shorter, more minimalist version helped.