Line Tracking Sensor (Analog)

../../../../_images/line_tracking_sensor_analog.png

Overview

By detecting the analog values of two pins, it can be used for line tracking detection and returns analog detection values. Threshold can be set.

Technical Specifications

Operating voltage: VCC 3.3V -5V

Module dimensions: 24*48mm

Mounting: 2 plastic building block compatible through-holes

Data type: Analog sampling value

Pin Definition

Pin

Definition

GND

Ground

VCC

Power

A0

A0 analog sampling value

A1

A1 analog sampling value

Example Code

Set two input pins to get line tracking detection values

from bluebit import lineFollow

LF = LineFollow(0, 1)
LF.set_threshold([2000, 2000])
while True:
    print(LF.get_raw_val())
../../../../_images/line_tracking_analog.png