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
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?
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.
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.
Hoi friends,
i now got the H-Bridge chips with the following parameters:
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"
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.
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.
Is that 2 motors on one engine? one for left wheel and one for right? I didn't understand
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.
If you're doing that, and still want the motors to always run in opposing directions, you can as well connect one forward (+ to +) and the other one reverse (+ to -).
Oh, not on the engine, ok. On two towers for lifting.
Do you want them to be lifted the same, or (as I am now think) opposite of each other? Yes then wire them opposite of each other.
But, what happens when the tower(s) are at full position. the motor stalls?
Put your electronics controlling those wheels in the building next to it.
If anything would go wrong, the smoke comes out the chimney and you still earn points for your design. ]