Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubfi/MQ135
Micropython library for dealing with MQ135 gas sensor
https://github.com/rubfi/MQ135
Last synced: about 16 hours ago
JSON representation
Micropython library for dealing with MQ135 gas sensor
- Host: GitHub
- URL: https://github.com/rubfi/MQ135
- Owner: rubfi
- Created: 2017-09-29T14:21:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T07:42:11.000Z (about 4 years ago)
- Last Synced: 2024-08-02T20:45:00.677Z (3 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 39
- Watchers: 1
- Forks: 16
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-micropython - MQ135 - Driver for MQ135 gas sensor. (Libraries / Sensors)
- awesome-mpython - MQ135 - MQ135 烟雾传感器 (精选驱动库 / 传感器)
README
# MQ135 - Micropython
Micropython library for dealing with MQ135 gas sensorBased on the Arduino library developed by G.Krocker (Mad Frog Labs) and the corrections from balk77 and ViliusKraujutis
More info:
* https://hackaday.io/project/3475-sniffing-trinket/log/12363-mq135-arduino-library
* https://github.com/ViliusKraujutis/MQ135
* https://github.com/balk77/MQ135## Usage
You can use ampy (https://github.com/adafruit/ampy) for uploading the files to the device```
ampy put mq135_example.py
ampy put mq135.py
ampy run -n mq135_example.py
```
and then connect to the device with the serial comunication program (e.g: *minicom*) in order to see the output*Note: MQ135 sensor is connected to A0 in the example*
if you want to load the code at the device boot
```
ampy put mq135.py main.py
```
## Notes
*Tested with Micropython for the ESP8266.*