Arduino Nano R/C car radio communication issues

I have not seen the nrfs communicating, the joystick and servos work and the batteries that I am using are EBL 9v rechargeable batteries. One last thing is that the car will not run any code unless plugged in to my computer.

Hi,

Then forget your car for the moment.
Just connect the NRFs to your controllers and look in the IDE examples for the NRF library you are using and establish NRF communication.

Writing your code as one whole item, is not the way to go.
You must develop your code in stages, at this stage get your NRFs communicating without any other hardware connected or in your code.

Tom... :smiley: :+1: :coffee: :australia:

Ok i will do that

the arduino on the controller is constantly running an old code so when I check the serial monitor it claims that it is "sending joystick data to nrf24_reliable_datagram_server" . this message was from some old code by the dronebot workshop YouTube channel. (it was for dc motors so I abandoned it.) is there any way to stop this rom happening ? and how would I do it. I tried testing some of the other Arduinos that I had and it worked but I could not test the nrfs because the headers are unsoldered (I do not have a solder.)

Upload new code. File->Examples->02.Digital->BlinkWithoutDelay is a good choice.

I have done that but it still shows the old code's serial monitor messages.

also the tx led is lit constantly no matter the code that I upload

That means the upload failed.

Flooding the output could cause an upload to fail:

When a sketch does a lot of Serial output it can be very hard to upload a new sketch. The uploading program on the PC sends a command to the bootloader and reads a response. The USB input buffer is full of whatever the sketch was sending and that data does not match the expected response. The uploader tries the command a few more times before giving up.

To upload over a sketch that floods the Serial output:

  1. Hold down the reset button on the Arduino.
  2. Unplug the USB cable. This causes the PC to flush the USB receive buffers.
  3. Re-connect the USB cable. (by continuing to hold the reset button we prevent new flooding)
  4. Begin the new sketch upload.
  5. WHEN THE RX LED ON THE ARDUINO BLINKS: release the reset button.

That RX blink is the first upload command being sent to the bootloader. Releasing the Reset button allows the bootloader to be ready for the first retry of that command.

1 Like

I did that but the rx never flashed so I didn't know when to let go. it finished up loading and it didn't work. also the tx led never turned off (I don't know if that is a bad thing)

Sorry that didn't work.

That is VERY strange. There should be no way for the Arduino to send output while you are holding down the Reset button.

Hi,
Can you please post an image of your project setup with the USB cable connected?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

I have run a new test and the nrf24 lo1 modules work. ( I got the solder and soldered the headers on one of my other nanos)

So all the problems were a connection issue ?

Im not sure to be honest

I changed some code that I (stupidly) added and uploaded the sketch and it works!

thanks so much to everyone who helped me code this car to work!

ps: I will probably be back because I am attempting to make drone.

Drone as in "Quad" ...???
Plenty of info out there that is tried and proven without having to re-invent the wheel.
Especially when you start to have things buzzing around at head height and above.
Old one but still relevant to some degree........
Still penty to learn so don't think by doing this it is "plug and play" by any means.
https://www.youtube.com/watch?v=2X9AdNUApqw

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.