Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Robotics
  4. ›Line Sensor Arrays

Component guide · Intermediate · 4 min read

Line Sensor Arrays

Cytron LSA08 Auto-Calibrating, LSS05 and Maker Line Sensors, BFD-1000 5-Channel, Studica Cobra V3, Waveshare 5-Channel Tracker, 3, 4 and 8-Channel IR Arrays, ACEBOTT QB080, SparkFun RedBot, Grove Line Finder, HS-S01B and HS-S22A Grayscale Sensors

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards isMulti-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards pinoutWiring the Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boardsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

A line sensor array is a row of IR emitter and sensor pairs under a robot that sees a black line on a white floor (or the reverse). Single-channel boards only say on or off the line; 5 to 8 channels give the line's position, which lets a PID controller steer smoothly. Cytron LSA08 and Maker Line calibrate themselves and can output one analog position value, which makes fast line followers much easier.

Key specs at a glance

Channels
1, 3, 4, 5 or 8
Outputs
Digital per channel; analog per channel on Waveshare and Cobra; single analog or UART position on LSA08 and Maker Line
Height
About 3-15mm above the floor
Supply
3.3-5V; LSA08 7.5-20V
Calibration
Auto on Cytron boards, pots on others
Line width
15-30mm typical tracks

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 13-Channel Path Tracing IR Sensor Module – 5V DC, CTRT5000 Sensors₹197
  • Option 24-Channel IR Line Tracking Sensor Module – TTL Output, 1mm-60cm Range₹105
  • Option 38-Channel IR Sensor Array Line Follower Module – 3.3V-5V Digital I/O₹77
  • Option 4ACEBOTT QB080 3-Channel Tracking Module Easy-Plug for ESP32/Arduino₹369
  • Option 5BFD-1000 Five Channel Infrared Tracking Module Tracing Sensor₹184
  • Option 6Cytron LSA08 Advanced Auto-Calibrating Line Sensor₹5,761
01

What the Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards is

IR line sensor arrays with 3 to 8 channels, such as the TCRT5000 and QTR-8 boards, read a black line under a robot so it can follow it smoothly.

Mount the array 5-10mm above the floor, level, and in front of the drive wheels. Calibrate on the actual track: sweep the sensor over line and background so it learns both levels.

With 5 or more channels, compute a weighted position from -2 to +2 (or 0 to 1000), feed the error to a PID loop, and adjust motor speeds. Start with only P, raise it until the robot wobbles, then add D to damp the wobble. Ambient sunlight can swamp IR sensors, so shield them or test indoors.

02

Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards pinout

The pins on the Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards and what each one does.

PinFunction
VCC / GNDSupply
D1-D8Digital channel outputs
A1-A5Analog outputs on analog arrays
AN / OUTSingle position output on LSA08 and Maker Line
CALCalibrate button or pin
PinFunction
VCC / GND
Supply
D1-D8
Digital channel outputs
A1-A5
Analog outputs on analog arrays
AN / OUT
Single position output on LSA08 and Maker Line
CAL
Calibrate button or pin
03

Wiring the Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards

Keep sensor wires away from motor wires, and add a capacitor across each motor to cut noise.

Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards pinArduinoNote
5-channel D1-D5D2-D6Left to right
Maker Line ANA00-5V line position
VCC5VShared ground with the motor driver
5-channel D1-D5
Arduino:
D2-D6
Note:
Left to right
Maker Line AN
Arduino:
A0
Note:
0-5V line position
VCC
Arduino:
5V
Note:
Shared ground with the motor driver
04

Example code

Some boards output LOW on the line; flip the test if the error has the wrong sign.

Weighted line position and P control from a 5-channel array (Uno) · Arduino C++Verify & upload in Electrolark
const int pins[5] = {2, 3, 4, 5, 6};
const int weight[5] = {-2, -1, 0, 1, 2};
float Kp = 30;
int baseSpeed = 150;

void setup() {
  Serial.begin(9600);
  for (int i = 0; i < 5; i++) pinMode(pins[i], INPUT);
}

void loop() {
  int sum = 0, count = 0;
  for (int i = 0; i < 5; i++) {
    if (digitalRead(pins[i]) == HIGH) {  // HIGH = on black line on most boards
      sum += weight[i];
      count++;
    }
  }
  if (count == 0) return;               // line lost: keep last command
  float error = (float)sum / count;
  int left = baseSpeed + Kp * error;
  int right = baseSpeed - Kp * error;
  Serial.print(error); Serial.print("  L "); Serial.print(left);
  Serial.print("  R "); Serial.println(right);
  // send left/right to your motor driver here
}
05

Setup and tuning

Height

mount the array 3 to 10 mm above the floor, level across the robot.

Wiring

connect VCC, GND and each output to digital or analog pins; analog gives better line position.

Calibration

move the array over the line and the floor at start-up to record min and max values.

Position

compute a weighted average of the readings to get line position.

Control

use PID on the position to steer the motors.

06

What you need

Shop this list16 of 17 found in our store · ₹11,126

  • Generic 3-Channel Path Tracing IR Sensor Module – 5V DC, CTRT5000 Sensors: the part this guide covers3-Channel Path Tracing IR Sensor Module – 5V DC, CTRT5000 Sensors₹197
  • Generic 4-Channel IR Line Tracking Sensor Module – TTL Output, 1mm-60cm Range: another version this guide covers4-Channel IR Line Tracking Sensor Module – TTL Output, 1mm-60cm Range₹105
  • Generic 8-Channel IR Sensor Array Line Follower Module – 3.3V-5V Digital I/O: another version this guide covers8-Channel IR Sensor Array Line Follower Module – 3.3V-5V Digital I/O₹77
  • ACEBOTT QB080 3-Channel Tracking Module Easy-Plug for ESP32/Arduino: another version this guide coversACEBOTT QB080 3-Channel Tracking Module Easy-Plug for ESP32/Arduino₹369
  • Generic BFD-1000 Five Channel Infrared Tracking Module Tracing Sensor: another version this guide coversBFD-1000 Five Channel Infrared Tracking Module Tracing Sensor₹184
  • Cytron LSA08 Advanced Auto-Calibrating Line Sensor: another version this guide coversCytron LSA08 Advanced Auto-Calibrating Line Sensor₹5,761
  • Cytron Maker Line Sensor for Beginners: another version this guide coversCytron Maker Line Sensor for Beginners₹1,293
  • Cytron Technologies LSS05 Auto-Calibrating Line Sensor Module for Robotics – 5-Channel IR Array: another version this guide coversCytron Technologies LSS05 Auto-Calibrating Line Sensor Module for Robotics – 5-Channel IR Array₹1,039
  • Waveshare Tracker Sensor (Line Tracking) – 5-Channel IR Detector, Analog Output, 3.3-5V: another version this guide coversWaveshare Tracker Sensor (Line Tracking) – 5-Channel IR Detector, Analog Output, 3.3-5V₹409
  • Studica Robotics Cobra Line Follower Sensor V3 – 3.3V DC Infrared Line Detection Module: another version this guide coversStudica Robotics Cobra Line Follower Sensor V3 – 3.3V DC Infrared Line Detection Module₹689
  • SparkFun RedBot Sensor – Line Follower: another version this guide coversSparkFun RedBot Sensor – Line Follower₹379
  • Seeed Studio Studio Grove Line Finder v1.1 Line Tracking Sensor – TTL Digital Output: another version this guide coversSeeed Studio Grove Line Finder v1.1 Line Tracking Sensor – TTL Digital Output₹359
  • HS-S01B-W Infrared Line Tracking Sensor Module – Digital Output, 3.3V/5V: another version this guide coversHS-S01B-W Infrared Line Tracking Sensor Module – Digital Output, 3.3V/5V₹69
  • HS-S22A Grayscale Sensor Module – 3.3-5.5V Digital Output: another version this guide coversHS-S22A Grayscale Sensor Module – 3.3-5.5V Digital Output₹79
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
  • Solderless breadboard: to build without solderingSolderless Breadboard₹68
07

Alternatives and when to choose them

  • ✓Line follower robot: build a full robot.
  • ✓TCRT5000 line sensor: single-channel basics.
  • ✓IR reflective sensor modules: small single sensors.
08

Common mistakes to avoid

  • !Mounting the array too high.
  • !Skipping calibration.
  • !Testing under strong sunlight.
  • !Using only on/off steering instead of PID.
09

Frequently asked questions

How many sensors do I need for line following?

Three works for basic robots; five to eight gives smoother, faster tracking.

Should I use analog or digital outputs?

Analog gives finer line position for PID; digital is simpler.

Why does the robot lose the line?

The array is too high, ambient light is strong, or calibration was skipped.

How high should the sensor be?

About 3 to 10 mm above the surface, depending on the board.

Can I follow a white line on black?

Yes, invert the logic in your code.

Parts for this guide

  • 3-Channel Path Tracing IR Sensor Module – 5V DC, CTRT5000 Sensors
    ₹197View
  • 4-Channel IR Line Tracking Sensor Module – TTL Output, 1mm-60cm Range
    ₹105View
  • 8-Channel IR Sensor Array Line Follower Module – 3.3V-5V Digital I/O
    ₹77View
  • ACEBOTT QB080 3-Channel Tracking Module Easy-Plug for ESP32/Arduino
    ₹369View
  • BFD-1000 Five Channel Infrared Tracking Module Tracing Sensor
    ₹184View
  • Cytron LSA08 Advanced Auto-Calibrating Line Sensor
    ₹5,761View
  • Cytron Maker Line Sensor for Beginners
    ₹1,293View
  • Cytron Technologies LSS05 Auto-Calibrating Line Sensor Module for Robotics – 5-Channel IR Array
    ₹1,039View
  • Waveshare Tracker Sensor (Line Tracking) – 5-Channel IR Detector, Analog Output, 3.3-5V
    ₹409View
  • Studica Robotics Cobra Line Follower Sensor V3 – 3.3V DC Infrared Line Detection Module
    ₹689View
  • SparkFun RedBot Sensor – Line Follower
    ₹379View
  • Seeed Studio Grove Line Finder v1.1 Line Tracking Sensor – TTL Digital Output
    ₹359View
  • HS-S01B-W Infrared Line Tracking Sensor Module – Digital Output, 3.3V/5V
    ₹69View
  • HS-S22A Grayscale Sensor Module – 3.3-5.5V Digital Output
    ₹79View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
  • Solderless Breadboard
    ₹68View
Shop Infrared & Optical Detection Modules

Projects that use it

Put this into practice: 1 step-by-step build in our project library uses parts from this guide.

Beginner · 6 sessions of 90 minutesSix-week STEM club plan with ready kits, from science to IoTView project
Browse all 1 project

Keep learning

How-toIntermediateLine Follower RobotA line follower uses a row of infrared reflective sensors (TCRT5000 type) under the robot to see a black line on a white floor, and steers two DC motors to keep the line centred.3 min read · RoboticsComponent guideBeginnerTCRT5000 IR Line SensorThe TCRT5000 is a reflective infrared sensor: an IR LED and a phototransistor side by side.3 min read · SensorsComponent guideBeginnerIR Reflective SensorsEach of these has an IR LED and a phototransistor side by side.3 min read · Sensors

Sources

  • Cytron LSA08 and Maker Line user manuals
  • Waveshare Tracker Sensor wiki

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards isMulti-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boards pinoutWiring the Multi-channel IR line sensor arrays: Cytron LSA08 and LSS05, Maker Line, BFD-1000, Studica Cobra, Waveshare Tracker and 3, 4, 5 and 8-channel boardsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide8 items · ₹4,188

3-Channel Path Tracing IR Sensor Module – 5V DC, CTRT5000 Sensors · 4-Channel IR Line Tracking Sensor Module – TTL Output, 1mm-60cm Range · 8-Channel IR Sensor Array Line Follower Module – 3.3V-5V Digital I/O · Cytron Maker Line Sensor for Beginners · Cytron Technologies LSS05 Auto-Calibrating Line Sensor Module for Robotics – 5-Channel IR Array · Waveshare Tracker Sensor (Line Tracking) – 5-Channel IR Detector, Analog Output, 3.3-5V · Studica Robotics Cobra Line Follower Sensor V3 – 3.3V DC Infrared Line Detection Module · SparkFun RedBot Sensor – Line Follower

Run itChange the inputs and watch the output

Error is the average weight of the sensors over the line (-2 left to +2 right). With no line seen nothing changes.

Left fwd 59%
Right fwd 59%
Serial monitor9600 baud
0.00  L 150  R 150

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question