Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. New sketches: UV, WaterMeter for Reed sensors, Air quality ...

New sketches: UV, WaterMeter for Reed sensors, Air quality ...

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 3.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • epierreE Offline
    epierreE Offline
    epierre
    Hero Member
    wrote on last edited by epierre
    #1

    Hello,

    Lost posts, but the sketches are still here:

    https://github.com/empierre/arduino

    • MQ135.ino : for CO2/COV ... validated
    • MQ2.ino : for ethanol... still ongoing...
    • PressureSensor.ino : validated, works well, too much temp reading given back
    • SoundSensor2.ino: not yet tested
    • UVsensor.ino : validated
    • WaterMeterPulseSensor2.ino : for use with water meter that have a reed switch, validated

    Next steps:

    • validate sound sensor
    • validate mq2 sensor (I dont smoke...hart to trigger...)
    • MQ6 sensor
    • MQ131 sensor
    • TGS2600 sensor

    z-wave - Vera -> Domoticz
    rfx - Domoticz <- MyDomoAtHome <- Imperihome
    mysensors -> mysensors-gw -> Domoticz

    1 Reply Last reply
    3
    • mooM Offline
      mooM Offline
      moo
      wrote on last edited by
      #2

      Hi, I bought these MQ sensors collection from ebay and soldered them on their boards.

      Connected them this way:
      Arduino VCC ---> MQ2 VCC
      Arduino GND ---> MQ2 GND
      Arduino A0 ----> MQ2 AOUT
      not connected ---- MQ2 DOUT

      I tried AirQuality.ino, MQ2.ino, and http://sandboxelectronics.com/?p=165.
      Serial monitor outputs 0ppm on every parameter. Tried blowing cigarette smoke in MQ2 with no luck.

      MQ2 PCB SMD board has four outputs like the one on the MySensors store , and it has a pot on it. Sketch from http://sandboxelectronics.com/?p=165 after calibration outputs R0 resistance (3.65kohm). Should I tune that pot to the point when the sketch outputs ~10kohm?

      I have read on Arduino playground that MQ sensors should have burn-in period (12-24 h) to make their readings more consistent. But if there are no readings I shold not expect readings from it.

      Does someone have any advice to get this sensor reading? Cheers, Dario.

      Testing NodeJsController on Ubuntu, Linux mint, OpenWrt and Raspbian
      Experimenting with bootstrap and d3 for NodeJsController front-end

      1 Reply Last reply
      0
      • epierreE Offline
        epierreE Offline
        epierre
        Hero Member
        wrote on last edited by epierre
        #3

        Hello,

        first the pot is only for the digital output, it has no effect on the analog one.

        second, check your wiring, the analog should always report something, make sure the analog you use in the sketch is the one wired ... basic mistake... same for the 5V and ground.

        there is also a led on the board, if the board is correctly powered at some moment the led should turn up.

        z-wave - Vera -> Domoticz
        rfx - Domoticz <- MyDomoAtHome <- Imperihome
        mysensors -> mysensors-gw -> Domoticz

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        20

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular