Giter VIP home page Giter VIP logo

Comments (11)

stefanbode avatar stefanbode commented on July 20, 2024 1

For all of this MQ sensors, you do not need any code. There is a pure analog signal from 0..5V that cames out and must execute through an A/D chip. The ESP has one the A0. You can use this with a voltage divider before. Please take a look here in the Wiki. If you need more to connect use the ADS1115 board. This is natively supported by TASMOTO.

Finally: There is nothing to add :-)

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

Just saw the log and pow functions used in the calculations. We already had some discussions in the energy metering. To use this the math() library needs to be included and this will jeopardize the RAM. Sorry. This is too much for the ESP

from sonoff-tasmota.

whhsn avatar whhsn commented on July 20, 2024

I am already using now it & the WeMos handles this beautifully :)
Getting LPG, CO & Smoke readings not just a number!

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

Ok, I have added the whole sensor suite. Just now need to add some documentation how to define the sensors and do the calibration. the wiki need some update. Sensors are 5v and need a 165kOhm resistor before A0, if using the WEMOS D1 mini.

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

Hi,

There is similar code in my ino

https://github.com/stefanbode/Sonoff-Tasmota/blob/master/sonoff/xsns_94_MQ_SENSOR.ino

i did not observed any issues hangs during work because of pow() and log() functions. I have one issue in Sonoff 4ch pro. hangs when wifi disapeared, but I do not know if there is a MQ code problem, I have to test it , but I asked Stefan for some bin compilation because my platformIO is not updated yet to latest version.

but in config file there is some additional declaration needed

#define USE_MQ_SENSOR
and for voltage measure

#define USE_VOLTAGE

but both of them could not work simultaneously.

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

The bin is updated

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-4CH-and-4CH-Pro

Maybe this helps

from sonoff-tasmota.

whhsn avatar whhsn commented on July 20, 2024

@stefanbode -
I am using the sensor without any resistor with the WeMos!
I have no way to check if the collected ppm data is right or not - but it seems ok - increasing with smoke & lighter gas - this is good for my usage.

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

Hi,

I upgraded and work perfectly with my mq5 sensor no any hangs as in previous releases sonoff 4ch pro with gas sensor mq5 and DHT 23kb free memory

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

@whhsn

Hi,

You have to use resistor the voltage value you get when ppm is small is approx. below 3.3 V maximum voltage from sensor for CH4 concentration could be 4.5 V

from sonoff-tasmota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.