mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-25 02:00:01 +03:00
193 lines
6.1 KiB
Markdown
193 lines
6.1 KiB
Markdown
# MQSensorsLib
|
|
|
|
This is a unified library to use sensors MQ: 2, 3, 4, 5, 6, 7, 8, 9, and 135.
|
|
|
|
## Getting Started
|
|
|
|
```
|
|
MQsensorLib Sensor1(MQ4);
|
|
ppmMethano = Sensor1.readPPM();
|
|
```
|
|
|
|
### Prerequisites
|
|
|
|
You'll need Arduino desftop app 1.8.9 or later.
|
|
|
|
### Sensor manufacter:
|
|
| Sensor | Manufacter | URL Datasheet |
|
|
|----------|----------|----------|
|
|
| MQ-2 | Pololulu| [datasheet](https://www.pololu.com/file/0J309/MQ2.pdf) |
|
|
| MQ-3 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/MQ-3.pdf) |
|
|
| MQ-4 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-4.pdf) |
|
|
| MQ-5 | parallax | [datasheet](https://www.parallax.com/sites/default/files/downloads/605-00009-MQ-5-Datasheet.pdf) |
|
|
| MQ-6 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-6.pdf) |
|
|
| MQ-7 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-7.pdf) |
|
|
| MQ-8 | Sparkfun | [datasheet](https://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/Biometric/MQ-8.pdf) |
|
|
| MQ-9 | Haoyuelectronics | [datasheet](http://www.haoyuelectronics.com/Attachment/MQ-9/MQ9.pdf) |
|
|
| MQ-131 | Sensorsportal | [datasheet](http://www.sensorsportal.com/DOWNLOADS/MQ131.pdf) |
|
|
| MQ-135 | HANWEI Electronics | [datasheet](https://www.electronicoscaldas.com/datasheet/MQ-135_Hanwei.pdf) |
|
|
| MQ-303A | HANWEI Electronics | [datasheet](http://www.kosmodrom.com.ua/pdf/MQ303A.pdf) |
|
|
| MQ-309A | HANWEI Electronics | [datasheet](http://www.sensorica.ru/pdf/MQ-309A.pdf) |
|
|
|
|
### Info of datasheets (Lineal analisis of Logarithmic rects
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="1">Sensor</th>
|
|
<th colspan="2">H2</th>
|
|
<th colspan="2">LPG</th>
|
|
<th colspan="2">CH4</th>
|
|
<th colspan="2">CO</th>
|
|
<th colspan="2">Alcohol</th>
|
|
<th colspan="2">Propane</th>
|
|
<th colspan="2">Benzine</th>
|
|
<th colspan="2">Hexane</th>
|
|
<th colspan="2">Smoke</th>
|
|
<th colspan="2">Nox</th>
|
|
<th colspan="2">CL2</th>
|
|
<th colspan="2">O3</th>
|
|
<th colspan="2">CO2</th>
|
|
<th colspan="2">Tolueno</th>
|
|
<th colspan="2">NH4</th>
|
|
<th colspan="2">Acetona</th>
|
|
<th colspan="2">Iso-butano</th>
|
|
<th colspan="2">Hydrogeno</th>
|
|
<th colspan="2">Ethanol</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td></td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
<td>m</td>
|
|
<td>b</td>
|
|
</tr>
|
|
<tr>
|
|
<td>-MQ-2 Pololulu</td>
|
|
<td>-2.2459</td>
|
|
<td>2.9845</td>
|
|
<td>-2.2879</td>
|
|
<td>2.7901</td>
|
|
<td>-2.6208</td>
|
|
<td>3.6075</td>
|
|
<td>-3.1157</td>
|
|
<td>4.5134</td>
|
|
<td>-2.7028</td>
|
|
<td>3.5595</td>
|
|
<td>-2.2879</td>
|
|
<td>2.7901</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
### Installing
|
|
|
|
Clone this repositry into your desktop machine
|
|
|
|
```
|
|
git clone https://github.com/miguel5612/MQSensorsLib
|
|
```
|
|
|
|
|
|
## Running the tests
|
|
|
|
Use calibration systems if you have several sensors that read the same gas.
|
|
|
|
### Break down into end to end tests
|
|
|
|
These test can re-adjust values defined previously and you can contribute to improve conditions or features obtained from particular scenes.
|
|
|
|
```
|
|
testMassive.ino
|
|
```
|
|
|
|
### And coding style tests
|
|
|
|
These tests may generate statistics validation using descriptive tools for cuantitative variables.
|
|
|
|
```
|
|
testStatics.ino
|
|
```
|
|
|
|
## Built With
|
|
|
|
* [Data sheets](https://github.com/miguel5612/MQSensorsLib/tree/master/Datasheets) - Curves and behavior for each sensor, using logarithmic graphs.
|
|
* [Main purpose](https://github.com/miguel5612/MQSensorsLib/blob/master/static/img/bg.jpg) - Every sensor has high sensibility for a specific gas or material.
|
|
|
|
## Contributing
|
|
|
|
Please read [CONTRIBUTING.md](https://github.com/miguel5612/MQSensorsLib/blob/NO_Functional/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
|
|
|
|
## Authors
|
|
|
|
* **Miguel A. Califa U.** - [*GitHub*](https://github.com/miguel5612) - [CV](https://scienti.colciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0000050477)
|
|
* **Ghiordy F. Contreras C.** - [*GitHub*](https://github.com/Ghiordy) - [CV](https://scienti.colciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0000050476)
|
|
* **Mario A. Rodríguez O.** - [*GitHub*](https://github.com/MarioAndresR) - [CV](https://scienti.colciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0000111304)
|
|
|
|
See also the list of [contributors](https://github.com/miguel5612/MQSensorsLib/contributors) who participated in this project.
|
|
|
|
## License
|
|
|
|
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|