Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Siddharth Velappan
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Siddharth Velappan

    @Siddharth Velappan

    0
    Reputation
    1
    Posts
    244
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Siddharth Velappan Follow

    Best posts made by Siddharth Velappan

    This user hasn't posted anything yet.

    Latest posts made by Siddharth Velappan

    • MH Z19b - Running CO2 sensor on batteries

      I'm trying to run the MH Z19b CO2 sensors interfaced by a PIC microcontroller, powered by 3.6V batteries.
      I would like to get the most out of the battery life. So, I have used a transistor and a GPIO pin from PIC to control the power supply to the CO2 sensor programmatically.

      Please find below, the pseudo code of the programming logic I had used to take CO2 measurements from the MH Z19b sensor. I would like to know if this logic will provide me valid measurements. I am trying to measure the CO2 concentration once in every 15 minutes.

      start_PIC();
      while(true) {
          MHZ19_power_on();
          PIC_sleep(120 seconds);
          /** Till 120 seconds, CO2 sensor was giving 400ppm and only after that I started getting realtime values **/
          MHZ19_get_CO2_concentration_value();
          MHZ19_power_off();
          PIC_sleep(900 seconds);
      }
      
      posted in Hardware
      Siddharth Velappan
      Siddharth Velappan