Basic atom pro 28m, 2.0.0.14 studio
My test code to confirm the issue.
Code:
pause 500
main
hservo [p0\10000]
pause 1000
hservo [p0\-10000]
pause 1000
hservo [p0\0]
pause 1000
hpwm p10,10000,10000 ;full on
pause 500
hpwm p10,10000,5000 ;half
pause 500
hpwm p10,10000,0 ;full off
pause 500
hservo [p0\10000]
pause 1000
hservo [p0\-10000]
pause 1000
hservo [p0\0]
pause 1000
After the first servo movements, the LED I have attached to PWM using an LED driver composed of a 22k resistor and a 2n2222 transistor, the pwm driving the transistor on and off. After the first movements, the LED will come on and off, but that's it, the servos go limp, I can move them myself. The LED will still continue to cycle on and off afte I'm using this to make a variable LED which is working great, the HPWM works fantastic at driving the LED in this manner. EXCEPT after the hpwm command, any hservo commands, even if looped, cease to function.
I need to use this type of HPWM to drive a few LED's for a camera in a tunneling robot for work under houses. And the LED's I use are stong enough that at close range will wash out the video feed, but need to be turned up at further range.