Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Brazil
Asked — Edited

Sharp IR Sensor

Como controlar um servomotor através do sensor de colisão de infravermelho da Sharp? e como Robô fazer curvas usando o sensor Ultrassônico?


Related Hardware EZ-Robot EZ-B v4
Related Control Sharp IR Collision
AI Support Bot
Related Content
Synthiam
Synthiam
#2  
Please see the "Ultrasonic Distance" behavior control: https://synthiam.com/Products/Controls/Ultrasonic-Distance/Ultrasonic-Distance-16090

In order to make the a robot avoid obstacles you'll need to write an EZ-Script that checks the value from the sensor while it is moving. A low value from the sensor represents an obstacle in front of the robot. Then you can write a script to turn the robot left or right. It works better if you place a servo under the sensor in order to "sweep" the sensor as the robot is moving, then you could tell if the obstacle if on the left or right or in front of the robot and turn the robot accordingly.