Brushless Motor Movement Panel icon Brushless Motor Movement Panel — Control brushless motor controllers (hoverboard-style) via EZ-B: configure direction, speed and optional brake ports for DIY robot movement. Try it →
Asked
Resolved Resolved by EzAng!
2 Participants

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
EZ-B IoTiny works with Synthiam ARCx to control servos, camera, voice, scripts, and IoT from any browser.
Wi-Fi
Servos 8
Camera
Audio
UART None (transmit-only serial on digital ports)
I2C
ADC 2
Digital 8

ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

Author Avatar
PRO
Belgium
Thingiverse
#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
Thingiverse
#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
Thingiverse
#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.