|
I am using Bot Board II with Basic Atom (I also have a Basic Atom Pro). I hooked up a power supply to the Sabertooth S1 and S2 pins, separately. With 0.0 VDC, I get full speed motor rotation. With 2.5 VDC, The motor stops. With 5.0 VDC, I get full speed in the other direction. With smooth speed control in between. I presume this means the motor controller is working fine. My problem is that I cannot find a signal or a way to get 0 thru 5 volts to the control pins for S1 and S2. I've tried bit, byte and word using a loop to send all values. I've tried sending PWM as shown in the Atom manual. I've tried HPWM as per the manual. The motors start at fiull speed when I load a program. (I want them to be stopped). My efforts above gave me some combinations that turned the motors, but nothing that matched the smooth responsre I get from straigh 0 to 5 volts. What am I doing wrong? How do I send 0, 1.5, 2.5, 4.0, 5.0 volts, etc. to an output pin that will work the motors?
|