Compare commits
78 Commits
Author | SHA1 | Date | |
---|---|---|---|
ef5a8d5993 | |||
aab8c90bc4 | |||
d321458f71 | |||
63f8eed37b | |||
d7e244d646 | |||
d6b66f2bdd | |||
1840c75c0a | |||
8f3ede62f4 | |||
d7b1ed1314 | |||
8a4127c879 | |||
80af739dfd | |||
fce223342f | |||
70fbaa9115 | |||
ab77a7a4d7 | |||
411607dd5a | |||
0e8c0b3f5f | |||
ce87a05178 | |||
8bdb1fc193 | |||
5b75d1f491 | |||
5659e4c086 | |||
c583fea17c | |||
0d4374a73d | |||
5ce115435a | |||
3d1bb90e38 | |||
9a1974033e | |||
d0f49fa4f0 | |||
1712dc56c9 | |||
c54b79e7f7 | |||
510e8dac53 | |||
c67ceab56a | |||
a4ea39b2f4 | |||
b992078540 | |||
28ed0da67b | |||
65e8664c69 | |||
2cfb8324ed | |||
b6da8a2181 | |||
333610088f | |||
0b6bfd3863 | |||
b0f47547a5 | |||
2dcf3e6f55 | |||
cf15fb6d2a | |||
733988c5d3 | |||
f8a57bbdff | |||
fad888dca4 | |||
e9e1169cc7 | |||
50342b0bc6 | |||
1311d9446d | |||
3b578869ad | |||
b4be0e4175 | |||
ad69c46d87 | |||
7e497b0833 | |||
973e2dbb84 | |||
3ae663163b | |||
1177d5827d | |||
532a83e186 | |||
d79a303ce9 | |||
1b351f9495 | |||
abac48da38 | |||
12695e75a6 | |||
aa11343a97 | |||
a03ceab3dc | |||
7cec5bbb77 | |||
b6b36edb9d | |||
fae50dc388 | |||
2708a4c22b | |||
fe3925631f | |||
859b6ad37f | |||
d686f17299 | |||
627c17b228 | |||
3261318577 | |||
e5578c199f | |||
ff002f9993 | |||
b85e7520d4 | |||
0f912a3c4a | |||
b2616295a3 | |||
886bfd9981 | |||
cfe8ccc6ad | |||
a9aba676e2 |
@ -1,6 +0,0 @@
|
||||
{
|
||||
"cells": [],
|
||||
"metadata": {},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
Before Width: | Height: | Size: 117 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 152 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 170 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 171 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 49 KiB |
79
README.md
@ -1,4 +1,4 @@
|
||||
[](https://doi.org/10.5281/zenodo.3384299)
|
||||
[](https://zenodo.org/badge/latestdoi/170540207)
|
||||

|
||||
|
||||
# MQSensorsLib
|
||||
@ -8,10 +8,33 @@ This is a unified library to use sensors MQ: 2, 3, 4, 5, 6, 7, 8, 9, 131, 135, 3
|
||||
## Getting Started
|
||||
|
||||
```
|
||||
MQUnifiedsensor MQ4(pin, 4); //Example if sensor is MQ4, type = 4
|
||||
#define placa "Arduino UNO"
|
||||
#define Voltage_Resolution 5
|
||||
#define pin A0 //Analog input 0 of your arduino
|
||||
#define type "MQ-4" //MQ4
|
||||
#define ADC_Bit_Resolution 10 // For arduino UNO/MEGA/NANO
|
||||
MQUnifiedsensor MQ4(placa, Voltage_Resolution, ADC_Bit_Resolution, pin, type); //Example if sensor is MQ4 on Arduino UNO board
|
||||
MQ4.setRegressionMethod("Exponential"); //_PPM = a*ratio^b
|
||||
MQ4.setA(1012.7); MQ4.setB(-2.786); // Configurate the ecuation values to get CH4 concentration
|
||||
MQ4.setR0(3.86018237);
|
||||
MQ4.init();
|
||||
MQ4.update();
|
||||
float ppmCH4 = MQ4.readSensor();
|
||||
```
|
||||
|
||||
## Wiring
|
||||
|
||||
### Arduino
|
||||

|
||||
|
||||
### ESP8266
|
||||

|
||||
|
||||
### User Manual New!! 12.2019
|
||||
[Manual](https://drive.google.com/open?id=1BAFInlvqKR7h81zETtjz4_RC2EssvFWX)
|
||||
|
||||
[Excel_Help_Spreadsheet (Fill only Volaje Between RL - RS - RL Values)](https://drive.google.com/open?id=1MKDcudQ7BHL_vLGi-lgPh9-pblvygRMq)
|
||||
|
||||
### Prerequisites
|
||||
|
||||
You'll need Arduino desktop app 1.8.9 or later.
|
||||
@ -34,7 +57,7 @@ You'll need Arduino desktop app 1.8.9 or later.
|
||||
|
||||
### Info of datasheets
|
||||
|
||||
Review WPDigitalizer [folder](https://github.com/miguel5612/MQSensorsLib/tree/master/WPDigitalizer) [website](https://automeris.io/WebPlotDigitizer/)
|
||||
Review WPDigitalizer [folder](https://github.com/miguel5612/MQSensorsLib_Docs/tree/master/WPDigitalizer) [website](https://automeris.io/WebPlotDigitizer/)
|
||||
|
||||
### Installing
|
||||
|
||||
@ -67,12 +90,12 @@ Examples/MQ-board.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.
|
||||
* [Data sheets](https://github.com/miguel5612/MQSensorsLib_Docs/tree/master/Datasheets) - Curves and behavior for each sensor, using logarithmic graphs.
|
||||
* [Main purpose](https://github.com/miguel5612/MQSensorsLib_Docs/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.
|
||||
Please read [CONTRIBUTING.md](https://github.com/miguel5612/MQSensorsLib/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
|
||||
|
||||
## Authors
|
||||
|
||||
@ -94,14 +117,44 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
|
||||
|
||||
## Cite as
|
||||
|
||||
* Plain text: Miguel Angel Califa Urquiza. (2019, September 3). Ghiordy/MQSensorsLib: Arduino Preview V1.0.3 (Version 1.0.3). Zenodo. http://doi.org/10.5281/zenodo.3384299
|
||||
* Plain text: Califa Urquiza, Miguel Angel, Contreras Contreras, Ghiordy, & Carrillo Amado, Yerson Ramiro. (2019, September 3). miguel5612/MQSensorsLib: Arduino Preview V1.03 (Version 1.0.3). Zenodo. http://doi.org/10.5281/zenodo.3384301
|
||||
* CSL: {
|
||||
"publisher": "Zenodo",
|
||||
"DOI": "10.5281/zenodo.3384301",
|
||||
"title": "miguel5612/MQSensorsLib: Arduino Preview V1.03",
|
||||
"issued": {
|
||||
"date-parts": [
|
||||
[
|
||||
2019,
|
||||
9,
|
||||
3
|
||||
]
|
||||
]
|
||||
},
|
||||
"abstract": "<p>Publishing on Zenodo platform as software in order to extend its applications for other works allowing to recognize MQSensorLib's Authors this work into scientific community using Digital Object Identifier System (DOI).</p>",
|
||||
"author": [
|
||||
{
|
||||
"family": "Califa Urquiza, Miguel Angel"
|
||||
},
|
||||
{
|
||||
"family": "Contreras Contreras, Ghiordy"
|
||||
},
|
||||
{
|
||||
"family": "Carrillo Amado, Yerson Ramiro"
|
||||
}
|
||||
],
|
||||
"version": "1.0.3",
|
||||
"type": "article",
|
||||
"id": "3384301"
|
||||
}
|
||||
* BibTeX:
|
||||
@misc{miguel_angel_califa_urquiza_2019_3384299,
|
||||
author = {Miguel Angel Califa Urquiza},
|
||||
title = {Ghiordy/MQSensorsLib: Arduino Preview V1.0.3},
|
||||
@misc{califa_urquiza_miguel_angel_2019_3384301,
|
||||
author = {Califa Urquiza, Miguel Angel and
|
||||
Contreras Contreras, Ghiordy and
|
||||
Carrillo Amado, Yerson Ramiro},
|
||||
title = {miguel5612/MQSensorsLib: Arduino Preview V1.03},
|
||||
month = sep,
|
||||
year = 2019,
|
||||
doi = {10.5281/zenodo.3384299},
|
||||
url = {https://doi.org/10.5281/zenodo.3384299}
|
||||
doi = {10.5281/zenodo.3384301},
|
||||
url = {https://doi.org/10.5281/zenodo.3384301}
|
||||
}
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
4.957713628975931; 5.970352865838375
|
||||
9.82303087255475; 3.890451449942809
|
||||
19.66936860744601; 2.365919697485761
|
||||
49.50200098710442; 0.9908319448927686
|
||||
99.17887133636847; 0.49659232145033677
|
|
Before Width: | Height: | Size: 180 KiB |
@ -1,5 +0,0 @@
|
||||
5.004690736196025; 8.090958991783829
|
||||
9.81247228520288; 5.571857489319305
|
||||
19.63847609606165; 3.9994474976109777
|
||||
49.85956704514034; 2.8313919957993816
|
||||
98.7613064604988; 2.032357010936224
|
|
@ -1,5 +0,0 @@
|
||||
5.015052099488824; 4.055085354483843
|
||||
9.839297042431014; 2.2387211385683425
|
||||
19.708460197689764; 1.2189895989248674
|
||||
50.120105449151986; 0.49659232145033727
|
||||
99.34721307419954; 0.2818382931264458
|
|
@ -1,3 +0,0 @@
|
||||
10.038068731719024; 1.4367778871086752
|
||||
100.76282386271518; 0.7437057711666111
|
||||
199.67791490816478; 0.5858066785834567
|
|
@ -1,3 +0,0 @@
|
||||
10; 1.8980643862295867
|
||||
100.76282386271518; 0.9276207214357883
|
||||
199.67791490816478; 0.7371610501169261
|
|
@ -1,3 +0,0 @@
|
||||
9.92429510870452; 2.850325339883499
|
||||
100.76282386271518; 1.5488850711364055
|
||||
199.67791490816478; 1.3446177759671738
|
|
@ -1,3 +0,0 @@
|
||||
10; 2.3054935712377356
|
||||
100.76282386271518; 1.049816136090719
|
||||
198.16625542394166; 0.8052859018667691
|
|
Before Width: | Height: | Size: 243 KiB |
@ -1,3 +0,0 @@
|
||||
10; 2.563475521052897
|
||||
100.38068731719024; 1
|
||||
199.67791490816478; 0.7670732751979543
|
|
@ -1,3 +0,0 @@
|
||||
10; 1.5420548019516276
|
||||
100.38068731719024; 0.8017347542813508
|
||||
199.67791490816478; 0.6427786162225773
|
|
@ -1,9 +0,0 @@
|
||||
202,97159045689085; 2,870821251841819
|
||||
493,62843297110385; 2,120486081991352
|
||||
789,3018264543583; 1,722949305824931
|
||||
1013,5564768245204; 1,628558370192401
|
||||
1483,4109724050659; 1,4241031945513674
|
||||
2002,568136043121; 1,2616407836292618
|
||||
3045,8553406742876; 1,09372808300933
|
||||
4983,9913111605565; 0,8886628824162796
|
||||
10116,086432495827; 0,6593474448589979
|
|
@ -1,9 +0,0 @@
|
||||
200,6424043638923; 3,0628594206904824
|
||||
493,62843297110385; 2,262307524341795
|
||||
795,3985507023424; 1,9027463399615197
|
||||
1021,3853885815306; 1,760109364516406
|
||||
1466,3881949840988; 1,512822440016997
|
||||
2010,2873757128875; 1,3635579819828156
|
||||
3022,508881097584; 1,1618613226754184
|
||||
4945,78905312065; 0,9359079659557669
|
||||
10155,080609166793; 0,7034431020028873
|
|
@ -1,9 +0,0 @@
|
||||
202,97159045689085; 5,230578600305607
|
||||
491,73296457790207; 4,06886745979215
|
||||
810,8471866516105; 3,4816976949280916
|
||||
994,2457296427418; 3,220835982615804
|
||||
1483,4109724050659; 2,8043001628397395
|
||||
2025,8152351174235; 2,505895099093425
|
||||
3045,8553406742876; 2,2293985477843727
|
||||
4983,9913111605565; 1,84294785992263
|
||||
10272,967317129345; 1,4525325413623644
|
|
@ -1,9 +0,0 @@
|
||||
199,87196386572526; 2,0769753765580705
|
||||
495,5312077697903; 1,3831422575910868
|
||||
792,3443246647935; 1,1093808898233806
|
||||
998,0782190045875; 1,004327136273875
|
||||
1477,714868970752; 0,8303118686874813
|
||||
2033,6240846866745; 0,7167722606428578
|
||||
2976,351441631319; 0,5951498799327694
|
||||
4907,879615117585; 0,46313409452053067
|
||||
10038,546701761785; 0,33483775607304667
|
|
@ -1,9 +0,0 @@
|
||||
197,57834731787014; 1,5893603059497052
|
||||
497,4413171377462; 1,081492898685633
|
||||
798,4645497739094; 0,8636972212632283
|
||||
1005,7875736205846; 0,7785412443059092
|
||||
1455,1483398731953; 0,6691551077105506
|
||||
1964,4142809066307; 0,5776630257056471
|
||||
2964,922642745657; 0,4673698778126437
|
||||
4907,879615117585; 0,3636968635962981
|
||||
9961,601312513694; 0,2562263980512121
|
|