Author Topic: How do I reverse the motor in my circuit?  (Read 8084 times)

0 Members and 1 Guest are viewing this topic.

Offline soheliadeepTopic starter

  • Newbie
  • Posts: 1
How do I reverse the motor in my circuit?
« on: August 27, 2014, 11:11:25 am »
I am building a humane rodent trap, and require assistance. The trap works using an LED (not shown) and LDR (photoresistor). When the rodent walks over the LED, The LDR increases in resistance and more current flows into the transistor. Then a buzzer, An LED and two motors turn on to alert the consumer. The motor cuts off entries and exits for the rodents. They stop spinning when the door activates a microswitch. The voltage out of the transistor is 3.6V



However, I do not how I would wire it up. I know how to use a DPDT to reverse a motor, but I just made a mess when I tried.



I need the motors to go in reverse using the 4.5V wire when the circuit receives an input.

Switch off: Motors forward If dark using 3.6V supply
Switch on: Motors backwards regardless of light using 4.5V

Motor Circuit:



And How would I factor this modification into my circuit?
« Last Edit: August 27, 2014, 11:26:44 am by soheliadeep »
 

Offline paul18fr

  • Contributor
  • Posts: 42
  • Country: fr
  • Hobbyist & beginner
Re: How do I reverse the motor in my circuit?
« Reply #1 on: August 27, 2014, 11:19:44 am »
I think I saw something on that in
 

Offline CoilKid

  • Contributor
  • Posts: 26
Re: How do I reverse the motor in my circuit?
« Reply #2 on: August 27, 2014, 09:10:15 pm »
Hello again, saw you on EE.SE. I believe you can just reverse the voltage, and the motors should reverse. I'm not sure how to do that in practice, with your circuit, but a switching system close the the battery would probably be a good bet.

Good luck with the trap!
 

Offline Bukurat

  • Regular Contributor
  • *
  • Posts: 65
  • Country: au
Re: How do I reverse the motor in my circuit?
« Reply #3 on: August 28, 2014, 07:10:19 am »
Firstly I'm a little confused by your circuit so I've added a question to it. If the two switches I marked in my image are in fact the door micro-switches, there are better ways of stopping a motor than putting a short circuit across it.


To reverse the direction of the motors you need  an H Bridge.  Here is one I found laying around on the intertubes.


If you drive input A high and input B low the top left and bottom right transistors turn on allowing conventional current to flow through the path Q1, motor, Q3.  Reverse the input and the path becomes Q2, motor, Q4



« Last Edit: August 28, 2014, 07:22:58 am by Bukurat »
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: How do I reverse the motor in my circuit?
« Reply #4 on: August 28, 2014, 07:31:07 am »

Firstly I'm a little confused by your circuit so I've added a question to it. If the two switches I marked in my image are in fact the door micro-switches, there are better ways of stopping a motor than putting a short circuit across it.


To reverse the direction of the motors you need  an H Bridge.  Here is one I found laying around on the intertubes.


If you drive input A high and input B low the top left and bottom right transistors turn on allowing conventional current to flow through the path Q1, motor, Q3.  Reverse the input and the path becomes Q2, motor, Q4

"need"?  Really?  You are going to tell someone asking for help he needs an H bridge as if it is the only option? 


Sent from my iPad using Tapatalk
 

Offline Bukurat

  • Regular Contributor
  • *
  • Posts: 65
  • Country: au
Re: How do I reverse the motor in my circuit?
« Reply #5 on: August 28, 2014, 07:39:26 am »


"need"?  Really?  You are going to tell someone asking for help he needs an H bridge as if it is the only option? 



I'm waiting to see your contribution.
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: How do I reverse the motor in my circuit?
« Reply #6 on: August 28, 2014, 07:46:48 am »



"need"?  Really?  You are going to tell someone asking for help he needs an H bridge as if it is the only option? 



I'm waiting to see your contribution.
No need to contribute apparently the method "needed" is an H bridge. :).
If it has to be that way what contribution can be made.  :)



Sent from my iPad using Tapatalk
 

Offline paul18fr

  • Contributor
  • Posts: 42
  • Country: fr
  • Hobbyist & beginner
Re: How do I reverse the motor in my circuit?
« Reply #7 on: August 28, 2014, 07:54:10 am »
the method "needed" is an H bridge. :).

see my previous post linking to the (good) tutorial of Afrotechmods ....
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: How do I reverse the motor in my circuit?
« Reply #8 on: August 28, 2014, 08:19:15 am »
See no H bridge.  Used a relay because the op said they knew how to use a relay.  Kept their sensor method cause they came up with it. 


Sent from my iPad using Tapatalk
 

Offline Bukurat

  • Regular Contributor
  • *
  • Posts: 65
  • Country: au
Re: How do I reverse the motor in my circuit?
« Reply #9 on: August 28, 2014, 12:32:15 pm »
I don't see any good reason to divert the OP's post to argue semantics with you but I see you have used an old school H bridge to reverse the direction of the two motors. We used relays in a similar configuration for DC motors back in the 1960's. Of course we had interlocks to ensure the motors were powered down before the relays energised. It doesn't matter if the switches are mechanical or electronic, the configuration remains the same.


Rather than spoon feed the OP with a complete circuit I would rather point him/ her  in the appropriate direction. I believe it's better to teach a person to fish.
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: How do I reverse the motor in my circuit?
« Reply #10 on: August 28, 2014, 02:17:45 pm »
I agree that an H-bridge is probably too much in this application, however - the limit switches in series with the motors makes reversing a moot point, as they will be open-circuit when they hit the first limit.

Interesting to see which direction this thread goes!
A small micro, or some simple diode-relay logic.
Don't ask a question if you aren't willing to listen to the answer.
 

Offline jlmoon

  • Supporter
  • ****
  • Posts: 609
  • Country: us
  • If you fail the first time, keep trying!
Re: How do I reverse the motor in my circuit?
« Reply #11 on: August 28, 2014, 03:35:18 pm »
My contribution: 
I see no problem at all using a widely accepted industry standard in directional control.. The awesome H-Bridge.. either using low Rds on HexFets or bipolar if you want to play cheap.  From the initial post, I suspect the Op may not know as much as some folks on the board, I see the suggestions as a good starting path to learning something good!
From what I can see the currents are so low with this circuit.. you could use almost any set of junk box NPN TO-92 devices and bit of decision logic and pull this one off.


« Last Edit: August 28, 2014, 03:40:05 pm by jlmoon »
Recharged Volt-Nut
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: How do I reverse the motor in my circuit?
« Reply #12 on: August 28, 2014, 04:23:17 pm »

I agree that an H-bridge is probably too much in this application, however - the limit switches in series with the motors makes reversing a moot point, as they will be open-circuit when they hit the first limit.

Interesting to see which direction this thread goes!
A small micro, or some simple diode-relay logic.
I agree.  I see now that I forgot the reversing diodes.  Oops. 
After all don't want to spoon feed.  :)

It was only to show one of the options.  It is up to the author what road to decide which road to take.  Nor am I going to explain the many design options. 


Sent from my iPad using Tapatalk
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: How do I reverse the motor in my circuit?
« Reply #13 on: August 28, 2014, 04:27:48 pm »

My contribution: 
I see no problem at all using a widely accepted industry standard in directional control.. The awesome H-Bridge.. either using low Rds on HexFets or bipolar if you want to play cheap.  From the initial post, I suspect the Op may not know as much as some folks on the board, I see the suggestions as a good starting path to learning something good!
From what I can see the currents are so low with this circuit.. you could use almost any set of junk box NPN TO-92 devices and bit of decision logic and pull this one off.
Of course there is no problem with using a full H-bridge. Or even a partial bridge.  This tangent was because of the post that implied it was the only option. 


Sent from my iPad using Tapatalk
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: How do I reverse the motor in my circuit?
« Reply #14 on: August 28, 2014, 04:32:53 pm »


I agree that an H-bridge is probably too much in this application, however - the limit switches in series with the motors makes reversing a moot point, as they will be open-circuit when they hit the first limit.

Interesting to see which direction this thread goes!
A small micro, or some simple diode-relay logic.
I agree.  I see now that I forgot the reversing diodes.  Oops. 
After all don't want to spoon feed.  :)

It was only to show one of the options.  It is up to the author what road to decide which road to take.  Nor am I going to explain the many design options. 


Sent from my iPad using Tapatalk

Oh I see your point.  Well I was prompted for a contribution at 4AM.  A bit more sleepy than I though.  :)
Would need independent reverse control or open limit switches.  Depending on what the author wants.  If the author want to use a relay at all.   


Sent from my iPad using Tapatalk
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf