Need help: Circuit containing a capacitor

Thread Starter

JamesP

Joined Feb 18, 2015
15
Basically I need to make a vehicle move a set distance touch a wall and reverse the same distance and stop all on its own. Im looking to have a motor powering the front wheels and a motor powering the rear wheels. So I am thinking, a battery to power the motor to move forwards and as it is doing so it charges a capacitor, the capacitor will then power the rear motor to make it reverse. When it touches a wall I was thinking of having a switch which cuts the signal from the battery to the front motor and thus sending the charge in the capacitor to the motor to make it reverse. Can I make this work and if so how exactly??

Thanks in advance
 

wayneh

Joined Sep 9, 2010
17,498
Short answer, no. You won't capture more than a small fraction of what you need for the reverse trip, and it all comes out of the battery anyway. Why not just reverse the motor?
 

#12

Joined Nov 30, 2010
18,224
This isn't dead simple. You can't store the used up power in a capacitor and re-use it to run backwards. You have to use a current mirror to store some new energy (from the battery) in the accumulating capacitor and use that to go backwards or use that to control an amplifier that controls the amount of new energy that goes to the reverse motor. Or you can do it by measuring time, or distance...each method getting more complicated and more accurate.
 

Thread Starter

JamesP

Joined Feb 18, 2015
15
Thanks for the responses. How do I go about reversing the motor?? This is my first time doing something like this
 

#12

Joined Nov 30, 2010
18,224
You can use the microswitch on the front bumper to activate a latching relay which reverses the power from the battery, but how you gonna know when to stop?
 

Thread Starter

JamesP

Joined Feb 18, 2015
15
Yeah that is the problem, having it stop at the correct time. That was why I was wondering if it would have been possible to do it with a capacitor
 

wayneh

Joined Sep 9, 2010
17,498
Ah, I totally missed the bit about returning to the same spot. Are you looking for accuracy in this? I was just picturing a toy that reverses with no concern for precise return.
I'm thinking stepper motor.
 

Thread Starter

JamesP

Joined Feb 18, 2015
15
Yeah it has to be fairly accurate. It must come back the same distance and stop as close as possible to where it started
 

#12

Joined Nov 30, 2010
18,224
That will work if the tires don't slip. Count the steps to get to the reversing switch, reverse and do that many steps backwards. Sounds like a job for a microprocessor.

Way less parts and way more accurate than an analog approach.
 

Thread Starter

JamesP

Joined Feb 18, 2015
15
I do not think I would know where to begin with a microprocessor. Do you mean a stepper motor would work if the tyres don't slip? Would it vaguely know what distance to reverse and stop?
 

#12

Joined Nov 30, 2010
18,224
You have to use circuits to make the pulses that drive the stepper motor and count the steps. When the reversing switch actuates, the counter runs backwards while telling the pulser to send pulses to the stepper motor. When the counter gets to zero, it stops. But, yes, you can use only one motor. Steppers run backwards just fine.
 

Thread Starter

JamesP

Joined Feb 18, 2015
15
'You have to use circuits to make the pulses that drive the stepper motor and count the steps'

Hmm im not sure I know what you mean or what extra I would need
 

#12

Joined Nov 30, 2010
18,224
A microprocessor and an H-bridge.

This is not, "first project" quality. It will take you days just to learn how to program a microprocessor.
 

crutschow

Joined Mar 14, 2008
34,470
You could conceivably do it with an up-down counter such as a CD4029, CD4192, CD4516, or CD4520, and some logic.
The counter would count up the motor steps until it reverses.
The with the motor reversed, the counter is set to count back down until it reaches zero.
That should get you back fairly close to where you started.
 

#12

Joined Nov 30, 2010
18,224
Ah...good. A fresh perspective with a lot of experience.
Still not a first project recommendation, but only half the work of learning a microprocessor language AND how to design with IC's.
 
Top