Grove Line Finder
Last updated
Last updated
Grove-Line finder is designed for line-following robot. It has an IR emitting LED and an IR sensitive phototransistor. It can output digital signal to a microcontroller so that the robot can reliably follow a black line on white background, or vice versa.
Power supply :5V DC
Digital output mode: TTL (High when black is detected, Low when white is detected)
Connector: 4 pin Buckled Grove interface
Dimension: 20mm*20mm
ROHS: YES
Comparator: MV358
Photo reflective diode: RS-06WD
!!!Tip More details about Grove modules please refer to Grove System
With Arduino
Brick will return HIGH when black line is detected, and LOW when white line is detected. Using the adjustable resistor the detection range can be changed from 1.5cm to 5cm. If the sensor can’t tell between black and white surfaces, you can also use the adjustable resistor to set a suitable reference voltage.
Includes important code snippet. Demo code like :
With Raspberry Pi
You need a raspberry pi and a grovepi or grovepi+.
You need to complete configuring the development enviroment, otherwise follow here.
Connection
Plug the sensor to grovepi socket D7 by using a grove cable.
Navigate to the demos' directory:
To see the code
5.Run the demo.