Commit Graph

69 Commits (46d416abad5147622276c18d0580b42cf2d7a9ae)

Author SHA1 Message Date
Miguel Angel Califa Urquiza 6376cfc11f doc: add issues summary 6 months ago
Adriano Cunha f7f2c1f3f4 Allow setting the ADC pin of a MQUnifiedsensor object.
The ADC pin can only be set when using the full/long constructor, causing the short constructor (name/type only) useless because the pin is unset.

Also default the ADC pin to 1 for consistency sake.
3 years ago
Adriano Cunha b6bff185f3 Cleanup general definitions in MQUnifiedSensor.h
ADC_RESOLUTION is unused, and retries and retry_interval are only used by getVoltage().
Thus, remove ADC_RESOLUTION and move retries and retry_interval to MQUnifiedsensor.cpp.
Furthermore, these three definitions have generic names so it's easy to have them
conflict with a user's sketch that imports MQUnifiedSensor.h.
3 years ago
PsySc0rpi0n 3368613dd7
Update MQUnifiedsensor.h 3 years ago
miguel5612 e3f5e2ec0c Added unit tests! to validate library calculations 4 years ago
miguel5612 964204706f Added correction factor for Rs/R0 (Ratio) 4 years ago
miguel5612 1f8310a6e7 Changed type of RL internally to fix bug #37 4 years ago
miguel5612 700d367d93 Fix Rs calculation for MQ303A 4 years ago
miguel5612 c934152cd7 Added MQ135-ADS1115 example and feature 4 years ago
Vincenzo Manzoni bf6d90db69
_VOLT_RESOLUTION data type changed to float
_VOLT_RESOLUTION can be either 5 or 3.3 V. However, 3.3 V cannot be stored properly in a byte data type and it requires a float data type.
4 years ago
miguel5612 688827ffb4 Fixed MQ-131 Issue 6 years ago
miguel5612 1840c75c0a Added external A2_D Support 6 years ago
miguel5612 3d1bb90e38 Changed variable types 6 years ago
miguel5612 510e8dac53 Updated regression model selection 6 years ago
miguel5612 a4ea39b2f4 Added test equation 6 years ago
miguel5612 3ae663163b Fixed example 6 years ago
miguel5612 532a83e186 Fixed example 6 years ago
miguel5612 abac48da38 Fixed voltage calculation 6 years ago
miguel5612 12695e75a6 Added debug on MQ-3 6 years ago
miguel5612 aa11343a97 Fixed mq-3 example 6 years ago
miguel5612 a03ceab3dc Updated method name 6 years ago
miguel5612 b6b36edb9d Removed unused code and added serial debug 6 years ago
miguel5612 fae50dc388 Removed macros 6 years ago
Miguel Angel Califa Urquiza b85e7520d4
Merge pull request #14 from miguel5612/develop
Value of _RLValue - Added getRL and setRL method
6 years ago
miguel califa 0f912a3c4a Value of _RLValue - Added getRL and setRL method 6 years ago
miguel5612 b2616295a3 Respect upper and down limits from datasheet indicating 0 PPM or 9999 PPM 6 years ago
aetilius cfe8ccc6ad
Correct data type for voltage resolution 6 years ago
miguel5612 9d69abbdd9 Updated analisis 6 years ago
Miguel Angel Califa Urquiza 1140a6cc13
Update MQUnifiedsensor.h 6 years ago
miguel5612 566d1eaadf Fixed some issues in examples 6 years ago
miguel5612 067ffa76eb Fixed issue reading voltaje and update MQ3 Example 6 years ago
miguel5612 8a929cff7f Updated constants 6 years ago
miguel5612 7aa387c0b4 Replaced equation y = mx+b to potential equation y=a*x^b 6 years ago
miguel5612 46f95ee15c Published parameters 6 years ago
miguel5612 02653e47db Uncomment coments because constants are needed 6 years ago
miguel5612 048e2c33f0 Added R0 values getted from Experiment 3 7 years ago
miguel5612 434e454688 Modified fctn to get voltage 7 years ago
miguel5612 74e8f045aa Yersson and miguel verification OK 7 years ago
miguel5612 b69d85d6be Fixed calibration 7 years ago
miguel5612 e848e505b0 Added serial print in calibrations 7 years ago
miguel5612 f4febca6df Memoery performance 7 years ago
miguel5612 2408b9f0bb Added print serial 7 years ago
miguel5612 d6530691aa Fixed example calibratioN 7 years ago
miguel5612 c2e4ca7164 Converted to global var _sensor_volt 7 years ago
miguel5612 33c9ae2c7c Created defautls 7 years ago
miguel5612 37db4af4bf RS/RO Ratio in clean air added success 7 years ago
miguel5612 93d8685378 Added defaults in fctn 7 years ago
miguel5612 6d1229977e fixed calibration 7 years ago
miguel5612 1924e21e61 Added comments 7 years ago
miguel5612 1a4c91528d Updated sample and code 7 years ago