SKU: SENS-2952
📋 GST Invoice Available

DFRobot Gravity Smart Grayscale Sensor - Dual Analog & Digital Output Module

₹629.00 (Inclusive of all taxes)
Out of Stock

The DFRobot Gravity Smart Grayscale Sensor is a versatile optical sensor module offering both analog and digital outputs for precise grayscale and dual-color detection. It is designed for easy integration with Arduino, Raspberry Pi, and other microcontrollers via the standard Gravity 3-pin interface.

Features

  • Dual-mode operation: Analog output (0-5V) for grayscale intensity and Digital output (TTL) for threshold-based detection.
  • User-configurable digital mode allows setting two specific color thresholds via onboard button.
  • Compact PCB design (37mm x 15mm) with Gravity interface for plug-and-play connectivity.
  • Wide 5V DC operating voltage range compatible with most development boards.
  • Stable performance in various ambient lighting conditions for robotics and automation.

Out of stock

Description

The DFRobot Gravity Smart Grayscale Sensor redefines line-following and color detection by integrating both analog and digital signal outputs into a single, user-configurable module. Its core sensing principle relies on a phototransistor and integrated signal conditioning circuit to measure reflected light intensity, translating it into a precise analog voltage or a digital trigger.

In digital mode, the sensor allows for the calibration of two distinct color or grayscale thresholds via a simple button press, enabling reliable detection of light/dark boundaries or specific colors without requiring continuous code adjustment. The analog mode provides a continuous voltage output proportional to the detected grayscale level, suitable for nuanced light sensing applications. The module is built for stability across varying environmental conditions.

Key Features

  • Integrated dual-output system: 0-5V analog and TTL-level digital signals.
  • Onboard button for easy calibration and setting of two detection thresholds in digital mode.
  • Gravity 3-pin interface ensures quick, foolproof connection to DFRobot and compatible shields.
  • Compact and robust PCB construction suitable for embedded robotics and automation projects.
  • Optimized performance-to-cost ratio for educational and professional grayscale sensing applications.
  • Low power consumption, operating from a standard 5V DC supply.

Applications

  • Robotics line-following and maze-solving robots with adaptive thresholding.
  • Industrial automation for color sorting, label detection, and material presence sensing.
  • Interactive art installations and exhibits requiring grayscale or dual-color triggers.
  • Educational projects teaching analog/digital sensor interfacing and signal processing.
  • DIY security systems for light barrier interruption detection.

Technical Specifications

Item TypeSensor Module
Operating Voltage5V DC
Output ModesAnalog (0-5V), Digital (TTL 0V/5V)
InterfaceGravity 3-Pin (Signal, VCC, GND)
PCB Dimensions (L x W)37 mm x 15 mm
Shipping Weight0.015 kg

Frequently Asked Questions

What is the difference between the analog and digital output modes?

In analog mode, the sensor outputs a continuous voltage from 0 to 5V directly proportional to the detected grayscale intensity (darker = lower voltage). In digital mode, the sensor outputs a simple TTL signal (0V or 5V) based on a user-defined threshold, acting as a switch when a specific color or shade is detected.

How do I set the detection threshold for the digital output mode?

Place the sensor over the desired color or grayscale target and press the onboard configuration button. The sensor will record that value as one threshold. You can set a second threshold similarly. The digital output will then toggle based on these preset values, requiring no further code calibration.

Is this sensor compatible with 3.3V microcontrollers like the ESP32?

The sensor operates at 5V logic. While the VCC can be powered by 5V, the TTL digital output signal is also 5V. For use with 3.3V logic boards, a simple voltage divider or logic level converter is recommended on the signal line to prevent potential damage to the microcontroller's input pins.

What is the Gravity interface, and what cables do I need?

The Gravity interface is a DFRobot-standard 3-pin connector (signal, VCC, GND) that uses a common PH2.0-3P plug. It allows for plug-and-play connection to DFRobot's sensor shields and expansion boards. For direct connection to a microcontroller, you will need a matching Gravity 3-pin cable or can connect individual wires to the labeled pins.

Package Includes

  • 1 x DFRobot Gravity: Smart Grayscale Sensor

Additional Information

Weight 0.015 kg
Dimensions 3.7 × 1.5 cm