Cannot enable SSD1306 LCD in Task Settings

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JosD
New user
Posts: 7
Joined: 13 Aug 2024, 10:26

Cannot enable SSD1306 LCD in Task Settings

#1 Post by JosD » 11 Sep 2024, 13:44

I'm running a esp8266 with 4M and SSD1306 LCD integrated on software mega-20240822.

I'm not able to enable the LCD in the Devices TAB/Task setting. When I select enable and press "Submit" the page is reloaded with enabled selection set to disabled. This is the case for both Devices SSD1306 and SSD1306 Framed. The same behaviour can be observed with a MAX ESP32-S3 and a NodeMCU with ESP8266.

What am I doing wrong here ?

I want to use the LCD to display data from my Deepsleep Espeasy temp sensors.

Can anyone help me with the problem ?

Thanks in advance.

Jos
The Netherlands
Attachments
When I select enable and press 'Submit" the selection is made undone when reloaded
When I select enable and press 'Submit" the selection is made undone when reloaded
Enable on SDD1306 Framed does not stick.png (8.58 KiB) Viewed 786 times
When I select enable and press 'Submit" the selection is made undone when reloaded
When I select enable and press 'Submit" the selection is made undone when reloaded
Enable on SDD1306 does not stick.png (9 KiB) Viewed 786 times
ESP8266 with integrated SSD1306 LCD
ESP8266 with integrated SSD1306 LCD
8266 with LCD SSD1306.jpg (102.83 KiB) Viewed 786 times
Last edited by JosD on 12 Sep 2024, 11:18, edited 1 time in total.

User avatar
Ath
Normal user
Posts: 3862
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Cannot enable SSD1306 LCD in Task Settings

#2 Post by Ath » 11 Sep 2024, 14:22

Most likely your I2C configuration isn't correct, maybe the SDA and SCL pins are swapped or configured incorrectly? I assume the I2C scan (Tools page) doesn't list the display either?
/Ton (PayPal.me)

JosD
New user
Posts: 7
Joined: 13 Aug 2024, 10:26

Re: Cannot enable SSD1306 LCD in Task Settings

#3 Post by JosD » 11 Sep 2024, 14:51

Because this is an integrated module with OLED on the board, I checked the pinout with the manufacture https://heltec.org/project/wifi-kit-8/ and it is the standaard setup GPIO-4 SDA and GPIO-5 SLA. But it does not show up in the I2C scan, I suppose the OLED is broken. I have to get a new board.

Thanks for support.
Attachments
Nothing found
Nothing found
Nothing found.png (12.57 KiB) Viewed 778 times
pinout
pinout
module.png (335.82 KiB) Viewed 779 times

TD-er
Core team member
Posts: 9153
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Cannot enable SSD1306 LCD in Task Settings

#4 Post by TD-er » 11 Sep 2024, 15:36

Those boards with integrated OLED sometimes need to have some reset pin configured.
And since ESPEasy by default does have "Check I2C devices when enabled" checked (tools->Advanced page), it will not allow you to keep the task enabled if the device cannot be found via I2C scan.

You should test if GPIO-16 of your board needs to be pulled up or down before the display can be used.

Simple test is to set the pin via the command line field on the tools page and then see if it can be found via I2C scan

Code: Select all

gpio,16,1
Or change the last argument to 0.

If this does help, then you can set the OLED_RST pin via rules or on the Hardware tab as GPIO boot state.

Remember to uncheck "Check I2C devices when enabled" on the tools->Advanced page if you can't get it to work after reboot even with GPIO-16 set on the Hardware tab.

JosD
New user
Posts: 7
Joined: 13 Aug 2024, 10:26

Re: Cannot enable SSD1306 LCD in Task Settings

#5 Post by JosD » 12 Sep 2024, 13:54

Thanks TD-er !

Your info has helped me to make the OLED screen work great !

I now have my project complete. 5 tempssensors in deepsleep send data via P2Pnetwerking to the OLED NodeMCU, which shows all temp data and it is also sended to Domoticz for historical information.

I had to set RST pin OLED (GPIO16) to HIGH in tab HARDWARE -> GPIO boot state

Hopefully other EspEasy user can also use this info when they run into the same problems.

Keep up the good work !!
Attachments
Working LCD/OLED screen !!!!
Working LCD/OLED screen !!!!
working LCD !!.jpg (83.48 KiB) Viewed 709 times
Boot state GPIO16 must be set HIGH
Boot state GPIO16 must be set HIGH
output at boot GPIO16.png (4.44 KiB) Viewed 709 times

User avatar
Ath
Normal user
Posts: 3862
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Cannot enable SSD1306 LCD in Task Settings

#6 Post by Ath » 12 Sep 2024, 14:07

Great, thanks for the feedback! :)
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests