
Purple
USA
Asked
— Edited
I hooked up two motors through a H bridge and everything seemed ok at first. I noticed that as I moved the slider up and down it had a shift in the speed on each motor. It appears that when the slider is at 45%, the ez-b output goes to 5 Volts. I thought maybe it's a problem with my motors or H bridge, so I put a meter on another digital port. It was the same thing, 5 volts at 45%. Any ideas? Thanks
Disconnect the motor controller and use the slider with a meter and check again - it should be about 2.3 volts.
Also, check if any other controls are using that port and setting it to ON.
Also, check if any other controls are using that port and setting it to ON.
As I understand what your saying; with the motor connected when you reach the 45 mark on the slider the motor will jump to 100% speed. Then when you slide it past 45 and continue up the motor wil drop down in speed to where it should be and then continue properly up to 100% as you push the slider up to the top?
Have you tried a different motor controller? What type are you useing?
I was using it on the 2.5A H-Bridge.
When I get chance I'll knock up a quick ADC/PWM test circuit & script. I did just try it by jumpering the Signal of D0 to the signal of ADC0 but I got strange results, I guess it needs a resistor (which I recall reading somewhere else anyway but haven't the time to do it properly right now) or can't be measured like this... Either way I will do some further testing.
Also , I should get this out there too, with the PWM Slider, when I go from a low setting of approximatly 15 to 30% and press the Stop button, the output goes to full on. As you can imagine, this is not desirable.
Until then, you can use a work around to skip 45%
Code:
Where $pwmvalue is the variable you use for the speed/PWM.