Table of Contents

set parameter F () T1 () T2 ()

Description

The block initializes the following line parameters for the Quarky robot – F. T1 and T2.

There are 3 important things we will use in a line following robot:

  1. F: The speed with which the robot will move forward when it has not detected a black line.
  2. T1 & T2: When the robot is following the line and if one of the sensors says the left one, detects the black line, then the robot is off track and has to turn left in order to get back on track. And we know how to turn the robot left. The left motor moves backward and the right move forward. But if both are moving at the same speed, then the robot’s motion will become jerky and inefficient. Hence we will have two speeds for turning T1 and T2, where
    1. T1 will be the speed with which the motor will move forward and
    2. T2 will be the speed with which the motor will move backward.

The user will have to set F, T1, and T2 during the programming and calibrate it for effective line following. 

Example

The example demonstrates how to make a simplified line following a robot with Quarky.

Script

Alert: You need to calibrate the IR sensor to get the best line detection by the robot. Also, you need to calibrate the speeds to make the F, T1 and T2 speeds for the robot to follow the line correctly.

Output

Read More
The example demonstrates how to make a delivery robot that follows the line and stops when it reaches checkpoint 1.

Script

Alert: You need to calibrate the IR sensor to get the best line detection by the robot. Also, you need to calibrate the speeds to make the robot follow the line correctly.

Output

 

Read More
All articles loaded
No more articles to load