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...
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.
(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 ...