Pololu QTR Reflectance Sensors Library Manual

Instructions for installing and using the Arduino library for Pololu QTR reflectance sensors, including sensor types and example sketches.


Pololu QTR Reflectance Sensors Library Manual - cover page
Brand
Pololu
Category
sensor
Document type
User Manual
Language
English
Pages
15
File format
PDF
File size
309 KB
Published
31 October, 2026
Updated
31 October, 2026
MD5 checksum
11A95FA3ED0E7E30918D9BB580FDC468

About this manual

This manual explains how to install and use the Arduino library for Pololu QTR reflectance sensors. It covers sensor types such as QTR-xA and QTR-xRC, library installation via the Arduino IDE or manual download, and example sketches for both sensor types. The library provides a common interface for both sensor types, with methods for reading sensor values, calibration, and line-tracking.

The manual also includes details on sensor schematics, pin configurations, and timing considerations for reading sensor values. It is designed for users working with Arduino-based projects involving line-following or edge detection applications using Pololu QTR sensors.

What's inside

  • Introduction
  • Library Installation
  • QTRSensors Methods & Usage Notes
  • Sensor Types
  • Example Sketches
  • Calibration and Line Tracking

Frequently asked questions

What are the differences between QTR-xA and QTR-xRC sensors?

QTR-xA sensors output an analog voltage between 0 and Vcc, measured by an ADC. QTR-xRC sensors require a digital I/O line to measure the time for the output voltage to decay, providing an analog measurement of reflectance.

How do I read sensor values using the library?

Use the read() method with an array to store the sensor values. The method takes a readMode argument to specify whether to read with emitters on, off, or both. For QTR-xRC sensors, the reading time can be up to 3 ms.

Download PDF (309 KB)

More Pololu Manuals


View all Pololu manuals →