motor controlled via pot/bs
Let's Go!
Posts: 124
can a dc motor be controlled by the pot command the same as a servo as illustrated in the manual? thanks
any thoughts on how to do it would be appreciated...
any thoughts on how to do it would be appreciated...
Comments
The nice thing about a servo is that it has on-board comparator electronics, which makes it very simple to control it with only a single output pin using "PULSOUT". Another nice thing is that they only cost $20 or so for a cheap one.
In general, DC motors require a "Pulse-Width Modulation" or "PWM" scheme to control speed. And you need to reverse the voltage on the motor to change direction. There's off the shelf stuff to do this, but it's more expensive than a servo.
·the hb25 motor controller offered by parallax. thanks, jim
The HB-25 (plus a DC motor) is made to be substituted for a continuous motion servo. Any program (like the one in the manual) intended to control a servo should work the same way with the HB-25. The HB-25 has some additional features, like it only requires a single control pulse to set its speed and direction where a servo requires that the control pulse be repeated every 20ms or so. The HB-25 also has a feature where you can connect two of them to a single I/O pin.