Asked

is there a possebility to use the ADC inputs for controlling a servo? i try the micro servo a,d a HDD from ez robot. that didn work.
Related Hardware EZ-B IoTiny
is there a possebility to use the ADC inputs for controlling a servo? i try the micro servo a,d a HDD from ez robot. that didn work.
This would work... Maps the adc's input between 0 and 255 to servo degrees 1 to 180. It'll work on d0 and ADC0.
hi dj
i wanna use two ez wheel servo's. looks like the script is for one servo?
oops i can duplicate for more servo's.got it
thank you
got error
Start
That’s JavaScript I posted. I’ll never ever post ezscript
this what i have .
while(0)(true)
while(1)(true)
{ // duplicate this line for other servos
Servo.setPosition(d0, Utility.map(ADC.get(ADC0), 0, 255, 1, 180));
Servo.setPosition(d1, Utility.map(ADC.get(ADC1), 0, 255, 1, 180));
sleep(100);
}
lol how did you get that from my example hehe. Here you go...
haha i was not far off.but it doesn move the ADC0 servo. it move head d0 and d1. i wanted to use ADC0 and ADC1 alone