QR Code on OLED

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
wiredcharlie
Normal user
Posts: 57
Joined: 28 Sep 2020, 13:58

QR Code on OLED

#1 Post by wiredcharlie » 27 Aug 2022, 12:45

I have made a heater controller for an Espresso machine. I have an OLED display and a web interface (dashboard) to set the temperature. My idea is to use the ESP in Access Point mode and show the QR code for the AP on start up. Then, ideally the dashboard would be the default web page.

Tall order, I know. Is it possible?

Thanks

Tony

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

Re: QR Code on OLED

#2 Post by TD-er » 27 Aug 2022, 13:05

Not yet, but I guess it would be a nice feature to setup a "captive portal" which will redirect to the dashboard when available.
There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured.
So I guess we can add a checkbox to redirect to /dashboard.esp when it is available.

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

Re: QR Code on OLED

#3 Post by Ath » 27 Aug 2022, 13:13

The currently supported OLed displays (P023 and P036) don't have support for displaying user-defined graphics.
I have planned to create a plugin for the SSD1306/SH1106 displays that uses the AdafruitGFX Helper, already in use for P095 (TFT), P096 (ePaper), P116 (TFT) and P131 (NeoPixel matrix), that can display BMP graphics files (for a predefined QR code stored on the Flash filesystem), but also you can draw the QR code using rules (that will be a tedious job though :o), but haven't started work on that yet.

You must also take in account that 128x64 pixels is rather small for a QR code (that is supposed to be square, so effectively 64x64 pixels) and also the largest OLed I've seen is 1.3" diagonal, it will be a challenge to get that working.
/Ton (PayPal.me)

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

Re: QR Code on OLED

#4 Post by Ath » 27 Aug 2022, 13:15

The dashboard.esp portal can fetch the QR code from an external source, of course, the presentation is then left to the users' web browser.
/Ton (PayPal.me)

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

Re: QR Code on OLED

#5 Post by TD-er » 27 Aug 2022, 14:19

Technically the QR code of how to access the access point could be fixed and then it is possible to....
Well it does require quite some tech knowledge and requires a lot of experience in handling...
But it should be possible to create a QR online using one of the many online generators and then print it. Then stick this print on the device.

I know it is a bit hard-core, but it should be doable...

wiredcharlie
Normal user
Posts: 57
Joined: 28 Sep 2020, 13:58

Re: QR Code on OLED

#6 Post by wiredcharlie » 27 Aug 2022, 14:34

There are examples on Youtube of QR code reading from 1.3" OLED - so that bit is viable. And my own experiments with small QR codes on a laptop screen give me some confidence.
you can draw the QR code using rules
- how can I do this? I have a 1.3" SH1106.

There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured.
So I guess we can add a checkbox to redirect to /dashboard.esp when it is available.
That sounds like a really useful feature!

Thanks

Tony

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

Re: QR Code on OLED

#7 Post by Ath » 27 Aug 2022, 14:37

wiredcharlie wrote: 27 Aug 2022, 14:34
you can draw the QR code using rules
- how can I do this? I have a 1.3" SH1106.
That requires that I create that plugin P136 for this display type, using AdafruitGFX helper... that doesn't exist yet :)
/Ton (PayPal.me)

wiredcharlie
Normal user
Posts: 57
Joined: 28 Sep 2020, 13:58

Re: QR Code on OLED

#8 Post by wiredcharlie » 27 Aug 2022, 17:47

IMG_2165.jpg
IMG_2165.jpg (20.24 KiB) Viewed 3353 times
Just one further thought. If the splash screen was customisable with a file and a settable time, that would do the trick!

But, no pressure. :)

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

Re: QR Code on OLED

#9 Post by Ath » 27 Aug 2022, 18:41

That bitmap is fixed in the code :lol:
/Ton (PayPal.me)

wiredcharlie
Normal user
Posts: 57
Joined: 28 Sep 2020, 13:58

Re: QR Code on OLED

#10 Post by wiredcharlie » 27 Aug 2022, 21:00

Yes it is. But what if then flashed up an optional bitmap for an optional period of time? Eh?

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

Re: QR Code on OLED

#11 Post by Ath » 27 Aug 2022, 21:36

I'll create P136 in a bit (or 2)
/Ton (PayPal.me)

wiredcharlie
Normal user
Posts: 57
Joined: 28 Sep 2020, 13:58

Re: QR Code on OLED

#12 Post by wiredcharlie » 01 Jul 2023, 12:38

TD-er wrote: 27 Aug 2022, 13:05 Not yet, but I guess it would be a nice feature to setup a "captive portal" which will redirect to the dashboard when available.
There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured.
So I guess we can add a checkbox to redirect to /dashboard.esp when it is available.
I'm still keen on this - is it likely to happen - Please :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 12 guests