empierre / arduino-mysensors-contribs

arduino scripts for MySensors IoT
http://www.mysensors.org
190 stars 115 forks source link

mq2 curve value #29

Closed JAYON17 closed 6 years ago

JAYON17 commented 6 years ago

Hi may i know how to get these value? float COCurve[2] = {37793.94418, -3.24294658}; //MQ2 float H2Curve[2] = {957.1355042, -2.07442628}; //MQ2 float LPGCurve[2] = {591.6128784, -1.679699732}; //MQ2 float SmokeCurve[2] = {3426.376355, -2.225037973}; //MQ2

empierre commented 6 years ago

please see calculation method on: https://forum.mysensors.org/topic/147/air-quality-sensor

on this one: https://github.com/empierre/arduino/blob/master/AirQuality-Multiple_Gas_Sensor1_4.ino

I've written the datasheet link and the curve values

JAYON17 commented 6 years ago

Alright i got it, beside can you tell me how do you get these 2 value ? float Ro0 = 4.300; //MQ2 3.83 this has to be tuned 10K Ohm , float RL0 = 2.897; //MQ2 Elecfreacks Octopus

On Wed, May 23, 2018 at 4:40 PM, Emmanuel notifications@github.com wrote:

please see calculation method on: https://forum.mysensors.org/topic/147/air-quality-sensor

on this one: https://github.com/empierre/arduino/blob/master/AirQuality-Multiple_Gas_ Sensor1_4.ino

I've written the datasheet link and the curve values

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/empierre/arduino/issues/29#issuecomment-391268076, or mute the thread https://github.com/notifications/unsubscribe-auth/AlsX-Dv5YiHQMH6oc-PpC9dqpnlPmgEMks5t1SBsgaJpZM4UJ84_ .

empierre commented 6 years ago

values are to be adapted through an initial calibration, if you know gas concentration they you can guess the resistive value to apply