pdf-icon

TRACE

SKU:A048

Description

TRACE unit is mainly consist of 4 sets of IR, 1x infrared emitting and 1x infrared receiver for each set. The infrared LEDs should be placed towards and close to the ground where having black tracing lines and white background (or vice versa) layouts.

The IR transmitter keep emitting, at the mean time infrared ray would be absorbed by different color of objects. Black can absorb more ray than other color, so the infrared receiver (infrared sensitive phototransistor) would receive less which makes the resistance value of the phototransistor would vary with different object color. Then we assign an AD convertor tp capture the data.

This Unit communicates with the M5Core via GROVE PORTA I2C (0x5A).

Product Features

  • operation range: The reflecting surface is less than 11mm from the photoelectric surface
  • Program Platform: Arduino, UIFlow (Blockly, Python)
  • Two Lego-compatible holes

Include

  • 1x TRACE Unit

Applications

  • Self-tracing robot

Specification

Resources Parameter
Net weight 32g
Gross weight 34g
Product Size 70*16*18mm
Package Size 200*100*10mm

EasyLoader

download EasyLoader

What is EasyLoader?
1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed. .
  1. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click "Burn" to start burning. (For M5StickC burning, please Set the baud rate to 750000 or 115200)

PinMap

M5Core(GROVE A) GPIO22 GPIO21 5V GND
TRACE Unit SCL SDA 5V GND

Schematic

Mega328 ISPDownload interface Pin foot definition

Example

Arduino

UIFlow

Feature Introduction

TRACE is a commonly used sensor for auto-car toy. It is used to determine whether there are black lines by receiving reflected light.

  • Get analog value Return analog value

  • Get digital value Return analog digital value

  • set limit should value Set limit value

Usage