Lego Sensor — LineFollower
Line Follower Tribot v1.0— Episode #07
The Tribot uses the Color Sensor in Reflected Light Intensity mode to follow the edge of the line by adjusting the steering based on the light Sensor reading.
More videos? click here now!
How does it work?
Sensor reading tells you how much light is reflected from a small circular area under the sensor.
The basic program — between two extremes:
When the sensor is over the white background, it will give a high reading (72) because a large amount of light is reflected;
Whereas completely over the black line, the reading will be low (8) because a small amount of light is reflected.
Let’s read Color Sensor in different positions. How about 5 positions?
Here are my readings:
The Codes:
That’s it!
You can download all the codes in my google driver repository.
We are getting used to the lego and from now on we can impress our friends and family ;)
Download All files For This Episode
Related Posts:
01º Lego Episode — Our Startup’s Journey — Invaders and Invasions?
02º Lego Episode — Timmyton — Lego-Learning-By-Playing — L2BP Series
04º Lego Episode — Lego Motions — Tribot v 1.0 — Seeing Your Creation Move — Move Steering Block
05º Lego Episode — Lego Motions — Move Tribot Around — And Backward…Five Programs Files
06º Lego Episode — Lego Sensors — Touch N Color — Two out of five human senses — Touch N Sight
07º Lego Episode — Lego Sensor — LineFollower — Line Follower Tribot v1.0
08º Lego Episode — Maze Solving Robot v1 — Lego Solution Right-Wall-Follower-Robot
09° Lego Episode — Gettle_&_Sound_Bots — How gentle can a robot be? What is the audible range of the human ear? How deep can we dive?
10° Lego Episode — Data Logging — Data Collection and the EV3
11º Lego Episode — Binning the LineFollower Code — Binning: Arithmetic To Map Sensor Reading
8th — kidSerie J3 Follower Line Robot v1.0 — The Simplest Follower Line Robot
12º Lego Episode — A Proportional LineFollower Robot — Advanced Math To Improve Your Robot’s Steering
13º LEGO Theory — Theory of Multitasking — A very Useful Programming Technique
14º LEGO formula — Normalizing Data — Converting Data to Use The Same Range
15º Lego Episode — PID — The Ultimate Line Follower — Algorithm for your EV3 PID Line Follower Robot
16° Lego Meets Pixy Episode — How to Connect Your Inexpensive Camera Module to Lego
18° Lego Episode — GEARS & WORMS — Geartrains & Worm & Clutch Gears
23° Lego Episode — Differential Explained — How Differential Works?
24° Lego Episode — PitBot — A Star Is Born — Working at The First Structure in Our Sparring Robot
25° Lego Episode — PitBot Is Agressive? Well, No Worries! — Making PitBot bite!
26° Lego Episode — Dancing Good w/ PitBot — All The Secret for Replicate This Awesome Robot
27 ° LEGO Episode — Sumo Arena is Ready! — Here is the playing arena for Arduino x Lego
28 ° LEGO Episode — Pick Pitbot Up! — Our Robot Are Leaving Body & Paint Shop
28 ° LEGO — B — Episode — Pitbot Battery & Sensor Setup — Preparing The infrastructure for running Arduino code
29 ° LEGO Episode — Bridging All Sensors Together — Pitbot — Collecting All Codes for the Final Act of Giving Behaviors to Robot
Credits & References
Book: The Art of Lego Mindstorms EV3 Programming by Terry Griffin
EV3 Large and NXT Motors — The Differences Explained
Building Instructions & Program Descriptions
LEGO® 9V Technic Motors compared characteristics
Robotics for Children (& Parents (& Grandparents))
Introducing LEGO Digital Designer