<i>"I really dig beaniebots "use and switches hooked up to regular servo" solution... </i>
I thought that was incredibly clever, too, and said "Wow!" when I read it.
I've been Googling for specs on windshield wiper motors. Near as I can tell, you can plan on about a 2.5 amp draw from 12 volts no load, with stall current in the vicinity of 45 amps. But that range seems to vary widely with the type.
(And many motors have internal cam switches that are used to park the output shaft in a known position, so you might have to do some surgery on your motors to disable or bypass the parking feature.)
I'd suggest you hook up one of your motors to a power supply and (depending on your test equipment), maybe a small-value series resistor to measure the no-load current either directly or by measuring the voltage drop across that small series resistor.
It would be very convenient if you could use an L298 H-bridge chip as your drive circuit. They're readily available and relatively inexpensive. Unfortunately, the maximum current rating of an L298 is 4 amps, if you parallel the two drive sections.
4 amps, although on the hairy edge, might be OK, if you don't ever put a large mechanical load on the motor. A better solution would be to run the motor at something less than 12 volts. For instance, if that motor delivers enough torque when supplied with 6 volts, the loaded current draw might be within the capability of an L298, (say, 3 amps if you heat sink the chip well) and your motor drive circuit might consist of an L298, four diodes, and a couple of capacitors. (If you need to build a discrete motor drive circuit, the project probably isn't worth it, and a search for an off-the-shelf solution is probably in order.)
Other than the motor drive electronics, assuming you use a lookup table or simple calculation of the PWM level vs error, an 08M should do the job.
You have three pins available to drive the L298, one to read the pot's voltage, and one to read the servo signal.
I'm thinking, with three output pins available, you can eliminate an external gate by doing something ridiculous, like feeding the L298's two control leads with two 08M outputs. Those outputs set the motor's direction. The PWM output might feed the chip's enable input, functioning as both motor speed and L298 enable/disable.
An alternative would be the 50%-PWM-neutral I proprosed earlier, fed to the L298 through inverting logic, one 08M pin used to enable/disable the L298, and the remaining 08M pin used as an ADC to monitor the motor's current as voltage drop across a sense resistor.
The two remaining 08M pins are used for the servo signal input and the servo pot position input.
All told, I think it's doable, but I do have reservations about the L298 driving a windshield wiper motor.
If you can sort that out, the hardest part of the project might be mounting the pot on the wiper motor and coupling it to the output shaft. To simplify that task, you might think about mounting the pot "downstream," on the mechanism that's driven by the servo, instead of on the motor itself.
Thanks for the idea. I've had a lot of fun thinking about this. I even looked in my parts boxes. I found a couple of L293 chips I might use to test the idea, and a stock of 08Ms, but the few motors I have on hand are all steppers. So I'm unable to breadboard and test the idea.
Have fun with your project, and please let us know how you're progressing.
Tom
Edited by - Tom2000 on 30/07/2007 14:54:16