Stufin
Home Quick Cart Profile

Optical Dust Sensor with Cable

Buy Now on Stufin

Supply Voltage

5V DC

Supply Current

15-20 mA

Output Signal

Digital signal (particle concentration in g/m)

Communication Protocol

UART (optional IC protocol available upon request)

Baud Rate

9600 bps (default), adjustable up to 115200 bps

Operating Frequency

1 Hz

Particle Size Range

0.3 m to 10 m

Response Time

10 seconds

Cable Length

1 meter

Cable Connector

4-pin JST connector

Dimensions

35 mm x 25 mm x 12 mm

Weight

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

Note

The Optical Dust Sensor with Cable should be used in accordance with the manufacturer's instructions and guidelines to ensure accurate and reliable operation.

Pin Configuration

  • Optical Dust Sensor with Cable
  • The Optical Dust Sensor with Cable is a digital sensor designed to detect particulate matter (PM) in the air, providing accurate and reliable measurements of dust concentrations. The sensor consists of an optical detection unit and a control circuit, which communicates with a microcontroller or other devices through a 6-pin interface.
  • Pin Description:
  • Here is a detailed description of each pin on the Optical Dust Sensor with Cable:
  • Pin 1: VCC (Power Supply)
  • + Function: Power supply pin for the sensor
  • + Voltage: 5V (typical), 4.5V to 5.5V (operating range)
  • + Current: Maximum 20mA (typical)
  • Pin 2: GND (Ground)
  • + Function: Ground pin for the sensor
  • + Connection: Connect to the ground pin of the microcontroller or power supply
  • Pin 3: OUT (Output)
  • + Function: Digital output pin indicating dust detection
  • + Logic level: CMOS-compatible, 3.3V or 5V logic
  • + Output type: Digital signal (high or low) indicating the presence or absence of dust
  • Pin 4: NC (No Connection)
  • + Function: No internal connection, reserved for future use
  • + Connection: Leave unconnected
  • Pin 5: SCL (Clock)
  • + Function: Clock input for I2C communication
  • + Logic level: CMOS-compatible, 3.3V or 5V logic
  • + Connection: Connect to the SCL pin of the microcontroller or I2C bus
  • Pin 6: SDA (Data)
  • + Function: Data input/output for I2C communication
  • + Logic level: CMOS-compatible, 3.3V or 5V logic
  • + Connection: Connect to the SDA pin of the microcontroller or I2C bus
  • Connection Structure:
  • To connect the Optical Dust Sensor with Cable to a microcontroller or other devices:
  • 1. Connect Pin 1 (VCC) to the power supply (5V) of the microcontroller or a dedicated power source.
  • 2. Connect Pin 2 (GND) to the ground pin of the microcontroller or power supply.
  • 3. Connect Pin 3 (OUT) to a digital input pin on the microcontroller to read the dust detection signal.
  • 4. Leave Pin 4 (NC) unconnected.
  • 5. Connect Pin 5 (SCL) to the SCL pin of the microcontroller or I2C bus.
  • 6. Connect Pin 6 (SDA) to the SDA pin of the microcontroller or I2C bus.
  • Important Notes:
  • Ensure proper power supply and grounding to prevent damage to the sensor.
  • Use a 10k pull-up resistor on the SDA line if you are using a 5V microcontroller.
  • Follow the communication protocol specified in the datasheet for I2C communication.
  • Refer to the datasheet for detailed information on sensor operation, calibration, and accuracy.

Code Examples

Optical Dust Sensor with Cable Documentation
Overview
The 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 Specifications
Operating Voltage: 5V
 Operating Current: 20mA
 Output Signal: Analog (0-5V)
 Sensitivity: 0.1mg/m
 Response Time: 1s
 Cable Length: 1m
Pinout
VCC: 5V power supply
 GND: Ground
 OUT: Analog output signal
Example 1: Arduino Air Quality Monitoring
In 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 Logging
In 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.