Difference between revisions of "Sensor-Air Quality"

From Microduino Wiki
Jump to: navigation, search
(Document)
(Development)
Line 48: Line 48:
  
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Make sure you build Microduino IDE or refer to: [[Microduino Getting started]]
+
*Download and unzip the program: '''[[File:Sensor-Air Quality_Test.zip]]'''
*Core selection
+
 
**1. Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core.
+
===Programming===
**2. Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core plus [[Microduino-USBTTL]] as the program download module.
+
{{Upload
===Program===
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
*Open " AnalogInput " in the libraries.
+
|nameB=[[Microduino-USBTTL]]
[[file:mCookie-AnalogInput.JPG|thumb|800px|center]]
+
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
*int sensorPin = A0; Define the analog A0 as the input pin.  
+
|fileName=Sensor-Air Quality Test.ino
*sensorValue = analogRead(sensorPin);    Read values of the pin.
+
}}
===Hardware Buildup===
+
 
* Stack all modules together and then connect the air quality sensor to the A0 slot of [[Microduino-Sensorhub]] with the wire.  
+
===Hardware Setup===
For reference: [[Microduino-Sensorhub]]
+
*Referring to the following diagram, connect the Sensor-AirQulity to analog pin A0/A1 of '''[[Microduino-Sensorhub]]'''.
[[file:Microduino-sensorhub_Analog.PNG|thumb|400px|center]]
+
<br>
For reference: [[mCookie-Hub]]
+
[[file:Microduino-sensorhub_Moisture.JPG|thumb|400px|left]]
[[file:mCookie-sensorhub_Analog.PNG|thumb|400px|center]]
+
<br style="clear: left"/>
* Connect the core, Sensorhub and the Microduino-Air to a computer with a USB cable. 
+
===Result===
* Select the right board and COM port, compile and download.  You can refer to [[AVR Core:Getting started]]
+
*After download, open the serial monitor.
[[file:upload.JPG|thumb|800px|center]]
+
*The current air quality value will be printed out in cycle in the serial monitor.
*Select the right port number from Tools→Serial Port in Arduino IDE after compiling, then download the program.
 
*Open the serial monitor after download. The values displayed on the serial monitor reflect the current air quality.  
 
  
 
==Application==
 
==Application==

Revision as of 02:53, 10 November 2016

Language: English  • 中文
Microduino-Air-quality

The product number of Sensor-Air is: MSDT61

Sensor-Air is an air quality sensor module.

TP401T air quality sensor shows great sensitivity towards alcohol, cigarettes, ammonia, sulfide and other pollution sources.


Introduction of Sensor Pins

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-Air Quality sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): Analog signal read
    • PIN4(IO2): NC


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.


Features

  • Show great sensitivity towards VOCS and odorous gas such as ammonia, alcohol, hydrogen sulfide, toluene and hydrogen.
  • Low consumption
  • Sensitive for air pollution.
  • long product life and low price
  • Easy to use

Specification

  • Sensor voltage
    • 3.3V~5V working voltage
  • Sensor size
    • Size of the board: 23.5mm*13mm
    • 1.27mm-spacing 4Pin interface connected to sensorhub
    • The CAD drawing of the sensor: File:Sensor CAD.zip
  • Technical parameters
    • Range: 1-100ppm
    • Sensitivity: 0.15-0.45ppm
  • Connection
    • This sensor can be connected to the following interface of core: A0~A7

Document

Development

Program Download

Programming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Sensor-Air Quality Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following diagram, connect the Sensor-AirQulity to analog pin A0/A1 of Microduino-Sensorhub.


Microduino-sensorhub Moisture.JPG


Result

  • After download, open the serial monitor.
  • The current air quality value will be printed out in cycle in the serial monitor.

Application

Air cleaner, air conditioner and fresh air detector.

Project

Purchase

History

Pictures

  • Front
File:Microduino-AirQuality-F.JPG
Microduino-Light Front
  • Back
File:Microduino-AirQuality-b.JPG
Microduino-Light Back