Coder Social home page Coder Social logo

olimexino85_tinyoled4k_mh-z19b's Introduction

Olimexino-85 CO2 monitor with OLED display (MH-Z19B sensor)

Hardware list:

  • Olimexino-85BC (ATTINY85-based Digispark clone) with 5V jumper setting
  • 0.96 inch 128x64 I2C SSD1306 OLED display
  • MH-Z19B infrared CO2 sensor (0-5000PPM)

Olimexino-85 board data conections:

  • 0 - SDA OLED
  • 1 - RX MH-Z19B
  • 2 - SCL OLED
  • 4 - TX MH-Z19B

Details

This bases very heavily on https://github.com/andvolodko/digispark_oled_128x32_mh-z19b (higly recommended to check it out first and big thanks to the author) but is using the standard TinyWireM and Tiny4kOLED libraries for display instead of the custom implementation.

I had to reimplement the display part as I had noise and other artefacts on my 128x64 OLED with the above repo. Part of the solution was to change the display buffer in the TinyWireM.h library file to 30 (found the hint here):

#define USI_BUF_SIZE 30 //!< bytes in message buffer

As the libraries require more space, the display now shows just the CO2 PPM level in a centered 16x24px font and nothing else. The sketch requires 6010 out of 6012 bytes available on the Digispark clones.

The monitor can be made portable, using 3 AAA batteries (inspired by this).

olimexino85_tinyoled4k_mh-z19b's People

Contributors

sfbg avatar

Watchers

 avatar

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.