5V DC
5V DC
15-20 mA
Digital signal (particle concentration in g/m)
UART (optional IC protocol available upon request)
9600 bps (default), adjustable up to 115200 bps
1 Hz
0.3 m to 10 m
10 seconds
1 meter
4-pin JST connector
35 mm x 25 mm x 12 mm
approximately 20 grams
Applications
| The Optical Dust Sensor with Cable is suitable for a wide range of applications, including |
Air quality monitoring systems
Industrial automation and control systems
Environmental monitoring and pollution control systems
HVAC and ventilation system monitoring
Air purifier and cleaner devices
Medical and healthcare applications
The Optical Dust Sensor with Cable should be used in accordance with the manufacturer's instructions and guidelines to ensure accurate and reliable operation.
Optical Dust Sensor with Cable DocumentationOverviewThe Optical Dust Sensor with Cable is a sensitive and accurate sensor designed to detect dust particles in the air. It utilizes an infrared LED and a photodiode to measure the intensity of scattered light, providing a reliable indication of dust concentration. This sensor is ideal for applications such as air quality monitoring, HVAC systems, and industrial automation.Technical SpecificationsOperating Voltage: 5V
Operating Current: 20mA
Output Signal: Analog (0-5V)
Sensitivity: 0.1mg/m
Response Time: 1s
Cable Length: 1mPinoutVCC: 5V power supply
GND: Ground
OUT: Analog output signalExample 1: Arduino Air Quality MonitoringIn this example, we'll use the Optical Dust Sensor with Cable to measure dust concentration and display the results on an LCD screen using an Arduino board.```c++
const int dustSensorPin = A0; // Analog input pin for dust sensor
const int lcdRS = 12; // LCD screen control pins
const int lcdEN = 11;
const int lcdD4 = 5;
const int lcdD5 = 4;
const int lcdD6 = 3;
const int lcdD7 = 2;#include <LiquidCrystal.h>LiquidCrystal_I2C lcd(lcdRS, lcdEN, lcdD4, lcdD5, lcdD6, lcdD7);void setup() {
Serial.begin(9600);
lcd.begin(20, 4); // Initialize LCD screen
lcd.setCursor(0, 0);
lcd.print("Dust Concentration:");
}void loop() {
int dustValue = analogRead(dustSensorPin);
float dustConcentration = (dustValue / 1024.0) 5.0;
lcd.setCursor(1, 0);
lcd.print(dustConcentration, 2);
lcd.print(" mg/m");
delay(1000);
}
```Example 2: Raspberry Pi Python Script for Dust Concentration LoggingIn this example, we'll use the Optical Dust Sensor with Cable to measure dust concentration and log the data to a CSV file using a Raspberry Pi and Python.```python
import RPi.GPIO as GPIO
import time
import csv# Set up GPIO mode
GPIO.setmode(GPIO.BCM)# Define dust sensor pin
dust_sensor_pin = 17# Set up dust sensor pin as input
GPIO.setup(dust_sensor_pin, GPIO.IN)# Open CSV file for logging
with open('dust_log.csv', 'w', newline='') as csvfile:
logwriter = csv.writer(csvfile, delimiter=',', quotechar='|', quoting=csv.QUOTE_MINIMAL)
logwriter.writerow(['Time', 'Dust Concentration (mg/m)'])while True:
# Read dust sensor value
dust_value = GPIO.input(dust_sensor_pin)# Convert dust sensor value to dust concentration
dust_concentration = (dust_value 5.0) / 1024.0# Log data to CSV file
with open('dust_log.csv', 'a', newline='') as csvfile:
logwriter = csv.writer(csvfile, delimiter=',', quotechar='|', quoting=csv.QUOTE_MINIMAL)
logwriter.writerow([time.strftime("%Y-%m-%d %H:%M:%S"), dust_concentration])# Wait 1 minute before taking the next reading
time.sleep(60)
```These examples demonstrate how to use the Optical Dust Sensor with Cable to measure dust concentration in various contexts. By integrating this sensor into your projects, you can create accurate and reliable air quality monitoring systems.