How to use motor for rc car arduino

Ive done some digging and realised i need to use a transistor to make my dc motor work, but im quite confused, because some schemtics have diodes, others dont, some have a 9v battery,others don't, and apparently it wont wokr if i dont have a 9v battry, can someone help me , im just so lost rn

You need a power supply sufficient for the motor, both in volts and amps. That will depend on the exact motor.

If the motor only has to go forward you only need a transistor or MOSFET to turn the motor on and off. If the motor has to go forward and backward you need an H-Bridge motor controller so you can reverse the current.

The motor uses electromagnets. When you STOP running current into an electromagnet the collapsing magnetic field causes a big negative current spike. Snubbing diodes across the electromagnet will short out the spike and prevent it from damaging the other parts of your circuit. That is why some schematics for motor control show diodes.

thank you that clears up all the confusion from before, but i dont understand how to use the transistor, or wher to plug everything into with

Show some details of what you have.
Schematic, battery type, controls, code or whatever.
Without this, everyone else here is flying blind also.

Search for "Arduino MOSFET switch". Choose a schematic that shows a motor and a diode.

And don't try to use a little rectangular 9V battery to run a motor. They don't have enough power. Something like 6 x AA batteries will be better.

Steve

Hi sorry for the very very late reply, but I can't find any schematics, can someon help me by showing em aschematic of how this would work, I don't mind about the code currently, just need the schematic so i can have a starting point

Show details of what you have.

Motor, battery etc.

Also what you intend to drive with it.

“but I can’t find any schematics, can someon help me by showing em aschematic of how this would work,”

Google is your friend. That being said, a lot of schematics are lacking in correctness. Use the forum search box in the upper right for “logic level mosfet”.

https://www.google.com/search?lr=&as_qdr=all&q=arduino+mosfet+schematic&tbm=isch&source=univ&safe=images&sa=X&ved=2ahUKEwjAzMH5y5PoAhUkT98KHSlOAR4QsAR6BAgGEAE&biw=1022&bih=579

Will this work because i'm not sure whether the schematics will work or not

People keep asking you what motor you have, what you want to do with it and what battery/power supply you will be using. You never answer so how are we going to know what will work for you?

That isn't a schematic. That picture is useless. None of the components are marked. It has no resistor on the MOSFET input and apparently no diode and I have no idea what the thing with the spark is supposed to be...so no it isn't a good example.

Steve

Hi,

Can you please post a picture of a hand drawn circuit in jpg, png?
Include part numbers and your power supply please.

Thanks.. Tom... :slight_smile:

slipstick:
People keep asking you what motor you have, what you want to do with it and what battery/power supply you will be using. You never answer so how are we going to know what will work for you?

That isn't a schematic. That picture is useless. None of the components are marked. It has no resistor on the MOSFET input and apparently no diode and I have no idea what the thing with the spark is supposed to be...so no it isn't a good example.

Steve

  1. I have no clue in the world what dc motor it is its just the ones you get in RC toy cars: https://www.robotshop.com/media/catalog/product/cache/image/1350x/9df78eab33525d08d6e5fb8d27136e95/b/r/brushed-dc-motor-6v-11500rpm_1.jpg

2.I'll be using a 9v

  1. I don't have a MOSFET i only have transistors, honestly, i just need someone to give me a schematic i literally have no idea whats goin on, all im really good at is teh coding side

snakeviper123:
2.I'll be using a 9v

A 9V what?

9v rectangular battery

So I followed the advice I gave you in #4 and looked for a schematic with a motor and diode. I rapidly found this page - https://www.gammon.com.au/motors Good schematic plus excellent descriptions. You only need the first low-side MOSFET driver part.

Oh and in that same post I told you not to try to use a rectangular PP3-type 9V battery to run motors. Are you actually reading anything that any of us are trying to tell you?

Steve

slipstick:
So I followed the advice I gave you in #4 and looked for a schematic with a motor and diode. I rapidly found this page - https://www.gammon.com.au/motors Good schematic plus excellent descriptions. You only need the first low-side MOSFET driver part.

Oh and in that same post I told you not to try to use a rectangular PP3-type 9V battery to run motors. Are you actually reading anything that any of us are trying to tell you?

Steve

yes i am but these are the only batteries i ahev that will actually run the motor

"yes i am but these are the only batteries i ahev that will actually run the motor"

If you are just making something simple, I'd suggest you drop back and just use a continuous rotation servo for one or more of its drive wheels. Very simple to setup and control.

snakeviper123:
yes i am but these are the only batteries i ahev that will actually run the motor

Get some AA cells to run the motor...I'm sure that if you have internet access you should be able to get a couple of those.

snakeviper123:
yes i am but these are the only batteries i ahev that will actually run the motor

If you insist on only using what you already have whether it is suitable or not then you shouldn't be surprised if you don't have much success.

Steve

  1. i dont understand schematics, only the types of images in #8
  2. Theya re the only ones i have