<-

Making a

Semi-Autonomous

(Line–Following)

BOT

Line-Following Bot

🔨Building🔧

LINK

💻Coding📱

read SENSOR (LEFT & RIGHT)
initialize SENSOR LEFT and RIGHT control pins
if SENSOR RIGHT == white, and if SENSOR LEFT == black -->
move MOTOR LEFT forwards
if SENSOR RIGHT == black, and if SENSOR LEFT == white -->
move MOTOR RIGHT forwards
move MOTOR RIGHT forwards
move MOTOR LEFT forwards
initialize MOTOR LEFT and RIGHT control pins
if SENSOR RIGHT == white, and if SENSOR LEFT == white -->
FUNCTION : setup {
}
FUNCTION : loop {
}
✓ Copy Code
->