☰
DFR0021-G
DFR0021-G
Active
Description:  GRAVITY: DIGITAL GREEN LED LIGHT
Manufacturer:  DFRobot
Datasheet:   DFR0021-G Datasheet
History Price: $1.7
In Stock: 12295
DFR0021-G Specification
Specification
Part No
DFR0021-G
Category
Expansion Boards, Daughter Cards
Manufacturer
DFRobot
Series
-
Packaging
Bulk
Status
Active
Environmental Compliance
Lead Free
Radiation Hardening
No
REACH SVHC
No SVHC
RoHS
Compliant
HS Code
-
Technical Parameter
Contents
Gravity
Platform
Opto
Type
LED Green
Function
-
Utilized IC / Part
Board(s), Cable(s)
DFR0021-G PDF Datasheet
DFR0021-G Related Parts
DFR0008
DFR0008
DFRobot
INPUT SHIELD FOR ARDUINO
DFR0009
DFR0009
DFRobot
1602 LCD KEYPAD SHIELD FOR ARDUI
DFR0009-BP
DFR0009-BP
DFRobot
PCB OF ARDUINO LCD KEYPAD SHIELD
DFR0013
DFR0013
DFRobot
IIC TO GPIO SHIELD V2.0
DFR0015
DFR0015
DFRobot
XBEE SHIELD FOR ARDUINO
DFR0016
DFR0016
DFRobot
MEGA PROTOTYPING SHIELD FOR ARDU
DFR0017
DFR0017
DFRobot
GRAVITY: RELAY MODULE V3.1
DFR0019
DFR0019
DFRobot
PROTOTYPING SHIELD FOR ARDUINO
DFR0021-B
DFR0021-B
DFRobot
GRAVITY: DIGITAL BLUE LED LIGHT
DFR0021-R
DFR0021-R
DFRobot
GRAVITY:DIGITAL RED LED LIGHT MO
DFR0021-W
DFR0021-W
DFRobot
GRAVITY:DIGITAL WHITE LED LIGHT
DFR0022
DFR0022
DFRobot
GRAVITY:ANALOG GRAYSCALE SENSOR
DFR0021-G Description
The DFRobot DFR0021-G is a versatile infrared (IR) sensor module designed for various robotics and automation applications. This sensor is particularly useful for distance measurement, obstacle detection, and line following in mobile robots. Its compact size, ease of integration, and reliable performance make it a popular choice among hobbyists and professionals alike.

## Overview

The DFR0021-G module utilizes an infrared emitting diode (LED) and a phototransistor to measure distances by emitting IR light and detecting the reflection off nearby objects. The sensor is capable of detecting distances in a specified range, making it suitable for numerous applications, including obstacle avoidance in robotics and proximity sensing in automated systems.

## Key Features

1. Compact Design: The module is designed to be lightweight and compact, making it easy to integrate into various robotic platforms without adding significant weight or bulk.

2. Wide Detection Range: The DFR0021-G can effectively measure distances from approximately 10 cm to 80 cm, allowing for reliable detection of nearby objects.

3. Easy Interface: The module features simple wiring connections, making it easy to integrate with microcontrollers and development boards such as Arduino and Raspberry Pi.

4. Analog and Digital Outputs: The sensor provides both analog voltage output and digital output, allowing for flexibility in how the sensor data can be used. The analog output provides a voltage proportional to the detected distance, while the digital output can be used for simple threshold detection.

5. Low Power Consumption: The DFR0021-G operates with low power requirements, making it ideal for battery-operated devices and applications where energy efficiency is critical.

6. Robust Performance: The sensor is designed to perform well in various lighting conditions, although it is optimized for use in environments with controlled lighting.

## Specifications

- Detection Range: 10 cm to 80 cm
- Operating Voltage: 5 V DC
- Current Consumption: < 20 mA
- Output Type: Analog voltage (0-5 V) and digital output (high/low)
- Response Time: < 50 ms
- Mounting Type: PCB mount with pre-drilled holes for easy installation
- Dimensions: Approximately 30 mm x 20 mm x 15 mm

## Applications

The DFRobot DFR0021-G is suitable for a wide range of applications, including:

- Robotics: Used for obstacle avoidance and line-following in mobile robots, allowing for autonomous navigation.
- Proximity Sensing: Ideal for applications requiring detection of nearby objects or people, such as security systems and smart home devices.
- Industrial Automation: Can be integrated into automated systems for detecting the presence of objects on assembly lines or in packaging machines.
- Educational Projects: Frequently used in educational settings to teach students about sensor integration and robotics.

## Integration with Microcontrollers

Integrating the DFR0021-G with microcontrollers like Arduino is straightforward. The analog output can be read using an analog input pin, while the digital output can be connected to a digital input pin for simple threshold detection. This versatility allows users to easily incorporate the sensor into various projects and applications.

## Conclusion

The DFRobot DFR0021-G infrared sensor module is an excellent choice for those seeking a reliable and easy-to-use solution for distance measurement and obstacle detection in robotics and automation. Its compact design, wide detection range, and flexibility in output options make it suitable for a variety of applications, from educational projects to professional robotics. Whether you are a hobbyist or a professional engineer, the DFR0021-G offers an effective solution for enhancing the capabilities of your projects.
DFR0021-G Compare Parts
  • DFR0021-G vs DFR0998
  • DFR0021-G vs DFR0996
  • DFR0021-G vs DFR0941
  • DFR0021-G vs DFR0940
  • DFR0021-G vs DFR0934
  • DFR0021-G vs DFR0921
  • DFR0021-G vs DFR0920
  • DFR0021-G vs DFR0865
  • DFR0021-G vs DFR0850
  • DFR0021-G vs DFR0848
  • DFR0021-G vs DFR0845
  • DFR0021-G vs DFR0844
  • DFR0021-G vs DFR0843
  • DFR0021-G vs DFR0836
  • DFR0021-G vs DFR0835
  • DFR0021-G vs DFR0834
  • DFR0021-G vs DFR0832
  • DFR0021-G vs DFR0830
  • DFR0021-G vs DFR0828
  • DFR0021-G vs DFR0827
  • DFR0021-G vs DFR0824
  • DFR0021-G vs DFR0819
  • DFR0021-G vs DFR0792
  • DFR0021-G vs DFR0789-Y
  • DFR0021-G vs DFR0789-W
  • DFR0021-G vs DFR0789-R
  • DFR0021-G vs DFR0789-G
  • DFR0021-G vs DFR0789-B
  • DFR0021-G vs DFR0789
  • DFR0021-G vs DFR0785-Y
  • DFR0021-G vs DFR0785-W
  • DFR0021-G vs DFR0785-R
  • DFR0021-G vs DFR0785-G
  • DFR0021-G vs DFR0785-B
  • DFR0021-G vs DFR0785
  • DFR0021-G vs DFR0782
  • DFR0021-G vs DFR0779
  • DFR0021-G vs DFR0778
  • DFR0021-G vs DFR0768
  • DFR0021-G vs DFR0767
  • Customer Reviews
    4.95 out of 5.00 stars from 124 customer reviews from all over the world
    Ulysses Rocha
    Brazil
    5 stars
    2026-09-17 23:58
    Perfect fast very well packed send correctly confirm the order seller and the store Note 10 congratulations again to buy for sure can buy without fear shop and seller serious
    David Wright
    United States
    5 stars
    2026-09-17 23:19
    Item received as described. Very little packaging, some timer legs came bent, but should not affect item performance after being bent back.
    Beata Włodarczyk
    Poland
    5 stars
    2026-09-17 23:11
    Fast delivery and according to the description. Recommend.
    Sarah Green
    United States
    5 stars
    2026-09-17 23:00
    Not yet tested but according to the photos
    Oscar Felipe
    Spain
    5 stars
    2026-09-17 19:07
    Very well and pretty fast shipping
    Élodie Lemoine
    France
    5 stars
    2026-09-17 19:06
    Packed perfectly and have arrived super fast, in a week.
    Many thanks!!