SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By Lapin1997
#201066
Hi everyone,I will try to make this question as clear as possible with all necessary information. Please feel free to ask if you require any clarifications. :D

I am attempting to control a high voltage motor, the motor itself as well as all other components except for two buttons will be hidden from the user. (I did not select the motor yet but lets say its a 12V DC motor).

So, first off, I was thinking of using an h-bridge such as this one : 1) https://www.amazon.ca/Controller-H-Brid ... B00CAG6GX2

The H-bridge shown above can accommodate for a 12 V DC motor which is perfect. Also I can use the 5V output from the H-Bridge to power the Arduino! Win-win.

Okay this is the trickier part. This whole system needs to be placed in a unit that can be powered from a wall outlet. My problem is, a wall outlet is AC and I require DC, also the voltage is much greater that the 12V I require.

So, how would I go about giving the H-bridge a 12V input from a wall outlet?
I know a rectifier could convert from ac to dc and lower the voltage. Here is a unit I found that looks promising, I know the amperage output is too high but its just an idea : 2) https://www.xppower.com/Product/ECP150-Series

My major bump in the road is how to connect a 3 prong wall outlet to a unit like the one found at the link right above this line which I am guessing requires jumper cables or some similar type of connection. Here is a 3 prong wall plug-in in case someone is not sure what it is :

3) https://www.primecables.ca/en/p-314169- ... #sku314169

What do you suggest I should do for a system? Is a rectifier module like the one shown at link 2) a good idea? Is there an adapter that would allow to go from 3 prong to some type of connection for such rectifier modules?

Thank you in advance for your input it is great appreciated! I hope this was simple to understand :)
By Lapin1997
#201079
lyndon wrote: Tue Nov 20, 2018 6:01 am Find out how much current your motor needs and purchase a power supply!

Here are 2,500 examples: https://www.digikey.com/products/en/pow ... ageSize=25
Hi lyndon, the only problem is that the power supplies usually output via a usb, micro-usb or some other type of common connector. The problem is how to connect it to this H-Bridge : https://www.amazon.ca/Controller-H-Brid ... B00CAG6GX2

I need the H-Bridge to control the direction of the motor. To power it, it requires two lead cables (like jumper wires) to connect 12V and ground. Maybe there is some type of device in which I could connect the micro-usb and from there the output is in 2 leads.

Or perhaps even I could use an amplifier from the 5V output of the arduino board?
User avatar
By darrellg
#201082
If you don't want to use the connector the power supply comes with, cut it off. Then strip the ends of the wires and insert them in the screw terminals.
By teprojects1
#201119
Hi,

You should have a look at L298 Motor Driver. It's a dual motor driver and can control both direction as well as speed. You should also test it out in Proteus Simulation.

Thanks.
By jremington
#201128
You first pick a motor based on the power and torque requirements of the mechanical part of the project.

Then you pick a power supply and a motor driver that can handle the motor start/stall current.

The ancient, inefficient L298 motor driver is not recommended, and is suitable for only the smallest motors and lightest loads. Pololu has the best selection of modern, efficient motor drivers.