Posted on 4 Comments

#40: DIY air quality sensor, part 3 – software

You can build the Air Quality Sensor project without understanding how the software works, but if you want to know what’s really going on behind the scenes you can join me for a deep dive into the source code.

Part 1 showed how to make the simplest possible air quality sensor. Part 2 added a 128×32 pixel OLED display and a mode button.

Resources

4 thoughts on “#40: DIY air quality sensor, part 3 – software

  1. Hi Jonathan,

    Thanks for the episodes on the DIY Air Quality sensor. I’ve ordered my senors and some cases from you already and can’t wait for them to arrive.

    I was just planning on using the basic version without the screen and Tasmota.

    However your latest video you mention that the sensor life can be extended significantly by turning it off between readings and that Tasmota doesn’t do this.

    Can I modify your code to work without a screen by commenting out the renderScreen() function call from the Main Loop?

    Or do I need to make more significant edits to your code?

    Thanks for the video, the inspiratrion and the code! I learned a lot.

    Regards
    Shane

    1. I pushed a PR that should be in the latest versions of Tasmota that allow for the sensors to go to sleep.

      https://github.com/arendst/Tasmota/pull/8128

      1. Thanks Gene, I’m still waiting for the sensors to arrive.. they’re still somewhere between China and Oz.

        I’ll make sure I have the latest version when I flash the Wemos.

        Cheers,

        Shane

  2. Hi Guys,
    Just wondering if the fan should go off in the sleep period? Getting data on this unit is tricky..
    I’ve not tried it yet, but does setting pin 6 (Reset) to 0V stop the fan?
    Regards,
    Mark

Leave a Reply

Your email address will not be published. Required fields are marked *