Integrate BASIC Stamp with PWM
Hi there!
Currently I'm working on a wall following robot. I need to control the speed of the robot. As the robot is getting nearer to the wall, it will become slower. However, I'm having problem on how to integrate the Pulse Width Modulator into the BASIC Stamp. I already attached the circuit of the PWM. Could someone help me please? Thanks.
Currently I'm working on a wall following robot. I need to control the speed of the robot. As the robot is getting nearer to the wall, it will become slower. However, I'm having problem on how to integrate the Pulse Width Modulator into the BASIC Stamp. I already attached the circuit of the PWM. Could someone help me please? Thanks.
bmp

738K
Comments
An excellent explanation of the PWM circuit can be found here: http://www.dprg.org/tutorials/2005-11a/index.html
As you can see; it already incorporates an RC time constant.
If you are trying to use the Stamp as an additional control, you might look into applying a signal to pin 5 of the timer IC...