Two OLED SSD1306 on one ESP8266

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Two OLED SSD1306 on one ESP8266

#1 Post by themanfrommoon » 24 May 2017, 21:55

Hi,

I wanted to use two OLED SSD1306 Display on one ESP8266 with ESPEasy.

For me, I thought this must easily work.
But it does not.

On one OLED Display I changed the adress by soldering on the PCB.
I think this works fine.
When I start the I2C scanner I got following results:

I2C Addresses in use: Supported devices:
----------------------------------------------------------
0x3c PCF8574A OLED
----------------------------------------------------------
0x3d PCF8574A OLED

Then I configurated the two devices and choosed the adresses "3C" for the first display and "3D" for the second display.
I choosed a delay of 10 seconds.

And now the strange thing comes:
One display works fine, but the second display changes between the content of the first display and the second display.
The problem occurs on the display which parameters were changed at last.

I tested it on ESPEasy R147 and ESPEasy_v2.0.0-dev8_normal_4096. The result is: same behavior.
Maybe there is something wrong with my configuration or hardware, or there is a softwarebug.
The problem occurs when using "Display - OLED SSD1306".
The same problem If I use "Display - OLED SSD1306 Framed".

Does anybody else use two OLED displays?

Thanks and best regards,
Chris

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: Two OLED SSD1306 on one ESP8266

#2 Post by krikk » 24 May 2017, 22:35

pretty sure that's it a software bug... i only have tested it with one display (have only this one) :) ...if you have the know how, have a look at the code and try to fix it...

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Two OLED SSD1306 on one ESP8266

#3 Post by themanfrommoon » 27 May 2017, 21:50

Hi,

thanks for your answer.
I hoped that the developers of ESPEasy are also reading here, do they?
Maybe they can fix it easily.
I'm not very used to do the programming and debugging.

Maybe some can fix it?

Thanks and best regards,
Chris

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Two OLED SSD1306 on one ESP8266

#4 Post by costo » 31 May 2017, 17:21

I made a setup with a 0.96OLED on adress 3D and a 1.3 OLED on 3C.
I can confirm that ESPEasy cannot work with 2 OLED´s at the same time.
Both displays show exactly the same content.

I did not look in the source of the OLED software but I assume that it was designed this way to work with only one OLED plugin at the same time to preserve the ´precious´ RAM memory.


I also tested a OLED and a LCD together but that presented no problems.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Two OLED SSD1306 on one ESP8266

#5 Post by Shardan » 31 May 2017, 19:16

Hello all,

i can confirm that a similliar issue exists with the LCD displays too.
I connected two LCD 2004 displays with different adresses.
Only one works, the other one does not even show the "ESPEasy" message on bootup.
Seems that the system variables i used are shown quickly one after the other so
only the second one is visible at the end.

If i disable one display the other one works fine.

(Tested with 2.0.0-Dev9 and R148).

Regards
Shardan
Regards
Shardan

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: Two OLED SSD1306 on one ESP8266

#6 Post by krikk » 31 May 2017, 22:14

i will have a look at this issue as soon as my second oled display arrived (friday)

User avatar
Binder
Normal user
Posts: 10
Joined: 06 Jan 2017, 13:17
Location: Germany

Re: Two OLED SSD1306 on one ESP8266

#7 Post by Binder » 05 Jun 2017, 14:07

Hi, I'm not a source code writer, just a reader.
As far as I can see in the code it does not differ between the two instances of this plugin.

A http-command to change something directly, would look like this:

http://<ESP IP address>/control?cmd=oled,<row>,<col>,<text>

(found here: https://www.letscontrolit.com/wiki/inde ... LEDDisplay )

How should the command-line differ between the displays? You don't talk to a specific display here.
I would create a second plugin and rename everything that looks like oled to oled2 (or whatever you want). Just a guess.

regards
Binder

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Two OLED SSD1306 on one ESP8266

#8 Post by themanfrommoon » 12 Jun 2017, 21:39

Hello krikk,
krikk wrote: 31 May 2017, 22:14 i will have a look at this issue as soon as my second oled display arrived (friday)
Did you get your second OLED Display?

Do you have the same behaviour?

Thanks and best regards,
Chris

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: Two OLED SSD1306 on one ESP8266

#9 Post by krikk » 14 Jun 2017, 21:04

i got my second display and did some testing... it's a software problem which i can reproduce, but i did not have the time to fix it until now...

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Two OLED SSD1306 on one ESP8266

#10 Post by Shardan » 14 Jun 2017, 21:16

As far as I understand the source code of the plugin it will not be too easy to change....
(Well, my programming times are over for decades so I don't understand too much of it :oops: )

Anyways it would be nice to be able to use more then one display.

Regards
Shardan
Last edited by Shardan on 14 Jun 2017, 22:14, edited 1 time in total.
Regards
Shardan

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Two OLED SSD1306 on one ESP8266

#11 Post by themanfrommoon » 14 Jun 2017, 21:39

Okay, understand.

So how is the procedure?
Should somebody start an issue and/or a pull request on github? (I have no idea what is correct and how to do this exactly)

Who can fix it?

Thanks and best regards,
Chris

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: Two OLED SSD1306 on one ESP8266

#12 Post by krikk » 14 Jun 2017, 22:26

i have a simple quick fix, which makes 2 displays work, but that fix has the side effect that the screen goes black for a second, every time the screen refreshes... i am not sure if i will pull this, because it better would be a complete rewrite based on the same library which is uses for the framedOLED display..

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: Two OLED SSD1306 on one ESP8266

#13 Post by krikk » 15 Jun 2017, 09:52

if you are able to compile youself you can fetch my draft from my github fork: https://github.com/krikk/ESPEasy ...this one works with 2 oled displays, only thing broken is the oled commands...

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Two OLED SSD1306 on one ESP8266

#14 Post by Shardan » 15 Jun 2017, 13:01

krikk wrote: 14 Jun 2017, 22:26 i have a simple quick fix, which makes 2 displays work, but that fix has the side effect that the screen goes black for a second, every time the screen refreshes... i am not sure if i will pull this, because it better would be a complete rewrite based on the same library which is uses for the framedOLED display..
+1 for that

It's better to re-develop the display plugins based on one library.
Last edited by Shardan on 15 Jun 2017, 13:47, edited 1 time in total.
Regards
Shardan

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Two OLED SSD1306 on one ESP8266

#15 Post by themanfrommoon » 15 Jun 2017, 13:24

+1

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Two OLED SSD1306 on one ESP8266

#16 Post by Shardan » 16 Oct 2017, 19:38

Anything new with this issue?

I still want to use more then one display..... :oops:
Regards
Shardan

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Two OLED SSD1306 on one ESP8266

#17 Post by themanfrommoon » 16 Oct 2017, 21:32

I'm also waiting for it :?

ao16
Normal user
Posts: 19
Joined: 03 Oct 2018, 23:51

Re: Two OLED SSD1306 on one ESP8266

#18 Post by ao16 » 01 Dec 2018, 01:27

Any news on this?

Here having exactly the same issue as Shardan described at viewtopic.php?p=16423#p16423.
Two LCD2004 via I2C and different adresses, just one works.

How to differentiate between both LCD's through the LCD-command?

regards,

ao16

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Two OLED SSD1306 on one ESP8266

#19 Post by grovkillen » 01 Dec 2018, 08:21

We're working super hard for a stable and focus 100% on core issues and don't want to introduce new features until then. A stable is out very soon.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

ao16
Normal user
Posts: 19
Joined: 03 Oct 2018, 23:51

Re: Two OLED SSD1306 on one ESP8266

#20 Post by ao16 » 01 Dec 2018, 20:02

Thanks for this info and promising outlook, grovkillen

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: Two OLED SSD1306 on one ESP8266

#21 Post by budman1758 » 01 Dec 2018, 23:22

You can use a workaround. If you use the "framed" OLED and a regular OLED at the same time that works fine. As long a they are on different I2C addresses then it works no problem. Have a couple units doing it for some time now.
"The glass is twice as big as it needs to be".

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests