Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fedulovivan/mhz19b
mh z19b co2 sensor client
https://github.com/fedulovivan/mhz19b
mh-z19 mh-z19b mhz-19 mhz19 mhz19b
Last synced: 22 days ago
JSON representation
mh z19b co2 sensor client
- Host: GitHub
- URL: https://github.com/fedulovivan/mhz19b
- Owner: fedulovivan
- Created: 2018-04-25T10:20:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T16:53:57.000Z (about 2 years ago)
- Last Synced: 2023-02-28T17:56:10.282Z (almost 2 years ago)
- Topics: mh-z19, mh-z19b, mhz-19, mhz19, mhz19b
- Language: JavaScript
- Homepage:
- Size: 1.2 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Summary
Test application for playing with Chineze carbon dioxide sensor MH Z19B from Aliexpress. It allows to read data from the sensor connected via serial interface, acquire PPM and temperature, persisit mentioned metrics on disk and visualize results on the chart with enabled real-time updates.
Application is written on javascript and consists of two separate modules communicating with each other:
- Sensor agent - sensor UART client which polls sensor each N seconsds and stores received amount of CO2 PPM into persistent database
- Web UI - http server which handles web UI for viewing chart with collected statistics# Screenshots
![console](https://raw.githubusercontent.com/fedulovivan/mhz19b/master/console.png)
![gui](https://raw.githubusercontent.com/fedulovivan/mhz19b/master/gui.png)# Steps to launch
- Connect sensor with serial adaptor
- Connect adaptor with the machine
- Discover serial device name in your OS
- Set actual name via UART_ADAPTER constant in constants.js
- Launch client app with `yarn mh` (or if you prefer `npm mh`)
- Launch http server with `DEBUG=* yarn server` (or `npm server`)
- Head your browser to http://localhost:8888# Requirements
- Hardware platform which may run nodejs (tested on 8.3.0)
- Sensor module itself
- USB to UART converter with support of 3.3v logical levels (does not required on platforms having build-in UART interface, like Raspberry PI)# Schematics
![Schematics](https://raw.githubusercontent.com/fedulovivan/mhz19b/master/Schematics.png)