Micro:bit Line follower robot

Micro:bit 27-11-24
2 0

Tutorial plan

1- What is line follower robot ?

2- Operation of Micro:bit Line follower robot

3- Robot components

4- Mounting of robot

5- Programming Micro:bit board with Makecode

 

What is Line follower robot ?

A Line Follower Robot is an autonomous robot designed to follow a pre-defined path, typically a line drawn on a surface. The line is usually black on a white surface or white on a black surface. The robot uses sensors to detect the line and adjusts its movement to stay on the path.

How It Works:

Sensors:

Infrared (IR) sensors or light-dependent resistors (LDRs) are commonly used to detect the contrast between the line and the surface.

Sensors are positioned at the base of the robot to continuously scan the surface.

When a sensor detects the line (high contrast), it signals the controller.

Controller:

A microcontroller (like Arduino, Raspberry Pi, or another embedded system) processes the sensor data and makes decisions.

It calculates how the robot needs to move to stay aligned with the line.

Motors and Actuators:

The robot uses DC motors or servo motors to drive its wheels.

Based on the controller's instructions, the motors adjust the robot's direction.

Algorithm:

A basic algorithm uses conditions like "if left sensor detects the line, turn left; if right sensor detects the line, turn right."

Advanced robots may use PID (Proportional-Integral-Derivative) control to achieve smoother and more accurate line-following.

 

Operation of Micro:bit Line follower robot

The Micro:bit Line Follower Robot is a two-wheeled robot designed to follow a predefined path, typically a black line on a white surface or vice versa. Using KY-032 infrared (IR) obstacle detection sensors and a Micro:bit Driver Expansion Board, the robot can detect the line's position and adjust its movements to stay on track.

How It Works

Line Detection:

The KY-032 sensors detect the intensity of reflected infrared light.

A black line reflects less IR light than a white surface, which the sensors can distinguish.

Micro:bit Processing:

The Micro:bit reads signals from the sensors.

Based on the sensor readings, the Micro:bit decides whether to move forward, turn left, or turn right to follow the line.

Motor Control:

The Micro:bit sends signals to the driver expansion board to control the motors' speed and direction.

 

Robot components

Micro:bit microcontroller:

Micro:bit board

The robot's brain for processing sensor data and controlling movement.

Driver Expansion Board:

A motor driver compatible with the Micro:bit, often including motor terminals and pin breakouts for sensors.

KY-032 IR Sensors (x2):

KY-032 infrared sensor module

Detect line contrast or obstacles by emitting and detecting infrared light.

Two wheel robot kit

DC Motors with Wheels: Provide movement to the robot.

Chassis: Holds all components together.

Power Source:

Battery pack to power the motors and Micro:bit.

Jumper Wires:

Jumper wires

For making temporary connections and wiring between components.

 

Mounting of robot

 

0 comment

Leave a comment

Veuillez noter s'il vous plaît*

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Purpose of this website

Educational robotics refers to the use of robots and robotics technology to promote learning in educational settings. It involves the integration of technology, engineering, and computer science into the classroom, allowing students to engage in hands-on, project-based learning experiences.
In this context, our website represents an excellent resource for parents, teachers and children who wish to discover robotics.

Contact details

Zaouiet Kontech-Jemmel-Monastir-Tunisia

+216 92 886 231

medaliprof@gmail.com

Pictures of the articles

Robotic site created by MedAli-Teacher info