Skip to main content

Grove-IR Line Follower Sensor V3.0

Description

It is designed for use with line-follower robots. It has 2 IR LEDs and 2 IR sensitive phototransistors. The sensors on the board that look like eyes are actually IR LEDs and sensitive phototransistors. When the phototransistor detects infrared light reflected from the IR LEDs, it outputs a digital signal that changes from high to low.

Features

  • Fast response time
  • High analytic
  • Cut-off visible wavelength λp=940nm
  • Adjustment potentiometer and indicator LED
  • Dual detection

Specification

ParameterValue/Range
Supply Voltag3.3V to 5V
Interfacedigital
Current Consumption50mA
Operating Temperature Range-40°C to +85°C

Getting Started

indication diagram

Hardware

Step 1. Prepare the below stuffs:

  • Play with Arduino
Seeeduino V4.2Base ShieldGrove - Follower V3.0
Get One NowGet One NowGet One Now
  • Connect Grove with Arduino
  • Play with XIAO ESP32 Series
Seeed Studio Grove Base for XIAOXIAO ESP32-S3Grove - Follower V3.0
Get One NowGet One NowGet One Now
  • Connect Grove with XIAO ESP32S3

Two different combinations, but using the same code.

Software

  • Step 1. Copy the code into Arduino IDE and upload.
#define LEFT 3
#define RIGHT 2

void setup() {
Serial.begin(9600);
pinMode(LEFT, INPUT);
pinMode(RIGHT, INPUT);
}
void loop() {
int towar_left=digitalRead(LEFT);
int towar_right=digitalRead(RIGHT);
Serial.print("line follower : left ");
Serial.print(towar_left);
Serial.print(" right ");
Serial.println(towar_right);
}
  • Step 2. Open the serial port to view the printed content.

When we place the sensor in the black area, the serial port will print the following content.

Demo usage

When we approach the white area, the red light on the sensor board will light up, and when we approach the black area, the red light on the sensor board will turn off.

Resources

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...