Compare commits

...

70 Commits
1.0.4 ... v1.10

Author SHA1 Message Date
6b3c764b71 Trying options for version 1.10 2020-03-30 12:39:13 -05:00
ef5a8d5993 UPdated version 2020-03-30 12:35:43 -05:00
aab8c90bc4 Updated props 2020-03-30 11:59:32 -05:00
d321458f71 Fixed smoke calculation 2020-03-30 10:41:57 -05:00
63f8eed37b Added digital input 2020-03-29 22:16:52 -05:00
d7e244d646 Added digital input 2020-03-29 22:14:07 -05:00
d6b66f2bdd Added important note 2020-03-29 22:08:16 -05:00
1840c75c0a Added external A2_D Support 2020-03-29 22:03:45 -05:00
8f3ede62f4 Added wiring example 2020-03-29 21:45:42 -05:00
d7b1ed1314 Added MQ-135 all gases 2020-03-29 20:48:45 -05:00
8a4127c879 Changed some gases 2020-03-29 19:34:06 -05:00
80af739dfd Fixed calibration calculation issue 2020-03-29 15:51:54 -05:00
fce223342f Added lineal vs exponential example 2020-03-28 13:23:19 -05:00
70fbaa9115 Added Linear ecuation on test algorithm 2020-03-28 12:58:25 -05:00
ab77a7a4d7 Updated MQ-4 example and tested 2020-03-28 12:33:09 -05:00
411607dd5a Updated equation 2020-03-28 12:31:23 -05:00
0e8c0b3f5f Added equation 2020-03-28 12:28:36 -05:00
ce87a05178 Added sources 2020-03-28 12:25:48 -05:00
8bdb1fc193 Updated linear regresion method 2020-03-28 12:23:38 -05:00
5b75d1f491 Added MQ-9 All 2020-03-28 12:18:07 -05:00
5659e4c086 Moved comment 2020-03-28 08:43:30 -05:00
c583fea17c Added MQ4 all gases 2020-03-28 08:42:25 -05:00
0d4374a73d Removed unused vars 2020-03-27 22:57:14 -05:00
5ce115435a Comments fixation 2020-03-27 22:55:51 -05:00
3d1bb90e38 Changed variable types 2020-03-27 22:54:05 -05:00
9a1974033e Updated basic examples 2020-03-27 22:03:29 -05:00
d0f49fa4f0 Fixed print issue 2020-03-27 21:57:28 -05:00
1712dc56c9 Fixed algorithm calculation 2020-03-27 21:02:15 -05:00
c54b79e7f7 Migrated documentation to another repo 2020-03-27 08:22:44 -05:00
510e8dac53 Updated regression model selection 2020-03-26 22:18:07 -05:00
c67ceab56a Updated add comment 2020-03-26 20:13:58 -05:00
a4ea39b2f4 Added test equation 2020-03-26 20:13:27 -05:00
b992078540 Added pendent to validate example 2020-03-26 15:01:30 -05:00
28ed0da67b Added algorithm tester example - Work in progress 2020-03-26 14:54:25 -05:00
65e8664c69 Added options to custom 2020-03-26 14:46:14 -05:00
2cfb8324ed Updated smoke detector example 2020-03-26 14:45:28 -05:00
b6da8a2181 Updated examples 2020-03-26 14:42:46 -05:00
333610088f Added MQBoard 2020-03-26 14:31:17 -05:00
0b6bfd3863 Updated alcohol on PPM 2020-03-26 14:17:28 -05:00
b0f47547a5 Fixed name 2020-03-26 13:23:55 -05:00
2dcf3e6f55 Updated readme 2020-03-26 13:23:05 -05:00
cf15fb6d2a Updated MQ131 to MQ309 2020-03-26 13:20:05 -05:00
733988c5d3 Updated MQ1312 2020-03-26 13:11:30 -05:00
f8a57bbdff Added MQ-8 and MQ-9 2020-03-26 13:09:10 -05:00
fad888dca4 Updated MQ-7 2020-03-26 13:04:04 -05:00
e9e1169cc7 Fixed MQ-6 2020-03-26 12:51:02 -05:00
50342b0bc6 Updated MQ-5 2020-03-26 12:41:20 -05:00
1311d9446d Updated examples to MQ-4 2020-03-26 12:37:12 -05:00
3b578869ad Added gas and A, B values 2020-03-26 12:30:16 -05:00
b4be0e4175 Updated MQ-2 Example 2020-03-26 12:27:02 -05:00
ad69c46d87 Added space | stetic details 2020-03-26 12:19:36 -05:00
7e497b0833 Fixed comments 2020-03-26 11:59:34 -05:00
973e2dbb84 Fixed error 2020-03-26 11:54:55 -05:00
3ae663163b Fixed example 2020-03-26 11:54:18 -05:00
1177d5827d Updated MQ-3 example 2020-03-26 11:40:06 -05:00
532a83e186 Fixed example 2020-03-26 11:39:50 -05:00
d79a303ce9 Added ohm sign on debug serial 2020-03-26 11:24:39 -05:00
1b351f9495 Fixed overflow 2020-03-26 11:17:46 -05:00
abac48da38 Fixed voltage calculation 2020-03-26 11:08:53 -05:00
12695e75a6 Added debug on MQ-3 2020-03-26 10:56:52 -05:00
aa11343a97 Fixed mq-3 example 2020-03-26 10:23:51 -05:00
a03ceab3dc Updated method name 2020-03-26 10:12:04 -05:00
7cec5bbb77 Removed old prints 2020-03-26 10:09:36 -05:00
b6b36edb9d Removed unused code and added serial debug 2020-03-26 09:56:29 -05:00
fae50dc388 Removed macros 2020-03-26 09:03:40 -05:00
2708a4c22b Translated tbl 2020-03-25 22:22:48 -05:00
fe3925631f Translated headers 2020-03-25 22:21:22 -05:00
859b6ad37f Added docs folder to save temporal work in progress 2020-03-25 21:57:41 -05:00
d686f17299 Update README.md 2019-12-09 07:22:12 -05:00
627c17b228 Added user manual 2019-12-09 07:21:52 -05:00
193 changed files with 2297 additions and 115168 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +0,0 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 46 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 56 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 56 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 68 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 50 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 51 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 53 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 48 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 52 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 71 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 80 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 43 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 49 KiB

View File

@ -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
![Arduino_Wiring_MQSensor](https://raw.githubusercontent.com/miguel5612/MQSensorsLib_Docs/master/static/img/MQ_Arduino.PNG)
### ESP8266
![ESP8266_Wiring_MQSensor](https://raw.githubusercontent.com/miguel5612/MQSensorsLib_Docs/master/static/img/MQ_ESP8266.PNG)
### 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

View File

@ -1,5 +0,0 @@
4.957713628975931; 5.970352865838375
9.82303087255475; 3.890451449942809
19.66936860744601; 2.365919697485761
49.50200098710442; 0.9908319448927686
99.17887133636847; 0.49659232145033677
1 4.957713628975931 5.970352865838375
2 9.82303087255475 3.890451449942809
3 19.66936860744601 2.365919697485761
4 49.50200098710442 0.9908319448927686
5 99.17887133636847 0.49659232145033677

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

View File

@ -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.004690736196025 8.090958991783829
2 9.81247228520288 5.571857489319305
3 19.63847609606165 3.9994474976109777
4 49.85956704514034 2.8313919957993816
5 98.7613064604988 2.032357010936224

View File

@ -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 5.015052099488824 4.055085354483843
2 9.839297042431014 2.2387211385683425
3 19.708460197689764 1.2189895989248674
4 50.120105449151986 0.49659232145033727
5 99.34721307419954 0.2818382931264458

View File

@ -1,3 +0,0 @@
10.038068731719024; 1.4367778871086752
100.76282386271518; 0.7437057711666111
199.67791490816478; 0.5858066785834567
1 10.038068731719024 1.4367778871086752
2 100.76282386271518 0.7437057711666111
3 199.67791490816478 0.5858066785834567

View File

@ -1,3 +0,0 @@
10; 1.8980643862295867
100.76282386271518; 0.9276207214357883
199.67791490816478; 0.7371610501169261
1 10 1.8980643862295867
2 100.76282386271518 0.9276207214357883
3 199.67791490816478 0.7371610501169261

View File

@ -1,3 +0,0 @@
9.92429510870452; 2.850325339883499
100.76282386271518; 1.5488850711364055
199.67791490816478; 1.3446177759671738
1 9.92429510870452 2.850325339883499
2 100.76282386271518 1.5488850711364055
3 199.67791490816478 1.3446177759671738

View File

@ -1,3 +0,0 @@
10; 2.3054935712377356
100.76282386271518; 1.049816136090719
198.16625542394166; 0.8052859018667691
1 10 2.3054935712377356
2 100.76282386271518 1.049816136090719
3 198.16625542394166 0.8052859018667691

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

View File

@ -1,3 +0,0 @@
10; 2.563475521052897
100.38068731719024; 1
199.67791490816478; 0.7670732751979543
1 10 2.563475521052897
2 100.38068731719024 1
3 199.67791490816478 0.7670732751979543

View File

@ -1,3 +0,0 @@
10; 1.5420548019516276
100.38068731719024; 0.8017347542813508
199.67791490816478; 0.6427786162225773
1 10 1.5420548019516276
2 100.38068731719024 0.8017347542813508
3 199.67791490816478 0.6427786162225773

View File

@ -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 202 97159045689085; 2 870821251841819
2 493 62843297110385; 2 120486081991352
3 789 3018264543583; 1 722949305824931
4 1013 5564768245204; 1 628558370192401
5 1483 4109724050659; 1 4241031945513674
6 2002 568136043121; 1 2616407836292618
7 3045 8553406742876; 1 09372808300933
8 4983 9913111605565; 0 8886628824162796
9 10116 086432495827; 0 6593474448589979

View File

@ -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 200 6424043638923; 3 0628594206904824
2 493 62843297110385; 2 262307524341795
3 795 3985507023424; 1 9027463399615197
4 1021 3853885815306; 1 760109364516406
5 1466 3881949840988; 1 512822440016997
6 2010 2873757128875; 1 3635579819828156
7 3022 508881097584; 1 1618613226754184
8 4945 78905312065; 0 9359079659557669
9 10155 080609166793; 0 7034431020028873

View File

@ -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 202 97159045689085; 5 230578600305607
2 491 73296457790207; 4 06886745979215
3 810 8471866516105; 3 4816976949280916
4 994 2457296427418; 3 220835982615804
5 1483 4109724050659; 2 8043001628397395
6 2025 8152351174235; 2 505895099093425
7 3045 8553406742876; 2 2293985477843727
8 4983 9913111605565; 1 84294785992263
9 10272 967317129345; 1 4525325413623644

View File

@ -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 199 87196386572526; 2 0769753765580705
2 495 5312077697903; 1 3831422575910868
3 792 3443246647935; 1 1093808898233806
4 998 0782190045875; 1 004327136273875
5 1477 714868970752; 0 8303118686874813
6 2033 6240846866745; 0 7167722606428578
7 2976 351441631319; 0 5951498799327694
8 4907 879615117585; 0 46313409452053067
9 10038 546701761785; 0 33483775607304667

View File

@ -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
1 197 57834731787014; 1 5893603059497052
2 497 4413171377462; 1 081492898685633
3 798 4645497739094; 0 8636972212632283
4 1005 7875736205846; 0 7785412443059092
5 1455 1483398731953; 0 6691551077105506
6 1964 4142809066307; 0 5776630257056471
7 2964 922642745657; 0 4673698778126437
8 4907 879615117585; 0 3636968635962981
9 9961 601312513694; 0 2562263980512121

Some files were not shown because too many files have changed in this diff Show More