Skip to content

skyostil/mittarimato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mittarimato

Photo of the display

This is a little distance display built with an ESP8266, a time-of-flight sensor and an RGB OLED screen. I'm using it to display the height of my standing desk.

Demo video:

mittarimato.mp4

Hardware

Photo of the enclosure

Wiring diagram:

Wiring diagram

Software

The main pieces of the software are:

  • distance_sensor.cc: Sensor driver, which provides the distance measurement.
  • rainbow_fx.cc: Palette-based graphics effects and 2x antialised text rendering.
  • display.cc: SPI display driver.
  • main.cc: Main measurement and rendering loop.

On my hardware, the animation updates at about 50 fps.

First, install the ESP8266 SDK. Update the env file with the path to your SDK installation.

After that, you can build and flash the program like this:

$ . ./env
$ cmake -B build
$ ninja -C build flash
$ ./monitor

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages