How to Control a Motor that has Been Taken Out of a RC Car with the Arduino

So I got a motor from a RC car and i need to control it so that it goes both ways. I put a battery to the two wires it has it you have to flip the battery in order to make it go the opposite way. My question is how to control which way it goes.

Thanks

The simplest way is to use a motor driver ic, like L239D or L298N...

But first you need to find out how much current the motor takes - motor
drivers like the L293 and L298 have very limited current capability.

Some more information about the car and or motor? Measure the motor
resistance?

MarkT:
But first you need to find out how much current the motor takes - motor
drivers like the L293 and L298 have very limited current capability.

Some more information about the car and or motor? Measure the motor
resistance?

For example, i use a L298N, which can handle a total of up to 4A.. In my opinion this is not a "very limited current capability" ...
Sure it's a good idea to find out how much current the motor takes, just in case !!!!

4A is basically nothing in an RC-car. I've got 4 very basic motors, each of 15Amps.

You didn't get the ESC out of the car? That's what you need to control it with servo.h

enanthate:
4A is basically nothing in an RC-car. I've got 4 very basic motors, each of 15Amps.

Perhaps you have a professional super fast racing car :smiley: :smiley: :smiley: i would never , never get 15 amp motors for an rc car... there are so many dc motors of 100-200 mA, those are ideal, at least for me , for an rc car...

And i wouldn't consider a 15 amp motor as "basic" :astonished: :astonished:

zaxarias:

MarkT:
But first you need to find out how much current the motor takes - motor
drivers like the L293 and L298 have very limited current capability.

Some more information about the car and or motor? Measure the motor
resistance?

For example, i use a L298N, which can handle a total of up to 4A.. In my opinion this is not a "very limited current capability" ...
Sure it's a good idea to find out how much current the motor takes, just in case !!!!

Ha, good joke... No, the L298 will not handle 4A. Assume each channel will manage 1A
at most and get super-hot doing that. Sure it can handle 2A peak per channel but without
liquid cooling forget trying to run that continuously, its a darlington-based chip.

MarkT:

zaxarias:

MarkT:
But first you need to find out how much current the motor takes - motor
drivers like the L293 and L298 have very limited current capability.

Some more information about the car and or motor? Measure the motor
resistance?

For example, i use a L298N, which can handle a total of up to 4A.. In my opinion this is not a "very limited current capability" ...
Sure it's a good idea to find out how much current the motor takes, just in case !!!!

Ha, good joke... No, the L298 will not handle 4A. Assume each channel will manage 1A
at most and get super-hot doing that. Sure it can handle 2A peak per channel but without
liquid cooling forget trying to run that continuously, its a darlington-based chip.

Perhaps you are wrong...
If you take a look at the L298N manual you will see at the absolut Maximum Rating array that it can output 2A per channel while in DC operation..
Page 2 :wink: https://www.sparkfun.com/datasheets/Components/General/L298N.pdf

You will also see the Vsat of the drivers at that current level and realise the chip will
be dissipating 15W or so at that current which is only possible on the version
with a tab if mounted on a large heatsink with a fan or with liquid cooling.

Absolute maximum ratings are not recommended operating conditions, and never have been.

MarkT:
You will also see the Vsat of the drivers at that current level and realise the chip will
be dissipating 15W or so at that current which is only possible on the version
with a tab if mounted on a large heatsink with a fan or with liquid cooling.

Absolute maximum ratings are not recommended operating conditions, and never have been.

Ok, i agree with you Mark on this, sure they are not recommended..