Oled display with D1 mini Esp8266: Difference between revisions

From B-Wiki
Jump to navigation Jump to search
mNo edit summary
 
(22 intermediate revisions by the same user not shown)
Line 16: Line 16:


== Specifications ==
== Specifications ==
=== Mechanical case ===
[https://www.thingiverse.com/thing:4080118 Thingaverse sdl files]


* Hardware Specifications Description
=== HW wiring ===
* Chipset ESPRESSIF-ESP32 240MHz Xtensa® dual-core 32-bit LX6 microprocessor
{| class="wikitable"
* FLASH QSPI flash 4MB
|-
* SRAM 520 kB SRAM
! D1 mini pin !! Oled Pin !! Comment
* Button Reset
|-
* USB to TTL CP2104
| D1 || SCL || SCL
* Interface UART, SPI, SDIO, I2C, LED PWM, TV PWM, I2S, IRGPIO,ADC, capacitor touch sensor, DACLNA pre-amplifier
|-
* Display IPS ST7789V 1.14 Inch
| D2 || SDA || SDA
* Working voltage 2.7V-4.2V
|-
* Working current About 60MA
| 5V || VCC || 5V power
* Sleep current About 120uA
|-
* Working temperature range -40C~+85°C
| G || GND || Ground connection
* Size & Weight 51.52 x 25.04 x 8.54mm(7.81g)
|}
* Power Supply Description
=== Dimensions ===
* Power Supply USB 5V/1A
* Charging current 500mA
* Battery 3.7V lithium battery
* JST Connector 2Pin 1.25mm
* USB Type-C
* Wi-Fi Description
* Standard FCC/CE-RED/IC/TELEC/KCC/SRRC/NCC
* Protocol 802.11 b/g/n (802.11n, speed up to 150Mbps) A-MPDU and A-MSDU polymerization, support 0.4us Protection interval
* Frequency range 2.4GH2~2.5GHz(2400M-2483.5M)
* Transmit Power 22dBm
* Communication distance 300m
* Bluetooth Description
* Protocol Support bluetooth V4.2BR/EDR and BLE standard
* Radio frequency With -97dBm sensitivity NZIF receiver Class-1, Cl ass-2 & Class-3 emitter AFH
* Audio frequency CVSD&SBC audio frequency
* Software Description
* Wi-Fi Mode Station/SoftAP/SoftAP+Station/P2P
* Security mechanism WPA/WPA2/WPA2-Enterprise/WPS
* Encryption Type AES/RSA/ECC/SHA
* Firmware upgrade UART download/OTA (Through network/host to download and write firmware)
* Software Development Support cloud server development/SDK for user firmware development
* Networking protocol IPv4, IPv6, SSL, TCP/UDP/HTTP/FTP/MQTT
* User Configuration AT + Instruction set, cloud server, android/iOSapp
* OS FreeRTOS
Package includes:


1 x Development board with pins
[[File:Oled-display-dimensions.png|600px|caption|Oled display dimension sheet]]
1 x Battery cable


== Software setup ==
== Software setup ==
{| class="wikitable"
|-
! Software required !! Link to software !! Description
|-
| Tasmotizer|| [https://github.com/tasmota/tasmotizer Tasmotizer github link] || [https://github.com/tasmota/tasmotizer/releases Tasmotize releases]
|-
| Tasmota Device Manager|| [https://github.com/arendst/Tasmota/wiki/Tasmota-Device-Manager TDM github link] || [https://github.com/jziolkowski/tdm/releases TDM releases]
|-
| Tasmota firmeware || [https://github.com/arendst/Tasmota Tasmota github link]|| [https://github.com/arendst/Tasmota/releases Tasmota releases - choose the displays release]
|}


<pre class="prettyprint">
=== Steps ===
; platformio.ini PlatformIO Project Configuration File
;
;  Build options: build flags, source filter
;  Upload options: custom upload port, speed and extra flags
;  Library options: dependencies, extra library storages
;  Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html


[env:esp32dev]
Full commands on [https://tasmota.github.io/docs/Commands/#displays Tasmota site]
platform = espressif32
board = esp32dev
framework = arduino


lib_deps = TFT_eSPI, Button2
# Write the latest tasmota displays firmware <ref>[[How to write the tasmota firmware with Tasmotizer]]</ref>
# Configure the wifi and the mqtt server
# Configure the device as generic
# Configure the pins as in the above HW schematic
# Configure the SW platform by sending the following commands as mentioned in the page [https://github.com/arendst/Tasmota/wiki/Displays Tasmota configuration of displays]


monitor_speed = 115200
* Configure the I2C adress for the oled display
<syntaxhighlight lang="text">
DisplayAddress 60
</syntaxhighlight>


</pre>
* Configure the type for the display
<syntaxhighlight lang="text">
DisplayModel 2
</syntaxhighlight>


Image converter tool
* Configure the dimming to be always on [https://github.com/arendst/Tasmota/wiki/Commands#displays Tasmota display commands]
<pre class="prettyprint">
<syntaxhighlight lang="text">
https://sourceforge.net/projects/lcd-image-converter/files/latest/download
DisplayDimmer 100
</pre>
</syntaxhighlight>


Modify files in according to the instructions
* Configure the tasmota firmware to receive DisplayText commands
<pre class="prettyprint">
<syntaxhighlight lang="text">
C:\Users\<User>\.platformio\lib\TFT_eSPI_ID1559\User_Setups
DisplayMode 0
</pre>
</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>

Latest revision as of 11:24, 1 June 2020

Features

Oled display with D1 mini Esp8266

https://bogza.ro/index.php/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


Specifications

Mechanical case

Thingaverse sdl files

HW wiring

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

Dimensions

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

Steps

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>