Another possibility is to use two relays, controlled by two pins of the PIC. One for forward the other for reverse. See the simple attached drawing
Another possibility is to use two relays, controlled by two pins of the PIC. One for forward the other for reverse. See the simple attached drawing
Sayzer, Eggman,
Thank you both.
regards!
PS:
Skimask: that was the idea, using a pic to control the stuff but I can dedicate only one pin to control the motor so probably the idea of Sayzer is the one that might best fit my needs... Even if I will need to use relays anyway because the motor will be more than 5V.
are you even sure the motor will have enough time to even move before the time is up?
Dont forget that the relay will probably take around 25mS to operate and release so a solid state solution might be much better.
thee is also the life of the relay to consider. If you are changing direction every 150ms that is over 3.3 complete cycles of the relay every second. Even with a life of 1 million operations it will take less than 85 hours to reach that figure !!!!!
Keith
www.diyha.co.uk
www.kat5.tv
5ms is the time it takes to activate my relay.
The motor turns everytime a shot is fired by the lasergame player (it's used as recoil simulator), I beleive he will not shoot more that a few dozen 'bullets" per game session, so player will be old before the motor is dead.
It is also possible to make it using one dual contact relay.
Right here it is: http://www.picbasic.co.uk/forum/showthread.php?t=8567
However, our friend xnihilo needs to control the whole thingie with one pin.
-----------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks