I am car mechanic from finland!
Due to high amount of electronic systems in modern days cars, i have been learning the world of electronics and now it is also my hobby i have studied by myself from the internet and i understand basic stuff and maybe someone more knowing could help me a little with my project
currently i have began thinking about makeing my first concrete electronics project but i have many questions in my mind.
im going to convert small atv (49cc) in to electric atv becouse i think it would be safer for my young doughters first vehicle.
im going to use arduino nano for the controller and ofcourse im car mechanic so old starter motor and car battery for motor and power source
then for the stupid newbie questions :
what should i use for controlling the motor current? im going to use arduino boards PWM function to control current for motor and starter motors can draw lots of amps so what kind of device would be best choise for my controller? i have been thinking about mosfets and igbt:s but i dont know how i can find one that has best ratings for the job? i have searched aliexpress and found some n-channel mosfets (it would be easyer if i could find p-channel but n-channel works too ;D ) that have 194 amperages maxium ratings. problem is that starter motor takes huge amps when it starts to spin from 0 rpm (basicly its short circuit for short time).
i havent prototyped anything yet but i think that maybe near 200 amps might be enough if i simply add acceleration limiter in the software?
i have also thought that does it help if i use multiple transistors in parellel? does it even out the current or am i just dreaming?
Im also new to programming stuff... im not sure if its ok to ask in this section of the forum but here goes: i have learned how to make arduino read analog input (in this case electric throttle potentiometer) and convert it in to pwm signal. but i dont know is it possible and how to limit the acceleration of pwm? also i would like to make some kind of speed limiter function (my little angel is just 1,5 years), maybe a button or just reflash of arduinos software... im not that far yet with my project but any input is welcome
Firstly I wouldn't use concrete, its not a good conductor of electricity:
i have began thinking about makeing my first concrete electronics project
Seriously though I would recommend finding a good quality commercial motor
controller that uses a throttle potentiometer and is safety-approved - these are
made for wheelchairs and mobility scooters and you can rely on them not to
go haywire...
Mostly these are 24V controllers, so forget that 12V starter motor (they are no
good for traction as they are not rated for continuous duty and take 100's of
amps and are very inefficient).
If you do want a less pre-packaged approach you will be taking on responsibility
for safety yourself, be well aware of that - ensure there is a dead-mans switch and
the brakes are more powerful than the motor.
Also watch out for stall current. A 360W motor at 24V takes 15A nominal, all sounds
easy, but the stall current could be as high as 300A, so you have to design for that
and its not trivial...
Thanks for fast answer! concrete is first word came out of finnish-english dictionary ;D not sure what it should spell... i could just get small ready to go electic atv from the store but this project is all about DIY and learning and makeing use of all scrap parts lying around thanks anyway! and i better check all about that stall current!
EDIT: I have thought what you said, now im going to get some smaller voltage batteries or use somekind of resistor in series for limiting the speed incase something seezes or things go haywire thanks for the tips!
Your english is perfect. Mark was trying to make a joke.
The 0RPM inrush current is very easy to control with PWM. Just make sure your program slowly (like 0.5 seconds) ramps up from zero PWM to the commanded throttle setting. Stall current really isn't a problem so long as you are aware of it.
A starter motor is quite powerful. 1.5kW is common. Most countries have limits on electric bikes that are around 0.8kW. I've built one with an off-the-shelf controller that was quite fast with that amount of power. Something that was originally petrol-powered will be a bit heavier, so a starter might not be too powerful.
BJT transistors have the interesting property of negative thermal coefficient. If you put many of them in parallel, then the one that is the hottest will draw more current and heat up until it explodes. MOSFETS on the other hand have a stable thermal coefficient - you can put many of them in parallel. My 0.8kW controller uses 3 of them on each power wire.
If you try to drive a bank of high-power MOSFETs directly from the Arduino it is unlikely to work. You can get off-the-shelf MOSFET modules that have most of the drive circuitry done for you. They're intended for industrial motors. They aren't cheap.
For the speed limiter, use a keyswitch. Once the kids get older they will find your button but if you make it obvious that the key is in your pocket then they won't try too hard to break the toy. The Bugatti Veyron has a special key to unlock the speed limiter too.
A starter motor is not designed for wht you want to do. It is designed to produce a large number of kW for a very short time.
A screen-wiper motor would probably be a better starting point if you want to keep costs down.
You might be able to control the motor with the controllers used for model aircraft and helicopters. Some of those motors take large currents. The controllers appear to the Arduino as a servo so they are easy to program.
thank you everyone! very interesting and awesome information! i need to order some mosfets from china and start testing and trying out things! ill be back
Hello!!
sorry for not updating this for a while but i dont have too much spare time and i have tryed to learn by myself
heres what i have come up with: starter was disgarded, it had electric stator so it couldnt easily change direction of rotation then i found old winch motor that is with permanent magnets as stator so easy to change direction and it was light and not so rough with power as starter motor. so the planetary gear was cut off from it and i ordered sprocket for it and i still cant believe it but bores were straight mach so didnt have to weld anything
i have also advanced with my programming skills i designed the program for my circuit and i have made schematic diagram of the control circuit. i havent figured all details out yet but i want to post it here so that maybe someone could take a look at it and tell me if im doing this right
i dont know if those pulldown resistors are needed in all transistors, and i have made it so it regonises the voltage that is generated from the motor and programmed so that it cant change gear if going in opposite direction but i wonder if there are easyer or better ways doing that then what i came up with?
also i dont know if i put the capacitor in right place (its ac capacitor from broken grinding machine) and i have also from some reason drawed a resistor connected between motor poles but i dont know if its doing anything??
schema:
and sketch as attachement!
and thanks again to everyone for helping and sharing their thoughts! 8)
No that capacitor is not in the right place it's probably not hurting anything.
The resistor across the motor is wasting power. It's not necessary.
You are allowed more than one ground symbol in the diagram. Instead of drawing everything with lines going to one ground wire (a good idea for the actual circuit) you can just put ground symbols anywhere. That way you don't have a lot of lines crossing your circuit to get to the bottom of the page.
Look for schematics for a "H Bridge" since that is what you've created there. You have drawn it out funny so it's difficult to recognise.
thanks! i looked quickly H-bridge at google and saw how i can connect the flyback diodes (thats what i was trying to replace with capacitors and resistors). thanks for the tip with the ground points in automotive diagrams its usually drawn that way... it was also a pain in the butt to draw it that way
Have a go at redrawing that circuit with current flow vertically downwards (positive
voltage at top, ground at the bottom). Signal wires should go left to right (where
possible), transistors always the right way up (current flow top to bottom).
It'll will be much easier for us, and you'll hopefully see how these conventions
make circuit schematics more like a spatial language than a plate of angular
spaghetti!
In general if driving MOSFETs a MOSFET driver chip or chips is the way to go,
they do a lot of the work for you and (oddly enough) are designed for the task!
For an H-bridge the HIP4081 is a possible, for a half-H-bridge there are many
chips available, you'd need two for an H-bridge.
If you can find the OSMC stuff (open source motor controller project) there
will be a fair few H-bridge designs archive there I suspect.
Hello Mark!
thanks for reply but its giving me a hedeache
sorry i havent got time to make better diagram yet...
i have tryed searching info about mosfet and mosfet drivers but somewhere it says mosfet needs just a voltage signal to work (wich arduino could provide) and somewhere i read that mosfet takes much current to discharge and charge gate capacitor and thats why theres driver...
im way over my head.. im just a rookie with this stuff and in process of learning. i have tryed my arduino sketches with mosfet and small 12v dc motor to see if my motor acceleration limiter is working, it worked with mosfet connected to arduino through resistor (i dont remember if i even had a pull down resistor).
i believe you if you say that i need mosfet driver (obviously they wouldnt make such things if they werent needed for something ) but i just would like to know why i need it and whats its purpose?
is the problems going to appear at larger currents or why i could control small motor without seperate driver?
i looked diagram of HIP4081 at alldatasheet and i dont know if i understood diagram right but to me it looked like it could control full h bridge with just 1 HIP4081. could i get some enlightenment please?
Hello! hope you can read this diagram better
i didnt add mosfet drivers in diagram yet.. (im trying to keep it as simple as possible)
i watched video where guy did control same size motor that im having with basicly same setup i have drawn and he said that there are IC's to deal with the gate condenser delay (i think he ment mosfet drivers and im thinking now that maybe its only needed for precise control of the mosfet?).
the resistor that is drawn with dots and has question mark on it is something i may add there if i get false readings. and those circles that say ''to D2'' etc. mean what pin on arduino it is connected to
(otherwise it would have made spaghetti again )
Your feedback to A2 and A7(?) will not produce much useful data. The normal analogRead() is not synchronised to the PWM frequency so you might get a reading when PWM is high or you might get a reading when it is low. It will be totally random. Adding a capacitor next to the 3V zeners will smooth this out, but I still don't think you will get any real feedback, other than to confirm that the MOSFET and relay is working.
For a small test motor, MOSFET drivers are not needed. As you go over 100W, you will need them. Feel if the MOSFETS are getting warm. That will help you identify if they are working inefficiently. "Hot" is OK. "Too hot to touch for 1 second" is not OK.
OK so mosfet drivers it will be the feedbacks to A1(sorry i first drew them wrong way around) and A2 are used to see if the motor is producing electricity (when it goes to ''engine brakeing''), i had some resistors at my first diagram to take care of referencing motor to ground but im hoping that the flyback diodes take care of it (i havent tested this yet). i have programmed it so that it has to have no throttle at all (so its going to make electricity if its spinning) and that the motor isnt spinning in opposite direction (thats what A1 and A2 will be watching for) to be able to change gear. so you dont fly over bars or atv dosnt throw you off its back
@CrsCrs most of them are suppose to be npn transistors... sorry i drew this quick at work only kill switch has pnp transistor..
Hello! its me again I think i get it now!
i read some articles again and i learned that mosfet takes some time at switching on or off (charge and discharge gate capacitor), and during this switching it generates heat (due to switching losses) and the mosfet driver is to make it switch more quickly on and off so it wont heat up so much and create losses
thats enough to satisfy my hunger of knowledge
also i started looking what drivers to buy and i found this MC34152 witch looks very easy to implement in to my circuit could somebody take a look at it and tell me if its going to work at my project?
Hello! here is new plan after i noticed i could use n channel mosfets as high side switches also the software has some modifications (fail check for throttle pot)... now im waiting for components to arrive from china hope this will work!
Hi,
Your kill switch should be a switch that directly disconnects the power from the electronics and motor.
At the moment you are relying on the MOSFET and the electronics of the controller to stop the motor, assuming the fact that you will not have any H-Bridge failures.
Good to see you are learning as you go, and looks like it is a good project to build.
Also rather than have -12V and -19V, just call them GND.