Skip to content

tahvoLXIX/simple_hsl_esp8266

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple HSL bus-information display using MicroPython on esp32/8266

Inspired the work of @stetro.

requirements

  • SSD1306 based oled display
  • ESP32/ESP8266 microcontroller
  • python
  • micropython firmware

installation & configuration

Clone the repository. Insert ssid / wpa-key information into config.py. Set correct I2C settings (pins) for OLED_I2C in config.py.

STOP_ID in config.py is currently pointing at a stop in Kamppi, Helsinki. Change it as appropriate.

Setup a python virtualenv and install esptool and adafruit-ampy into it.

Download MicroPython firmware from here and install the firmware using esptool, as per instructions on the MicroPython site.

Copy the python files from this repo to the microcontroller using ampy. The order is somewhat significant, the following order should work (change the /dev/ttyUSB0 device to whatever you have):

ampy -p /dev/ttyUSB0 config.py
ampy -p /dev/ttyUSB0 utils.py
ampy -p /dev/ttyUSB0 qry.py
ampy -p /dev/ttyUSB0 time_utils.py
ampy -p /dev/ttyUSB0 ssd1306.py
ampy -p /dev/ttyUSB0 boot.py

About

simple_hsl_esp8266

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages