Oled display with D1 mini Esp8266

From B-Wiki
Jump to navigation Jump to search


Oled display with D1 mini Esp8266

Case front facing D1 mini ESP8266 mount
Case back facing D1 mini ESP8266 mount
Case front facing oled mount
Case back facing oled mount
Case wiring the esp8266 and the oled display


Mechanical case

Thingaverse sdl files

HW wiring

D1 mini pin Oled Pin Comment
5V VCC 5V power
G GND Ground connection


Oled display dimension sheet

Software setup

Software required Link to software Description
Tasmotizer Tasmotizer github link Tasmotize releases
Tasmota Device Manager TDM github link TDM releases
Tasmota firmeware Tasmota github link Tasmota releases - choose the displays release


Full commands on Tasmota site

  1. Write the latest tasmota displays firmware <ref>How to write the tasmota firmware with Tasmotizer</ref>
  2. Configure the wifi and the mqtt server
  3. Configure the device as generic
  4. Configure the pins as in the above HW schematic
  5. Configure the SW platform by sending the following commands as mentioned in the page Tasmota configuration of displays
  • Configure the I2C adress for the oled display

<syntaxhighlight lang="text"> DisplayAddress 60 </syntaxhighlight>

  • Configure the type for the display

<syntaxhighlight lang="text"> DisplayModel 2 </syntaxhighlight>

<syntaxhighlight lang="text"> DisplayDimmer 100 </syntaxhighlight>

  • Configure the tasmota firmware to receive DisplayText commands

<syntaxhighlight lang="text"> DisplayMode 0 </syntaxhighlight>

  • Configure the display size

<syntaxhighlight lang="text"> DisplaySize 2 </syntaxhighlight>

  • Configure the number of columns and rows

<syntaxhighlight lang="text"> DisplayRows 8 DisplayCols 22 </syntaxhighlight>

  • Check that the OLED display works

<syntaxhighlight lang="text"> DisplayText [s1l1c1]Hello how are you? </syntaxhighlight>