Here is a
very crude scheme...
Current
SW Limiter
/
PWM Output-> --o o--/\/\/\/\----+-------------+------>
Resistor | | R
or 15K POT | / e
| \ s Speed
___|____ / i Controller
Capacitor \ s
_________ / t
| \ o
| / r
| |
COM -------------------+-------------+------> COM
.
The idea is to charge the capacitor to a particular voltage.
Of course, the Loading Resistor (Voltage Dropper) and the Speed Controller are bleeding the charge almost as quickly as you build it.
The idea is to maintain a reasonably stable charge on the capacitor while the motor is running.
Having a reasonably stable charge on the capacitor depends upon your component values and the timing/duration of the PWM signal.
The PWM signal applies voltage as often, and for as long, as your PWM output is on.
The greater the number of pulses per second the greater the average voltage. The average voltage approaches applied voltage.
The applied voltage is determined by the current limiting resistor and the voltage dropping resistor. They represent a voltage-divider network. The capacitor will try to charge up to the voltage dropped across the voltage dropper resistor. However, bear in mind that the speed controller is ALSO in parallel with the voltage-dropper resistor. If you change the resistance of the speed controller then the parallel resistance changes and the voltage across the Voltage Dropper changes.
You'll have to play games with the values because I don't have the formulas in mind (maybe someone else has them at hand).
At the very least, place a Volt-Meter across the capacitor as you play games. Set the Speed Controller to Mid-Range. Set the Current Limiting POT to maximum resistance and then begin to increase the number of pulses.
If you reach the maximum number of pulses and the voltage across the capacitor is still too low, then begin to reduce the POT resistance.
BTW, the voltage of the capacitor should be greater than the voltage of the source.
Capacitor Farads... I don't know, start big (too much MGD at this point).
If your pulses are at maximum count, and/or duration, and the POT resistance is minimum then you need to DECREASE the capacitor farads.
In this case, the capacitor is like a HUGE accumulator that never reaches set point.
On the other hand, if the pulse count is low, and of short duration, and the POT is set to a relatively high resistance, then you need to INCREASE the farads.
There are better, more refined, ways to do this with simple components. I just can't go that way right now... damn... LOVE that MGD!