2

enter image description here I'm making an RC car with the Arduino Nano. I'm using RF433 as wireless communication with 2 motors and L293D as the motor driver. I use 4 1.5V batteries to power the Arduin and another 6V battery pack to power the motors, and a joystick with an Arduino Mega to send commands through the RF433 to the Arduino Nano.

I've written a program that sends specific digits when the joystick is in a certain position, i.e. when the joystick is "bent" to the front it sends a "1", a "2" is sent when the joystick is bent towards the back, and so on.

My problem is this:

When I bend the joystick towards a certain direction, the RC car moves accordingly without problem; However, when I bend the joystick towards another direction the RC car doesn't respond.

I took a look at what the RC car was receiving, and I've noticed that after the first command was sent (when I bend the joystick towards a certain direction), no more commands get to the RC car (in other words the Arduino Nano), and this occurs occasionally. I think this means the Arduino Nano "froze" after the first command.

  • Does the problem occur or not occur when you unhook power to the motors? – James Waldby - jwpat7 Feb 20 '17 at 1:13
  • @jwpat7 Sorry, but what do you mean by "unhook power to the motors"? If I unhook the batteries powering the motors, It'll stop rotating in the first place, no? – IronEdward Feb 20 '17 at 1:25
  • You can run tests with an LED+resistor in place of each motor. The idea is to have a low-current non-inductive load in place of the motors. If problem still occurs, look for wiring or software errors. If it doesn't, look for battery supply problem or electrical noise problem. – James Waldby - jwpat7 Feb 20 '17 at 1:31
  • @jwpat7 Ok. I'll look into that and comment if things go awry again. Thanks for the help. – IronEdward Feb 20 '17 at 1:32
  • Nice drawing, bub. – wogsland Feb 21 '17 at 2:56
2

You have at least three problems here:

1) First and most critically, a nominal 6v pack does not meet the input voltage requirements of the regulator used an Arduino even before it gets loaded down by a motor, and it only gets worse under load

2) L293/L297 and similar bipolar bridges have absurdly high internal losses, so are unsuited to low voltage systems - effectively one of your cells goes just to feeding the wasteful driver chip. Use a modern and efficient FET driver like a TB6612FNG, or else add another cell to the pack.

3) The 433 MHz RF modules are notoriously low fidelity, and in many places not permitted for the control of RC models anyway. You'll have much better results with the sophisticated digital radio modules sold at comparable prices for 2.4 GHz, which are incidentally the functional equivelent of what most RC toys now use (and actually in many cases can be made interoperable with them).

Granted, you may well have other issues as well, such as errors in your software.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.