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
Parameter | Value/Range |
---|---|
Supply Voltag | 3.3V to 5V |
Interface | digital |
Current Consumption | 50mA |
Operating Temperature Range | -40°C to +85°C |
Getting Started
indication diagram
Hardware
Step 1. Prepare the below stuffs:
- Play with Arduino
Seeeduino V4.2 | Base Shield | Grove - Follower V3.0 |
---|---|---|
Get One Now | Get One Now | Get One Now |
- Connect Grove with Arduino
- Play with XIAO ESP32 Series
Seeed Studio Grove Base for XIAO | XIAO ESP32-S3 | Grove - Follower V3.0 |
---|---|---|
Get One Now | Get One Now | Get 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
- [SCH] Grove IR Line Follower Sensor Reference Information
- [Datasheet] ITR9909_Datasheet.PDF
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.