ABSTRACT

If you try to set the duty cycle to 1, you’ll probably find that it won’t work from a dead stop. That’s because the small pulse won’t provide the motor with enough torque to overcome its initial inertia. However, if you start the motor at a higher speed and then slow it, it may work because the inertia is working for you instead of against you. This is the same reason you can operate a car on the high­ way in third or fourth gear, but you have to start out in first gear. Here’s a possi­ ble program:

2. If you are using a Stamp I, use the POT command. If you are using the Stamp II, you can use RCTIME (see the Stamp manual for the connections you’ll need). The exact values you’ll need to use depend on the exact components you select. The idea will be to scale the minimum and maximum count values to range between 0 and 255. Then you can use this to drive the PWM command.