Difference between revisions of "Itty Bitty Buggy: Line Tracing Tutorial (mDesigner)"
From Microduino Wiki
(→Block: Color Trace (Go along color)) |
(→Example 1: Follow a black line) |
||
Line 63: | Line 63: | ||
'''Description:''' [[how to activate blocks|When activated]], the program will trace along a black line. Download and print this map to test it out. [[File:Line_Tracing_Example1_Map.pdf]] | '''Description:''' [[how to activate blocks|When activated]], the program will trace along a black line. Download and print this map to test it out. [[File:Line_Tracing_Example1_Map.pdf]] | ||
+ | {| class="wikitable" style="background-color:#FEF9E7;" | ||
+ | |'''Note:''' This example run the '''Trace Line''' block constantly inside a '''Forever''' block. Each time the '''Trace Line''' block, it adjust the Buggy Base to stay on the line. Therefore, it is important to be constantly calling the '''Trace Line''' block or else the it will go off the line. | ||
+ | |} |
Revision as of 20:45, 1 November 2018
Line Tracing
Buggy Base contains two Color Detectors and two ColorLEDs. These joined together can be used to detect when a line is detected based on its configured color. With this information, it is possible to steer the motors either left or right to stay on the line. The follow blocks will use the Color Detectors, ColorLEDs to stay along (trace) a line.
Block: Color Trace (Go along color)
Start of line tracing can be called with this block.
Function: This block controls the Buggy Base to follow (trace) along the chosen color line.
|
Example 1: Follow a black line
Note: this example is performed in offline mode . |
|
|
Description: When activated, the program will trace along a black line. Download and print this map to test it out. File:Line Tracing Example1 Map.pdf
Note: This example run the Trace Line block constantly inside a Forever block. Each time the Trace Line block, it adjust the Buggy Base to stay on the line. Therefore, it is important to be constantly calling the Trace Line block or else the it will go off the line. |