Go Down

Topic: ? Motor with PWM (slow to quick) and reverse voltage (Read 6268 times) previous topic - next topic

Hoi,
for my model train layout i want to build little building, and i want to start the motor from slow to quicker, then running apporx. 15 sek and then slows down untl stop.

After a wile i should rotate n the OTHER direction, also from slow to quick, running approx. 15 sec then slow down and stop.

After a while again....

Is this possibe with the Arduino UNO and what parts do i need additional  ?
I am very new with this nice device  :)

Doei
Trixi
Dum spiro, spero - if you find my posting helpful, please click my Karma :)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Do you know A.R.T, the FREE Android Root Tool ?

MarkT

Yes, it sounds possible, this is the sort of thing motor controllers are for.  But first can
you tell us what sort of motor is involved?  How big, how much power?
[ I won't respond to messages, use the forum please ]

Hoi Mark,
i am using this motor:
http://www.amazon.de/3-6V-kurzer-Welle-Drehmoment-Getriebemotor/dp/B008OAYP8Q/ref=sr_1_3?ie=UTF8&qid=1362561015&sr=8-3


Spannungsbereich: 3-6V DC
Leerlauf-Drehzahl: 40 ± 10% RPM
Umgebungstemperatur: -5 - 40 ° C
Drehrichtung: Pluspol an "+" Kontakt; Minuspol an "-" setzen
Leerlaufstrom: (. 0.036A Maximal) 0.018A


I can change the cables (and poles) so the motor rotates in the other direction.

But dont know, how i can make this with the Uno...

Doei
Trixx
Dum spiro, spero - if you find my posting helpful, please click my Karma :)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Do you know A.R.T, the FREE Android Root Tool ?

Dum spiro, spero - if you find my posting helpful, please click my Karma :)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Do you know A.R.T, the FREE Android Root Tool ?

jack wp

the specs show
Quote
Leerlauf-Drehzahl: 40 ± 10% RPM

Is that 40 RPM, less than one revolution per second? Is that fast enough for your train?
There are several motor controlers using H-bridge, so the arduino can control the direction and the speed of the motor.

Check
http://www.tigoe.net/pcomp/labs/lab-motors.shtml
Good luck, Jack

#5
Aug 12, 2013, 06:16 pm Last Edit: Aug 12, 2013, 06:18 pm by Trixi Reason: 1
Hoi jackwp ,

thx a lot for the link - this helped !
i just ordered some 754410-Chips (H-Bridge) to solve my prob.

And the motors are not built in in a loco but in 2 colliery winding towers which are operating asynchronously

Doei
Trixi
Dum spiro, spero - if you find my posting helpful, please click my Karma :)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Do you know A.R.T, the FREE Android Root Tool ?

jack wp

Good luck, Jack

dc42

Be aware that you will get about 2V voltage drop in that chip, so (for example) if you power it from about 5V then you will only get about 3V at the motor terminals.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Hoi,

i am glad that i bought motors that operate from 3-6 V  8)
Speed doesn't matter in that case - better to slow as to fast.

My railroad scale is 1:160, so the movement has to be very slowly.

Doei
Trixi
Dum spiro, spero - if you find my posting helpful, please click my Karma :)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Do you know A.R.T, the FREE Android Root Tool ?

#9
Aug 30, 2013, 04:52 pm Last Edit: Aug 30, 2013, 04:58 pm by Trixi Reason: 1
Hoi friends,
i now got the H-Bridge chips with the following parameters:
Quote
Product Information
dipmicro Code   DE1766
Click for more lot sizes
Lot Size   5 pcs
Manufacturer   TI
Manufacturer P/N   SN754410NE
Stock Type   New
Restockable?   Yes, we can get more. ASK
Shipping Weight   12g / 0.441oz

Technical Summary
More Info   datasheetclick here
RoHS   RoHS
Package   PDIP16
Packaging   tube
Op.Temperature   -40 ~ 85°C
Type   H-Bridge
Channels   4
Interface   TTL/CMOS
Supply Voltage   4.5 ~ 36V
Output Current   1A




Any suggestion how to connect the both motors to it ?
I already read some postings, but i'm not really sure - so i bought 5 pieces if the one or the other get's "flashed"  :smiley-red:

Is it better to use simple resistors or is it necessary to use some BC's ?

Zoom: http://www.pyroelectro.com/tutorials/sn754410_dual_motor_control/img/schematic.png


Doei
Trixi

Source: http://www.google.de/imgres?imgurl=http://www.pyroelectro.com/tutorials/sn754410_dual_motor_control/img/sn754410_motor_control.jpg&imgrefurl=http://www.pyroelectro.com/tutorials/sn754410_dual_motor_control/&h=749&w=1346&sz=119&tbnid=LjoRoEggDgR4vM:&tbnh=90&tbnw=162&zoom=1&usg=__fpFR11kRzUdvWH153n9sR7kfYwg=&docid=gQ9w94_Cv9vA4M&hl=de&sa=X&ei=Rv8IUtigCYOytAax74DwBg&ved=0CE4Q9QEwBA&dur=1865
Dum spiro, spero - if you find my posting helpful, please click my Karma :)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Do you know A.R.T, the FREE Android Root Tool ?

MAS3

That schematic shows you how to connect it.
Just have one output HIGH and the other LOW, the motor will run in one direction.
Reverse to LOW and HIGH and your motor will run in the other direction.
Wire up the Enable connections to some PWM pins, instead of +5V.
Now you can control speed too (that is what you asked for) by applying PWM.

So pins "1A" (2)and "2A" (6) control direction, and pin "1,2 En" (1) controls speed.

Of course the same goes for the other motor.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

janost

Just use a Mosfet or bipolar transistor with it's Gate connected to one of the Arduino PWM pins.
And a DTDP relay for the reversing to an digitalpin with a NPN Transistor.

Just 4 Components.
Very easy.

MAS3

Really very easy indeed.
But as Trixi isn't into electronics, maybe you should elaborate a bit on that ?
How will he be connecting these together ?

Also, i'm real curious about those just 4 components.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html


But as Trixi isn't into electronics, maybe you should elaborate a bit on that ?
How will he be connecting these together ?

Also, i'm real curious about those just 4 components.



Hoi MAS3,

ik ook  :smiley-eek-blue:

Also i have 2 motors which should run reverse each other...


Doei
Trixi
Dum spiro, spero - if you find my posting helpful, please click my Karma :)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Do you know A.R.T, the FREE Android Root Tool ?

jack wp

Is that 2 motors on one engine? one for left wheel and one for right? I didn't understand
Quote
2 motors which should run reverse each other..
. You really want both motors to run either forward, or reverse, right? If that is the case, you may be able to just connect the two motors in parallel, and wire them like one motor. I may not understand tho.
Good luck, Jack

Go Up