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.
https://synthiam.com/Community/Tutorials/Using-ADC-Analog-to-Digital-Ports-Commands-and-Controls-16283/5
Using ADC (Analog to Digital) Ports, Commands and Controls. Step 5. Step 4. Controlling servos with sensors and ADC ports.
i saw it but you cant controle a servo on a adc port itself. i wonder would a LED work? on a adc port?
Sorry for all the links, I personally never used ADC yet, Read this link:
https://synthiam.com/Community/Questions/Adc-Value-To-Servo-Movement-9783
Seems like you need a script:
Rich:
ADC to servo movement
:loop $value=GetADC(ADC0) $position = $value/100 $position = Round($position,0) Servo(D1,$position) Sleep(250) Goto(loop)
Or
/ ADC to servo movement
:loop $value=GetADC(ADC0) $position = $value/100 $position = Round($position,0) $position = Map($value, 54, 129, 180, 1 ) #adjusted first two values to read min/max read ADC project, 2nd two for direction (reverse 1 and 180). Servo(D0,$position) Sleep(250) Goto(loop)
i wanted to use contineous rotation servo's.
from NallyCat - @Nomad 6R there is a tutorial on synthiam for that, have a look at " Using ADC (Analog to Digital) Ports, Commands and Controls." by Steve G.
Looks like the one I already gave you - check
EzAng
i have another question about adc ports.didn want to open another topic. is it possible to control a LED ,excample on/off ,with an adc port? i notest a led goes on from 3 volt.