<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Microduino-Dust</id>
		<title>Microduino-Dust - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Microduino-Dust"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino-Dust&amp;action=history"/>
		<updated>2026-04-21T11:33:25Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino-Dust&amp;diff=11120&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{{Language|Microduino-Dust}} {| style=&quot;width: 800px;&quot; |- |  Microduino-Dust  Microduino-Dust is a PM2.5 sensor.  ==Features== ...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino-Dust&amp;diff=11120&amp;oldid=prev"/>
				<updated>2015-10-29T03:50:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language|Microduino-Dust}} {| style=&amp;quot;width: 800px;&amp;quot; |- | &lt;a href=&quot;/index.php/%E6%96%87%E4%BB%B6:Microduino-Dust.jpg&quot; title=&quot;文件:Microduino-Dust.jpg&quot;&gt;400px|thumb|center| Microduino-Dust&lt;/a&gt;  Microduino-Dust is a PM2.5 sensor.  ==Features== ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language|Microduino-Dust}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File: Microduino-Dust.jpg|400px|thumb|center| Microduino-Dust]]&lt;br /&gt;
&lt;br /&gt;
Microduino-Dust is a PM2.5 sensor.&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
*Adopt SHARP GP2Y1010AUOF air quality sensor; &lt;br /&gt;
*Independent air duct and fast detection speed; &lt;br /&gt;
==Specification==&lt;br /&gt;
*Operation voltage: 4.5V~5.5V&lt;br /&gt;
*Detection sensibility: 0.5V/0.1mg/m3&lt;br /&gt;
*1.27mm-pitch 4PIN interface &lt;br /&gt;
*Input: Fan control /5V digital signal &amp;amp; LED control/5V digital signal &lt;br /&gt;
*Output 0~5V analog signal  &lt;br /&gt;
* Pin Description for Fan Control: GND, VCC, fan signal input and NC(empty). Since the output signal is digital, it needs to use digital interface to detect (D0~D13). Microduino-Dust can be connected to the pins (3~10) of the Sensorhub with the corresponding pins (D0,D2,D4,D6,D8,D10,D12). &lt;br /&gt;
*Pin Description for Sensor Control: GND, VCC, detection signal output and LED control signal output. Since the output signal is simulated, it needs to use the analog interface to detect (A0~A7). The control signal is digital, it needs to be driven by the digital interface(D0~D13). &lt;br /&gt;
You can use Microduino-IO-Split to divide the two signals, by connecting the interface of Microduino-Dust with the IN interface of Microduino-IO-Split: The IO-Split's A-OUT interface can be connected to the pin (10, 11 or 12) of the Sensorhub with the corresponding pin (A6,A2 or A0); The IO-Split's B-OUT interface can be connected to the pin (3~10) of the Sensorhub with the corresponding pin (D0,D2,D4,D6,D8,D10,D12). &lt;br /&gt;
 [[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]&lt;br /&gt;
[[File: Microduino-Dust_rule1.jpg|600px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==Document==&lt;br /&gt;
*Schematic: '''[[File: Microduino_Dust.Zip]]'''&lt;br /&gt;
&lt;br /&gt;
==Development==&lt;br /&gt;
&lt;br /&gt;
Microduino-Dust can be applied in outdoor air quality detection or indoor dust detection.&lt;br /&gt;
&lt;br /&gt;
==Application==&lt;br /&gt;
*All hardware needed: [[Microduino-CoreUSB]], [[Microduino-sensorhub]], [[Microduino-IO split]], a USB cable and several wires;  &lt;br /&gt;
** Make sure you build Microduino IDE or refer to: [[Microduino Getting started]]&lt;br /&gt;
*Program &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define FAN_PIN 10      //Fan control pin &lt;br /&gt;
#define LED_PIN 12      //Sensor LED control pin &lt;br /&gt;
#define DUST_PIN A0     //Sensor detection &lt;br /&gt;
#define TIME1 280      &lt;br /&gt;
#define TIME2 40&lt;br /&gt;
#define TIME3 9680&lt;br /&gt;
&lt;br /&gt;
int dustVal = 0;&lt;br /&gt;
float dustVoltage = 0; &lt;br /&gt;
float dustDensity = 0;&lt;br /&gt;
&lt;br /&gt;
void setup(){&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
  pinMode(FAN_PIN, OUTPUT);&lt;br /&gt;
  pinMode(LED_PIN, OUTPUT);&lt;br /&gt;
  digitalWrite(FAN_PIN, LOW);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(){&lt;br /&gt;
  digitalWrite(FAN_PIN, HIGH);    //Open the fan before detecting &lt;br /&gt;
  delay(3000);&lt;br /&gt;
  digitalWrite(FAN_PIN, LOW);     //Close the fan after 3s delay &lt;br /&gt;
  digitalWrite(LED_PIN,LOW);      //Turn on LED inside the sensor  &lt;br /&gt;
  delayMicroseconds(TIME1);       //Wait for 280us&lt;br /&gt;
  dustVal = analogRead(DUST_PIN); //Analog value sampling  &lt;br /&gt;
  delayMicroseconds(TIME2);       // Wait for 40us&lt;br /&gt;
  digitalWrite(LED_PIN,HIGH);     //Turn off the LED&lt;br /&gt;
  delayMicroseconds(TIME3);&lt;br /&gt;
  dustVoltage = dustVal * (5.0/1024.0);    //Convert the analog value to voltage value. &lt;br /&gt;
  dustDensity = 0.17 * dustVoltage - 0.1;  //Convert the voltage value to dust density (Output unit: mg / m³) &lt;br /&gt;
  Serial.println(dustDensity);&lt;br /&gt;
  delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*Software: &lt;br /&gt;
*Stack all modules together and then connect the Dust sensor's fan control interface with the D10 pin of the Sensorhub with a wire. &lt;br /&gt;
*Connect Microduino-Dust sensor's control detection interface to the IO splitter's IN interface with a wire. And then connect the IO splitter's A-OUT interface to Sensorhub A0, the IO splitter's *B-OUT interface to Sensorhub D12. &lt;br /&gt;
*Open Arduino IDE, copy the program to IDE and then choose the right board from Tools→Board and then compile.&lt;br /&gt;
*Select the right port from Tools→Serial Port in Arduino IDE after compiling, then download program. &lt;br /&gt;
*After the download, you can open the serial monitor. After the Dust sensor's fan works for three seconds, the serial console will display the current air dust density and the Dust sensor will have another detection after one second.  &lt;br /&gt;
&lt;br /&gt;
==Purchase==&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
&lt;br /&gt;
==Pictures==&lt;br /&gt;
&lt;br /&gt;
*Front &lt;br /&gt;
[[file: Microduino-Dust-F.JPG|thumb|600px|center|Microduino-Dust Front]]&lt;br /&gt;
*Back &lt;br /&gt;
[[file: Microduino-Dust -b.JPG|thumb|600px|center|Microduino-Dust Back]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>