Difference between revisions of "Itty Bitty Buggy: Line Tracing Tutorial (mDesigner)"

From Microduino Wiki
Jump to: navigation, search
(Block: Color Trace (Go along color))
(Block: Color Trace (Go along color))
Line 13: Line 13:
 
:*'''Color''' - color of the line to trace (either '''red''', '''green''', '''blue''' or '''black''').
 
:*'''Color''' - color of the line to trace (either '''red''', '''green''', '''blue''' or '''black''').
 
{| class="wikitable" style="background-color:#FEF9E7;"
 
{| class="wikitable" style="background-color:#FEF9E7;"
|'''Note:''' This block assumes that the color line is against a white ground. (For example, a color line drawn on a white piece of paper.) Therefore, there may be issues when using it against a non-white background.
+
|'''Note:''' This block assumes that the color line is against a white background. (For example, a color line drawn on a white piece of paper.) Therefore, there may be issues when using it against a non-white background.
 
|}
 
|}
 
{| class="wikitable" style="background-color:#FEF9E7;"
 
{| class="wikitable" style="background-color:#FEF9E7;"

Revision as of 18:52, 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.

IBB mDesigner Car Block Go Along Color.png
  • Color - color of the line to trace (either red, green, blue or black).
Note: This block assumes that the color line is against a white background. (For example, a color line drawn on a white piece of paper.) Therefore, there may be issues when using it against a non-white background.
Note: The speed of tracing cannot be set.