Giter Club home page Giter Club logo

dfrobot_mics's Introduction

DFRobot_MICS

DFRobot's MICS

![]

DFRobot_MICS


DFRobot_MICS

SKU:SEN0377 SEN0440 SEN0441

rouge

Table of Contents

Summary

Installation

To use this library download the zip file, uncompress it to a folder named DFRobot_MICS. Download the zip file first to use this library and uncompress it to a folder named DFRobot_MICS.

Methods

  /*!
   *  @brief Waiting time for warm-up
   *  @param minute Units of minutes
   *  @return true  is warm-up success
   *          false is wait warm-up
   */
  bool warmUpTime(uint8_t minute);

  /*!
   *  @brief Read sensor ADC data
   *  @param mode:
   *           OX_MODE
   *           RED_MODE
   *  @return adcValue (0-1024)
   */
  int16_t getADCData(uint8_t mode);

  /**!
   *  @brief Read the concentration of the gas
   *  @param type:
   *    Methane          (CH4)    (1000 - 25000)PPM
   *    Ethanol          (C2H5OH) (10   - 500)PPM
   *    Hydrogen         (H2)     (1    - 1000)PPM
   *    Ammonia          (NH3)    (1    - 500)PPM
   *    Carbon Monoxide  (CO)     (1    - 1000)PPM
   *    Nitrogen Dioxide (NO2)    (0.1  - 10)PPM
   *  @return concentration Units of PPM
   */
  float getGasData(uint8_t type);

  /**!
   *  @brief Read whether the gas is present
   *  @param gas:
   *    CO       = 0x01  (Carbon Monoxide)
   *    CH4      = 0x02  (Methane)
   *    C2H5OH   = 0x03  (Ethanol)
   *    C3H8     = 0x04  (Propane)
   *    C4H10    = 0x05  (Iso Butane)
   *    H2       = 0x06  (Hydrogen)
   *    H2S      = 0x07  (Hydrothion)
   *    NH3      = 0x08  (Ammonia)
   *    NO       = 0x09  (Nitric Oxide)
   *    NO2      = 0x0A  (Nitrogen Dioxide)
   *  @return state
   *            NO_EXIST
   *            EXIST
   */
  int8_t getGasExist(uint8_t gas);

  /**!
   *  @brief Sleep sensor
   */
  void sleepMode(void);

  /**!
   *  @brief wakeup sensor
   */
  void wakeUpMode(void);

  /**!
   *  @brief Gets the power mode of the sensor
   *  @return mode
   *            SLEEP_MODE
   *            WAKE_UP_MODE
   */
  uint8_t getPowerState(void);

Compatibility

MCU Work Well Work Wrong Untested Remarks
Arduino uno
FireBeetle esp32
FireBeetle esp8266
FireBeetle m0
Leonardo
Microbit
Arduino MEGA2560

History

  • January 13, 2021 - Version 1.0 released.
  • April 20, 2021 - Version 1.1 released. add breakout version
  • June 18, 2021 - Version 1.2 released. add demo and Modify comments

Credits

Written by ZhixinLiu([email protected]), 2021. (Welcome to our website)

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.