In this tutorial you will learn how to use the Line Follower in your build and different Robo Apps and then create your first project with this sensor.
There are different ways to attach the Line Follower to your build accordingly to its function.
If you want your robot to follow a line or detect an edge, build a robot with the Line Follower facing the surface:
If you want your robot to detect the object in the front, build a robot with the Line Follower facing forward:
In the Robo Live App the Line Follower Control shows the state of each of the 3 sensors (emitters & receivers). You can use it in your Robo Live projects for detecting the edges or objects.
In the Robo Code App there is Line Follower Action and Line Follower Trigger that can be used in your code.
The Line Follower Action is in the Move Action Category and will make your Robo follow the line driving both Smart Motors automatically:
Program the Line Follower Trigger to regulate a Transition between two Actions. The Trigger will react to a line or an object in front of the Line Follower. Tap on the Line Follower Trigger to change the settings.
In the Robo Blockly App there are two different types of Code Blocks related to the Line Follower: Line Follower Code Block and Line Follower Input.
Line Follower Code Block will make your Robo follow the line driving both Smart Motors automatically. You can adjust different settings such as Motors’ speed or positions of the Motors.
Line Follower Input can be placed in different Flow, Operators, Function or Variables Code Blocks and will give an input from the Line Follower emitters & receivers. You can set the input status: obstacle detected or no obstacle detected.
Let’s teach our Robo some geometrical figures. Do you know them all yourself?!
Build your Robo this way, so it can follow a line.
Prepare a big white paper and a black marker.
Draw your favourite geometric shape on the paper using the black marker: the line should be 7-15 mm width; we will draw a triangle.
Open the Robo Code App and code the Line Follower Action; check the position of the Motors and change the speed to 70, so our Robo can learn the geometric shape slowly.
Press the Start Button to try out your code and watch how Robo follows the line and learns your favourite geometric shape.
Now your Robo can follow your favourite geometric shape! Which one will be the next? Learn about different geometric shapes: Square, Oval, Rhombus or Hexagon!