项目作者: leech001

项目描述 :
Micropython MQ9 library for ESP8266
高级语言: Python
项目地址: git://github.com/leech001/MQ9.git
创建时间: 2018-12-08T10:33:25Z
项目社区:https://github.com/leech001/MQ9

开源协议:

下载


MQ9 sensor module for ESP8266

The module is designed to work with the MQ9 sensor in the MicroPython language on ESP8266 (NodeMCU) the Sensor is connected to the analog output on the ADC (A0) ESP8266

The library is implemented on the basis of code https://github.com/tutRPi/Raspberry-Pi-Gas-Sensor-MQ

Модуль датчика MQ9 для ESP8266

Модуль предназначается для работы с датчиком MQ9 на языке MicroPython на ESP8266 (NodeMCU)
Датчик подключается аналоговым выходом на ADC (A0) ESP8266

Библиотека реализована на основе кода https://github.com/tutRPi/Raspberry-Pi-Gas-Sensor-MQ

Пример использования (Example of use)

  1. from mq9 import MQ
  2. mq = MQ()
  3. perc = mq.MQPercentage()
  4. print("LPG: %g ppm, CO: %g ppm, Smoke: %g ppm" % (perc["GAS_LPG"], perc["CO"], perc["SMOKE"]))