Download Print this page
Makeblock RGB Line Follower Quick Start Manual

Makeblock RGB Line Follower Quick Start Manual

Advertisement

Quick Links

RGB Line Follower
1. Basic knowledge of RGB line follower
The RGB Line Follower module is designed for line patrol competitions. It contains 4 RGB fill
lights and 4 photosensitive receiving tubes. The module has a learning button and an LED indicator on
the front. The learning button is used to learn the background color and the track color of the arena. There
are 6 fixable screws through holes at the installation position and a RJ25 base is at the tail. The module
can be applied to dark background with light-colored tracks, or light-colored background with dark tracks.
The RGB Line Follower needs to learn the arena through the learning button, so that it can adapt to
external environments of different heights, light and other factors. The module port is marked with a
blue and white label, which indicates dual-digital and I2C port that needs to be connected to the port with
a blue-white mark on the main board, as shown in Figure 1.
Figure 1. RGB Line Follower

Advertisement

loading

Summary of Contents for Makeblock RGB Line Follower

  • Page 1 The RGB Line Follower needs to learn the arena through the learning button, so that it can adapt to external environments of different heights, light and other factors. The module port is marked with a blue and white label, which indicates dual-digital and I2C port that needs to be connected to the port with a blue-white mark on the main board, as shown in Figure 1.
  • Page 2 4. The learning process of RGB line follower The RGB Line Follower needs to use RGB2 and RGB3 to determine the direction. If it does not learn the return values of the tracks and the background colors on the line following map, mBot still...
  • Page 3: Programming Tutorial

    To install the plug-in, open the mBlock software → Extension → Extension Manager → Find RGB Line Follower → Download plug-in package. The RGB Line Follower plug-in is based on the coding blocks that can be used by default line following algorithm. Its coding blocks are as shown in Figure 3.
  • Page 4: Statement Blocks

    (1) The meanings of the coding blocks in mBlock are as shown in Figure 4. statement blocks Description Parameter 1: the port of the main board connected to the RGB Line Follower; Parameter 2: channel, any one can be chosen when using one RGB Line Follower.
  • Page 5 Parameter 2: channel, any one can be chosen when using one RGB Line Follower. Figure 4: Meanings of RGB Line Follower Plug-in Coding Blocks (2) Based on the default line following policy model  Left motor control value:left_motor_ctrl_value = car_speed + position_offset * Kp ...