KEIRO 107 - First Program, Object Avoidance
FULL TRANSCRIPT
[Music]
hero 1:07 first program object avoidance
hello and welcome to another karo
tutorial video in this tutorial we will
create our first program objective
create a program that avoids obstacles
to achieve this we need to I our senses
one left and one right and two motors to
move the vehicle each sensor will send
our signal notifying the robot that an
obstacle has been detected on the
corresponding direction the robot will
then decide to change direction in order
to avoid it set up robot configuration
let's start by assigning the two motors
and two senses on ports through the
simulator the same ports should be used
with your riddle robot alternatively you
can load a robot from env row which will
configure the port's accordingly to the
selected robot but make sure your riddle
robot uses the same ports select a robot
and a map that matches your program
needs create the program let's start
programming the program should work by
applying four rules
one while none of the senses detect any
obstacle the robot should keep moving
forward - while only the left sensor
detects an obstacle then the robot
should be turning right three while only
the right sensor detects an obstacle
then the robot should be turning left
[Music]
for while both of the senses detect an
obstacle then the robot should be
turning to any direction let's say left
for this example test in env ro we can
test our program to make sure the
program works as required given that you
have already selected and loaded your
robot all you have to do is click play
and observe the results you can enable
visual and text feedback in order to get
live information from the simulation
[Music]
send program to device now that we are
happy with the results we are ready to
send it to the real robot connect the
engineer controller with your computer
using a USB cable and click connect when
it is connected click send and wait
until it is finished after it is
finished press play and observe the
results if you keep your robot connected
to the computer while playing live
readings from each component will be
displayed in the lower screen of the
simulator hope you found this tutorial
useful let us know what you think in the
comments section below bye bye for now
[Music]
UNLOCK MORE
Sign up free to access premium features
INTERACTIVE VIEWER
Watch the video with synced subtitles, adjustable overlay, and full playback control.
AI SUMMARY
Get an instant AI-generated summary of the video content, key points, and takeaways.
TRANSLATE
Translate the transcript to 100+ languages with one click. Download in any format.
MIND MAP
Visualize the transcript as an interactive mind map. Understand structure at a glance.
CHAT WITH TRANSCRIPT
Ask questions about the video content. Get answers powered by AI directly from the transcript.
GET MORE FROM YOUR TRANSCRIPTS
Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.