Repost: Ebay tiny 128x64 and 128x32 OLED graphic displays

Examples, screenshots, graphics, fonts...
Post Reply
User avatar
Phil_G
Posts: 413
Joined: 15 Feb 2018, 23:32
Contact:

Repost: Ebay tiny 128x64 and 128x32 OLED graphic displays

Post by Phil_G » 29 Aug 2019, 21:37

Back in the 'Reunited' days we had a thread discussing the merits of small, cheap ebay OLED displays, with examples of code, graphics and available fonts. These are handy, easy to use screens connected by I2C (just four wires including power).

This is an attempt to recreate that thread, but theres no backup and nothing on Wayback, so its just the bits I remember. Please chip in as before!

There are two popular sizes, in 1.3" and even smaller 0.96" formats. They're also available in half-height which is 128 pixels wide by 32 high. Heres one alongside a standard 16x2 LCD:


oled128x32b.jpg

oled_watch.jpg

oled128x32.jpg


...and heres the larger one (only 1.3" !!!)


Oled.jpg


Here's Ian D's impressive 'analogue' panel meter:


IMG_20170402_000810.jpg


Its possible to get six lines of 21 characters using a small font, its still very readable:


IMG_20171117_202115.jpg


Here's my campervan monitor screen showing voltages & Ah to and from the batteries:


van_monitor.jpg


Here are a few graphics created specifically for these displays, with the code that drives them:


IMG_20170323_211355.jpg

IMG_20170328_131329.jpg

IMG_20170328_204737.jpg

IMG_20170328_221930.jpg


Here's Martins Reedy-Ten display:



IMG_20170418_204749492.jpg



These displays use a library called "U8glib", there is a version 2 with more stuff but more overhead, personally I still use the original U8glib as it works perfectly. Why change? ;)
The library is here, click "Clone or download" and in Arduino import the library as a zip.
https://github.com/olikraus/U8glib_Arduino

In the sketch, the header should use SSD1106 for the 1.3" display and SSD1306 for the 0.96":

#include <U8glib.h>
U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // for the 1.3"
or
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // for the 0.96"


Something to watch out for - spot the difference!


IMG_20190903_002124_275.JPG


To create the graphics, to date I've used a program called 'Graphene' which is almost impossible to find, hence I've attached it here. There were no instructions so I've added a 'read me' to the zip. Max has since found a brilliant alternative which can either be used online, or saved for offline use: viewtopic.php?f=81&t=787#p6324

The graphic is created using your fave graphics program, I use Paint Shop Pro. Its sized to suit the display, ie 128 pixels by 64, or 128 by 32 for the half-sized displays. It has to be just two colours, black & white, and saved as .png format (Portable Network Graphic).

Because of the very low resolution (128x64) its essential to 'zoom-in' to pixel level and manually tidy up the graphic within Paint Shop Pro or whatever. If you reduce a photo to two colour levels then scale it down to 128x64 it will hardly be recognisable!

Heres a typical 'manually reworked' 128x64 picture:


rider_bw.png
rider_bw.png (1.01 KiB) Viewed 641 times


Cheers
Phil

.
Attachments
graphene.zip
(7.22 MiB) Downloaded 29 times
oled_u8g_experiments_text_small.ino
(1.45 KiB) Downloaded 25 times
ssd1106_128x32_u8g2_I2C_Ian_Panel_Meter.ino
(15.99 KiB) Downloaded 35 times
oled_128x64_rider.ino
(7.48 KiB) Downloaded 20 times
oled_128x64_rcs.ino
(2.71 KiB) Downloaded 24 times
oled_128x64_mcg.ino.ino
(2.77 KiB) Downloaded 30 times
oled_128x64_logo.ino
(2.86 KiB) Downloaded 30 times
oled_128x64_cs2.ino
(4.42 KiB) Downloaded 27 times
oled_128x32_logo.ino
(2.86 KiB) Downloaded 26 times
oled_128x32_fleet.ino
(1.49 KiB) Downloaded 31 times

User avatar
RON
Site Admin
Posts: 579
Joined: 12 Jun 2017, 15:09
Location: Guisborough North Yorkshire

Re: Repost: Ebay tiny 128x64 and 128x32 OLED graphic displays

Post by RON » 30 Aug 2019, 23:25

Here’s an addition to the 0.96 oled.
It’s a split screen blue/yellow version, quite common on eBay and only a few quid. This is what they look like.
5172B8A5-8A6A-49DC-8DD7-7B15ED17F30D.jpeg
If you would like to contribute a small amount toward the upkeep of this valuable forum then please click the Donations link at the top of the page, just below the mode zero logo. All donations are kept anonymous. Thankyou

Martin
Posts: 392
Joined: 16 Feb 2018, 14:11
Location: Warwickshire

Re: Repost: Ebay tiny 128x64 and 128x32 OLED graphic displays

Post by Martin » 24 Jun 2020, 09:57

This one looks interesting. 1.6-inch, cheap £2.94, 65K colours, 5V compatible; best of all, supposed to be readable in full sunlight. https://www.aliexpress.com/item/4000116854157.html Might be a better tool for transmitter and other outdoor projects where the normal OLED displays we use are often unreadable.

Image

Downsides are slightly heavy 100mA maximum current draw, 4-wire SPI interface, not I2C, and the graphic RAM is write-only via the SPI interface - which makes complex graphics with limited RAM microcontrolers (like the smaller Arduinos) harder.

I've ordered a couple to test out.

Post Reply