RGB Line Follower. 1. Basic knowledge of RGB line follower

Similar documents
A Day in the Life CTE Enrichment Grades 3-5 mblock Programs Using the Sensors

e d u c a t i o n Detect Dark Line Objectives Connect Teacher s Notes

For more add-on packs and building instructions, please visit:

Veterinary Digital X-Ray System Quick Start Guide

A Day in the Life CTE Enrichment Grades 3-5 mblock Robotics - Simple Programs

XI. Rotary Attachment Setups

I.1 Smart Machines. Unit Overview:

Some prior experience with building programs in Scratch is assumed. You can find some introductory materials here:

Robotics using Lego Mindstorms EV3 (Intermediate)

Rodni What will yours be?

Micro Wizard Instructions

CMPS11 - Tilt Compensated Compass Module

CMPS09 - Tilt Compensated Compass Module

Detrum GAVIN-8C Transmitter

Let There Be Light. Opening Files. Deleting National Technology and Science Press

QL55 Series Luminescence Sensor

AI BOX 1. ASSEMBLY. A1 : Desk frame B1 : 2 holes for installing 2 M5x16 screws

The ideal K-12 science microscope solution. User Guide. for use with the Nova5000

Alumajust Installation Instructions

Alibre Design Tutorial: Loft, Extrude, & Revolve Cut Loft-Tube-1

SYNGUIDER USER'S MANUAL

Bellman BRUGERVEJLEDNING. Fyrtårn Flash BE1441

playing game next game

Studuino Icon Programming Environment Guide

Programming Design. ROBOTC Software

ZX Distance and Gesture Sensor Hookup Guide

HTC VIVE Installation Guide

1 Piece HC-SR501 High Sensitivity Human Infrared Sensor Module Pyroelectric PCB

CHC-400 Capacitive Torch Height Controller

Ocean Controls KT-5221 Modbus IO Module

Light Probe. ReallyEasyData. com

Contents I. APPLICATIONS II. SPECIFICATIONS III. PRINCIPLES IV OPERATION V. MAINTENANCE

Example KodeKLIX Circuits

Mic Mate Pro. User Manual

Micro Wizard Instructions K1 KIT ASSEMBLY INSTRUCTIONS With Remote Start Switch

Competitive VEX Robot Designer. Terminal Objective 1.4: program and operate the Tumbler

EE 1210 Op Amps, Gain, and Signal Integrity Laboratory Project 6

Rx62H Linear 5 Channel Brick

ScaleRCHelis.com Light Controller Users Manual

VEX IQ Troubleshooting Flowchart Controller & Controller Battery

Handbook for the Starlight Xpress AO unit Issue 1 21/8/2005 Handbook for the Starlight Xpress SXV-AO unit

Lego Nxt in Physical Etoys

SP-6 magnetometer. User manual. Installation and in-flight calibration

Fluke 192/196/199. MS 190 and MA 190. Users Manual Supplement

4.5.1 Mirroring Gain/Offset Registers GPIO CMV Snapshot Control... 14

Robots are similar to humans if you consider that both use inputs and outputs to sense and react to the world.

Gentec-EO USA. T-RAD-USB Users Manual. T-Rad-USB Operating Instructions /15/2010 Page 1 of 24

QUICK PROGRAMMING FOR THERMO SUNIS INDOOR WIREFREE SENSOR

RoboCup Sumo Workshop. Margaux Edwards July 2018

Group 04. Douglas Cooper Desmond Persaud Samael Reyna

Internet of Things Student STEM Project Jackson High School. Lesson 2: Arduino and LED

PP8X2 English 3 5/11/01 1:02 PM Page 1 PX4000. PX Head On. Turbo LED. Analog Mode LED. 4 Buttons. Turbo Button. Start Button.

Experiment P36: Resonance Modes and the Speed of Sound (Voltage Sensor, Power Amplifier)

Lab 1: Testing and Measurement on the r-one

Experiment P55: Light Intensity vs. Position (Light Sensor, Motion Sensor)

Lesson 3: Arduino. Goals

Fibo-Box V3 with optocoupler board

The Robot Program Episode 002: Building JD

isys-4004 GUI interface - V2.1 Power up Initialize Peripheral Start Measurement YES LED flashes red Object available LED blinking

Energate Foundation Meter Data Collector Installation Guide

How to Pair AbiBird Sensor with App and Account

LSD MEASUREMENTS USING A BOSCH LASER MEASURE AND THE CURL DISTANCE APP

Tevo Tarantula Auto Level Instructions. By ArcadEd. Mounting the Sensor:

Table 1. Placing the Sensor in the Sensor Cradle. Step Instruction Illustration

Content. Before You Start. Assemble the 3D Printer. Use the 3D Printer. Load Filament Level the Heated Bed Start Printing Support

WIRELESS 868 MHz TEMPERATURE STATION Instruction Manual

5 Lab 5: Position Control Systems - Week 2

Lab 2b: Dynamic Response of a Rotor with Shaft Imbalance

TRIMLIGHT SELF-INSTALL TRAINING MANUAL

Getting started with the SparkFun Inventor's Kit for Google's Science Journal App

Handbook. Antenna Rotator Controller

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. LEGO Bowling Workbook

smraza Getting Start Guide Contents Arduino IDE (Integrated Development Environment)... 1 Introduction... 1 Install the Arduino Software (IDE)...

Modern Robotics Inc. Sensor Documentation

Physics 4C Chabot College Scott Hildreth

LPR Camera Installation and Configuration Manual

Learning to Use a Light Probe

PC Eyebot. Tutorial PC-Eyebot Console Explained

Assembly Guide for Printrbot - Simple Maker s Edition 1405

Two Hour Robot. Lets build a Robot.

MegaPoints Controller

ABB i-bus EIB Light controller LR/S and light sensor LF/U 1.1

Eye-Gaze Tracking Using Inexpensive Video Cameras. Wajid Ahmed Greg Book Hardik Dave. University of Connecticut, May 2002

OVEN INDUSTRIES, INC. Model 5C7-362

PUMAVI Embossing machine Service Manual Note taking Writing Printing in Braille. If it s Braille...ask BRAILLETEC

SeeMeCNC Guides. Rostock Max v1/v2 HE280 Hotend Upgrade. This How-to Guide will walk you through the steps of upgrading to the HE280 Hotend.

Robot Programming Manual

Height Limited Switch

// Parts of a Multimeter

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

TMC603EVAL MANUAL Evaluation board for the TMC603 three phase motor driver with BLDC back EMF commutation hallfx

Designing in the context of an assembly

Resistance Apparatus EM-8812

Using the SparkFun PicoBoard and Scratch

isys-4001 isys-4002 isys-4003

SpeedTouch 190. Setup and User s Guide. SIP Gateway. Release R1.0

RECOGNITION OF EMERGENCY AND NON-EMERGENCY LIGHT USING MATROX AND VB6 MOHD NAZERI BIN MUHAMMAD

An Introduction to Programming using the NXT Robot:

Standard Operating Procedure of Atomic Force Microscope (Anasys afm+)

Tarocco Closed Loop Motor Controller

Transcription:

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

2. Properties of RGB line follower The RGB Line Follower contains 4 LED indicators for line following feedback and learning of new surroundings; Learning button: recognize and record the color of the background and lane; Supplement light: for now the RGB line follower supports three types of color: red, green and blue. By switching between these colors to find the best one, the line follower can learn the arena more easily. By pressing and hold the learning button, we can switch between these colors; Adaptability of sensitivity; Detection of the height: According to the material of the arena and lighting condition, we recommend to put the sensor at 5mm 15mm high. 3. Principle Analysis RGB Line Follower module has a total of four photosensitive receiving tubes, RGB1, RGB2, RGB3, and RGB4 from left to right, as shown in Figure 2. Figure 2: Order of Photosensitive Receiving Tubes When the photosensitive receiving tubes pass through different colors, they will convert different optical information into electrical signals and output specific values from analog ports through the amplifier. The underlying software then uses the analog values of these four photosensitive receiving tubes to create a default line following algorithm. Eventually, it will output the offset value of RGB Line Follower module deviating from the track position. Users can use this offset to control the rotation speed of the left and right motors so as to realize the line following. 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

cannot perform normal line following even though programming is completed. RGB Line Follower Learning Method is as follows: Adjusting the color of fill light: Long pressing the button to select the color of the fill light that is suitable for the current environment. Learning background color: Installing the RGB Line Follower module at the place to use it, so that all the 4 RGB lights directly face the background of the arena. Click the button, when the four indicators start to flash slowly, it indicates correct operation. After waiting for 2 to 3 seconds, the indicators stop flashing, it indicates the completion of background color learning. Learning track color: Installing the RGB Line Follower module at the place use it, so that all the 4 RGB lights directly face the track. Double-click the button, when the four indicators start to flash quickly, it indicates correct operation. After waiting for 2 to 3 seconds, the indicators stop flashing, it indicates the completion of track learning. Test Confirmation: Use the four probes to confirm that RGB Line Follower can correctly detect the color of background and track. When the background is detected, the LED corresponding to the probe turns on, and the corresponding LED turns off when the track is detected. Re-learning: Should any change in the arena, environment, RGB Line Follower installation location, etc., it is recommended to learn them again. The learning information will be saved in eeprom to prevent loss. 5. Programming tutorial 5.1 Installing RGB Line Follower plug-in When using mblock3 for the programming of RGB Line Follower, the RGB Line Follower plug-in must be installed. 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. Figure3: RGB Line Follower plug-in statement blocks

(1) The meanings of the coding blocks in mblock are as shown in Figure 4. statement blocks Description Parameter 3: Line following sensitivity Kp, the sensitivity is used to adjust the response speed in line following. The greater the value, the more sensitive turning. Value blocks: The value blocks are used to assess deviations of the sensor from the racetrack, with a range of -512~512. A value above 0 indicates the sensor leans forward the left side while a value below 0 indicates the sensor leans forward the right side. Parameter 3: The feedback status of the four receiving tubes on the 0 indicates that the current receiving tube is on the track, 1 indicates that the current receiving tube is on the background color. There are a total of 16 free combined states for the four receiving tubes. Obtain the learning status of RGB

Line Follower Sensor, 0-not learn, 1-learning background color, 2-learning track color 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 Right motor control value:right_motor_ctrl_value = car_speed - position_offset * Kp The mbot line following example program can be obtained, as shown in Figure 5. Figure 5: RGB Line Follower plug-in line following program