DC motor with Basic Stamp
i want to·control 2 DC motors in a robot with BS2SX (2 PWM signals). What's the best way to realize this application. i already used the PBASIC pwm function but this did'nt worked well in my system with 2 motors. Is there a possibility to use the on-chip timer for generating·2 continious PWM-signals?·
Comments
There are a few problems with your thinking here, based on the characteristics of the PBASIC Stamp. Here they are:
First, the PBASIC Stamps are single threaded devices, and as such, can only do one-thing-at-a-time. Thus, there is no way to generate two PWM (or other) signals simultaneously. This must be done with an offboad co-processor if this is necessary.
Second there is no access to any timers or clocks on the PBASIC Stamp. Again, this feature must be provided externally, if necessary, by an off board co-processor.
Most folks who want to control multiple motors use an off board motor controller, which is a much more efficient method than burdening the main processor (the PBASIC Stamp) with such responsibilities.
Parallax offers an excellent off board motor controller for DC PM motors, in the HB-25 contoller, also the PWM Pal (via an H-Bridge), and the MotorMind B and C controllers. All can be found here for more information:
http://www.parallax.com/html_pages/products/motorcontrol/motor_control.asp
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 10/9/2006 10:00:02 AM GMT