Asked
Resolved Resolved by EzAng!

Using ADC Ports

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 (view all EZB hardware)
EZ-B Iotiny by EZ-Robot
Control IoTiny with Synthiam ARC: 100MHz Cortex‑M4 Wi‑Fi IoT/robot controller-camera, servos, ADC, I2C and digital I/O for easy internet automation
Wi-Fi / USB
Servos 8
Camera
Audio
UART
I2C
ADC
Digital

ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

Author Avatar
PRO
Belgium
#18  

i saw it but you cant controle a servo on a adc port itself. i wonder would a LED work? on a adc port?

Author Avatar
PRO
USA
#20  

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)

Author Avatar
PRO
Belgium
#21  

i wanted to use contineous rotation servo's.

Author Avatar
PRO
USA
#22  

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

Author Avatar
PRO
Belgium
#23  

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.