Motor control

For the discussion of Arduino related topics.

Moderator: phalanx

Post Reply
Lapin1997
Posts: 2
Joined: Mon Nov 19, 2018 8:18 pm

Motor control

Post by Lapin1997 » Mon Nov 19, 2018 8:44 pm

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 :)

lyndon
Support Volunteer
Posts: 1627
Joined: Thu Jul 17, 2008 6:37 pm
Location: Minnesota, USA

Re: Motor control

Post by lyndon » 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

User avatar
DanV
Posts: 386
Joined: Sat Apr 25, 2015 9:29 am

Re: Motor control

Post by DanV » Tue Nov 20, 2018 6:46 am


Lapin1997
Posts: 2
Joined: Mon Nov 19, 2018 8:18 pm

Re: Motor control

Post by Lapin1997 » Tue Nov 20, 2018 12:53 pm

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?

darrellg
Posts: 338
Joined: Fri Oct 17, 2014 10:02 am
Location: Southern California

Re: Motor control

Post by darrellg » Tue Nov 20, 2018 4:25 pm

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.

teprojects1
Posts: 53
Joined: Sat Jan 21, 2017 1:28 am
Location: Lahore
Contact:

Re: Motor control

Post by teprojects1 » Thu Nov 22, 2018 4:45 pm

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.

jremington
Support Volunteer
Posts: 2300
Joined: Fri Jun 15, 2007 9:41 pm
Location: Eugene, Or

Re: Motor control

Post by jremington » Fri Nov 23, 2018 9:26 am

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.

Post Reply