LINE FOLLOWER

UTKRISHT PARMAR's picture
Nov, 01, 2017, 08:49 AM

WHAT IS THE WAY TO DO PROGRAMMING FOR MAKING A LINE FOLLOWER WITH IR SENSORS USING ROBO G3 OR ROBO G 3 BETA? 

Comments

Vishal Gupta's picture
Nov, 01, 2017, 01:52 PM

HINT: When IR Sensor detects Black it return value greater than 350 and when IR Sensor detects White it return value less than 350 Use this condition to detect weather sensor is on White area or black line. Hint program : Start of The Program while(Forever) { READ_SENSOR_PORT_1 as Infrared; READ_SENSOR_PORT_2 as infrared; if(S_1>350 && S_2>350) { Forward(); } if(S_1>350 && S_2<350) { Right(); } if(S_1350) { Left(); } if(S_1 { Stop(); } }

Tuck Fen's picture
Jul, 19, 2018, 12:08 AM

Hi...There are some important considerations when designing the robot. A lot of faster line following robots tend to extend their sensor out in front of the robot, like the one in your second video. This helps account for the delay time in the motors that you mentioned and gives your robot some insight to what is ahead, so it is easier to react to. However, it also puts more mass in front of the robot, which could cause problems, especially when turning at higher speeds. In my experience, it works out well if you can keep most of the weight situated close to the center point between your wheels.