

The DFR0559 is a versatile sensor module designed for a wide range of applications, particularly in robotics and automation projects. This module is commonly used for tasks such as distance measurement, obstacle detection, and environmental sensing. Its ability to interface seamlessly with microcontrollers, such as Arduino boards, makes it a popular choice for hobbyists and professionals alike. The DFR0559 is compact, reliable, and easy to integrate into various systems, making it an essential component for projects requiring precise sensing capabilities.








The DFR0559 sensor module is equipped with the following technical features:
| Parameter | Specification |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Operating Current | < 20mA |
| Measurement Range | 2cm to 400cm |
| Measurement Accuracy | ±3mm |
| Interface Type | Analog and Digital |
| Operating Temperature | -10°C to 70°C |
| Dimensions | 45mm x 20mm x 15mm |
The DFR0559 module has a simple pinout for easy integration:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5V) |
| 2 | GND | Ground connection |
| 3 | SIG | Signal output (analog or digital, depending on mode) |
VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.SIG pin outputs the sensor's readings. Connect this pin to an analog or digital input pin on your microcontroller, depending on your application.VCC and GND to stabilize the power supply.Below is an example of how to use the DFR0559 sensor module with an Arduino UNO to measure distance:
// DFR0559 Sensor Example with Arduino UNO
// This code reads the analog signal from the DFR0559 sensor and calculates
// the distance in centimeters. The result is displayed in the Serial Monitor.
const int sensorPin = A0; // Connect SIG pin of DFR0559 to Arduino A0
int sensorValue = 0; // Variable to store the analog reading
float distance = 0.0; // Variable to store the calculated distance
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(sensorPin, INPUT); // Set the sensor pin as input
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
distance = sensorValue * 0.488; // Convert the reading to distance in cm
// The conversion factor (0.488) may vary based on the sensor's calibration
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm"); // Print the distance to the Serial Monitor
delay(500); // Wait for 500ms before the next reading
}
0.488) in the code is an example. Refer to the sensor's datasheet or calibrate the sensor for accurate measurements.SIG pin if the signal is unstable.No Output or Incorrect Readings
Fluctuating or Unstable Readings
VCC and GND to stabilize the power.Sensor Not Responding
Q: Can the DFR0559 be used outdoors?
A: While the DFR0559 can operate in a wide temperature range, it is not waterproof. Use a protective enclosure if deploying it outdoors.
Q: How do I switch between analog and digital modes?
A: The DFR0559 typically outputs an analog signal. If a digital signal is required, additional circuitry or a microcontroller can be used to process the analog output.
Q: What is the maximum distance the sensor can measure?
A: The DFR0559 can measure distances up to 400cm with an accuracy of ±3mm.
By following this documentation, you can effectively integrate and utilize the DFR0559 sensor module in your projects.