Compare commits
86 Commits
Author | SHA1 | Date | |
---|---|---|---|
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 | |||
f351f6bdf2 | |||
aedc9edb8e | |||
6addbeb50b | |||
43cb57012d | |||
5fefa8ab66 | |||
5a911a2149 | |||
620b7c0cf0 | |||
bff0304e3f | |||
a14b14c449 | |||
9a43163cae |
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
@ -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 |
94
README.md
@ -1,3 +1,6 @@
|
||||
[](https://zenodo.org/badge/latestdoi/170540207)
|
||||

|
||||
|
||||
# MQSensorsLib
|
||||
|
||||
This is a unified library to use sensors MQ: 2, 3, 4, 5, 6, 7, 8, 9, 131, 135, 303A and 309A.
|
||||
@ -5,16 +8,39 @@ 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 desftop app 1.8.9 or later.
|
||||
You'll need Arduino desktop app 1.8.9 or later.
|
||||
|
||||
### Sensor manufacter:
|
||||
| Sensor | Manufacter | URL Datasheet |
|
||||
### Sensor manufacture:
|
||||
| Sensor | Manufacture | 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) |
|
||||
@ -31,11 +57,11 @@ You'll need Arduino desftop 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
|
||||
|
||||
Clone this repositry into your desktop machine
|
||||
Clone this repository into your desktop machine
|
||||
|
||||
```
|
||||
git clone https://github.com/miguel5612/MQSensorsLib
|
||||
@ -48,7 +74,7 @@ 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.
|
||||
These tests can re-adjust values defined previously and you can contribute to improve conditions or features obtained from particular scenes.
|
||||
|
||||
```
|
||||
Examples/MQ-3
|
||||
@ -56,7 +82,7 @@ Examples/MQ-3
|
||||
|
||||
### And coding style tests
|
||||
|
||||
These tests may generate statistics validation using descriptive tools for cuantitative variables.
|
||||
These tests may generate statistics validation using descriptive tools for quantitative variables.
|
||||
|
||||
```
|
||||
Examples/MQ-board.ino
|
||||
@ -64,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
|
||||
|
||||
@ -77,7 +103,7 @@ Please read [CONTRIBUTING.md](https://github.com/miguel5612/MQSensorsLib/blob/NO
|
||||
* **Ghiordy F. Contreras C.** - [*GitHub*](https://github.com/Ghiordy) - [CV](https://scienti.colciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0000050476)
|
||||
* **Yersson R. Carrillo A.** - [*GitHub*](https://github.com/Yercar18/Dronefenix) - [CV](https://scienti.colciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0001637655)
|
||||
|
||||
## Colaborators
|
||||
## Collaborators
|
||||
|
||||
* **Andres A. Martinez.**
|
||||
* **Juan A. Rodríguez.** - [*Github*](https://github.com/Obiot24)
|
||||
@ -88,3 +114,47 @@ See also the list of [contributors](https://github.com/miguel5612/MQSensorsLib/c
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|
||||
|
||||
## Cite as
|
||||
|
||||
* 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{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.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
|
|