Relative Servos icon Relative Servos Synchronize servos by designating a master; slave servos mirror scaled (decimal/negative) positions with min/max limits and pause control Try it →
United Kingdom
Asked — Edited

Ultrasonic Analog To Digital Reading Using Ez-B Iotiny

I am using
Ultrasonic Sensor to interface with EzIoTiny with ADC is it possible to write the code in Pyhton language to get it functional ? EzIoTiny i need to use different sensors to interface with it

Your Suggestion would be very helpful


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.

#1  

What sensor are you using? You have an ultra sonic sensor that uses analog? How are you controlling it over analog?

#2  

EZ-Robot Ultrasonic sensors work entirely on the digital ports, therefore trying to connect one to an analog port would prove to be futile. If you're trying to free up digital ports, consider purchasing an analog distance sensor.

After that is sorted, I'm sure you could write code to interface with it. The communication protocol is available.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

Following the link, it seems the sensor he selected does use adc. This means the ezscript command getadc() will return the distance. Check the ezscript manual for usage examples. Otherwise, use Blockly because it is easier.

Author Avatar
United Kingdom
#4  

On which language Ez-Board works ? can i execute program in python language or not ?If yes Does it also supports the master slave protocol called I2C ?

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#5  

Yes, the Ez-B v4 supports i2c master as documented. Discover more about the EZ-B v4/2 Wi-Fi Robot Controller by clicking that link. Additional programming information can be found in the Software tab of this website. Have fun!