Model Boat Mayhem

Technical, Techniques, Hints, and Tips => Microprocessor control => Topic started by: C-3PO on July 02, 2018, 10:47:19 am

Title: OLED display 128x64
Post by: C-3PO on July 02, 2018, 10:47:19 am
Hello,

This is a 128x64 pixel OLED screen. It's cheap - Approx £5 and in the examples driven by an Arduino

I am playing around to see what effects you could add to a model boat some real others just "smoke and mirrors" animation

Some ideas are radar, sonar, map plotter, Lipo cell monitor... any other suggestions...

https://youtu.be/dNBtVWvabbc (https://youtu.be/dNBtVWvabbc)

(http://modelboatmayhemimages.co.uk/images/2018/07/02/oled_004.jpg)

(http://modelboatmayhemimages.co.uk/images/2018/07/02/IMG_2035.jpg)

(http://modelboatmayhemimages.co.uk/images/2018/07/02/Radar.jpg)

(http://modelboatmayhemimages.co.uk/images/2018/07/02/Radar005.jpg)


C-3PO
Title: Re: OLED display 128x64
Post by: tsenecal on July 02, 2018, 02:22:27 pm
i am curious how bright they are, can you see them in direct daylight?
Title: Re: OLED display 128x64
Post by: C-3PO on July 02, 2018, 02:53:11 pm
Hi - yes you can see the image in full/direct sunlight - not as easy though as partial shade

This image is in full 28 degree British heat wave sun.

It appears that the camera on my phone is running faster than the screen refresh rate - to the human eye it's a full image where the all lines can be seen but the image should give you an idea


(http://modelboatmayhemimages.co.uk/images/2018/07/02/IMG_2102.jpg)

C-3PO
Title: Re: OLED display 128x64
Post by: tigertiger on July 02, 2018, 03:06:08 pm
Cool. Nice potential for shows.
Title: Re: OLED display 128x64
Post by: tsenecal on July 02, 2018, 03:13:16 pm
Hi - yes you can see the image in full/direct sunlight - not as easy though as partial shade

This image is in full 28 degree British heat wave sun.

It appears that the camera on my phone is running faster than the screen refresh rate - to the human eye it's a full image where the all lines can be seen but the image should give you an idea


(http://modelboatmayhemimages.co.uk/images/2018/07/02/IMG_2102.jpg)

C-3PO


28 degree british heatwave you say  :-)   thursday june 28th, high temp here was 105f (40.55 c), with temps days before at 101f and 97f...  but yep, looks like the display should be viewable on a model boat...
Title: Re: OLED display 128x64
Post by: C-3PO on July 02, 2018, 03:19:19 pm
There is a full colour oled - a lot of fun - BUT - it's no good for animation due to the way the screen refresh works

( to clear the screen you have to fill it with black and then replot your image - just takes to0 long and you can see the flicker compared to this screen "white on blue" where it just flushes the memory in one hit)

This guy has hooked it up to ultrasonic sensors so the display is showing objects in view/range

https://www.youtube.com/watch?v=o3NNufAAjzE


C-3PO

Title: Re: OLED display 128x64
Post by: tsenecal on July 02, 2018, 04:50:53 pm
There is a full colour oled - a lot of fun - BUT - it's no good for animation due to the way the screen refresh works


<snip>

C-3PO



that explains the bizarre refresh visible in this video:


https://www.youtube.com/watch?v=CYkGRtVv3Ls
Title: Re: OLED display 128x64
Post by: C-3PO on July 02, 2018, 05:05:28 pm

that explains the bizarre refresh visible in this video:
https://www.youtube.com/watch?v=CYkGRtVv3Ls (https://www.youtube.com/watch?v=CYkGRtVv3Ls)
Spot on! - you can see the black fill (wipe left to right) - it's a real shame.
That said there is another way of using the full colour screen for animation - as you probably realise to make the screen animate you are drawing a screen / clearing a  screen / drawing a screen etc etc all the time to give the illusion of movement. If you can "undraw" what you just drew then you don't have to clear the screen - but that would be complex where say your radar scanner line has moved - you "undraw" in black but this would knock out pixels that formed part of the semi circle grid - but maybe just plotting the grid again may be quick enough - I will give it a try...

C-3PO
Title: Re: OLED display 128x64
Post by: timgarrod on July 02, 2018, 05:56:09 pm
Just order one of these screen for a project i'm working on.

Can't wait to play with it .
Title: Re: OLED display 128x64
Post by: C-3PO on July 02, 2018, 07:38:08 pm
Maybe there is some mileage in the colour oled....

https://youtu.be/EXGeyZEYg5M

C-3PO
Title: Re: OLED display 128x64
Post by: tsenecal on July 02, 2018, 09:38:22 pm
so this is you doing what you theorized in reply #7?  if so it appears that redrawing the entire screen with somethings drawn twice (once in black and once in "color") to move items seems to be fast enough.
Title: Re: OLED display 128x64
Post by: C-3PO on July 02, 2018, 09:51:24 pm
Hi Tim,

Yes draw colour and then draw in black / draw colour new position - the grid is redrawn each frame.

The moving text is drawn in red / then black / then red in new position.

Of course I realised the white on blue screen could be used in reverse - so effectively turning it to blue on white - that would make it easier to see in daylight

Forgot to comment - the temps you have had are on a different level to what we have but for us it's unusual - heard somewhere it's  the hottest spell in the last 42 years - but you know how it is here in the UK - a few flakes of snow and everything grinds to a halt!

The other thing to mention is that to the human eye the image is much more pleasing that the pixelated image on the video

C-3PO
Title: Re: OLED display 128x64
Post by: Arrow5 on July 03, 2018, 11:33:02 am
Not strictly correct my southern friend. In some parts of the UK we open up the ski slopes. I believe that a few degrees of frost in Kent and you call-out the army %)   OLED great stuff BTW
Title: Re: OLED display 128x64
Post by: tigertiger on July 03, 2018, 12:54:50 pm
Out of the box thought.


For a floating restaurant or bar, a neon sign for 'OPEN', 'Fish n Chips', 'Booze Cruise', etc.
Or ferry, on board LED screen notices.
Title: Re: OLED display 128x64
Post by: tigertiger on July 04, 2018, 01:54:33 am
A thought triggered by this thread, http://www.modelboatmayhem.co.uk/forum/index.php/topic,61128.msg644832/topicseen.html#msg644832.


OLED display Lipo voltage indicator.
Title: Re: OLED display 128x64
Post by: C-3PO on July 04, 2018, 08:17:02 am
A thought triggered by this thread, http://www.modelboatmayhem.co.uk/forum/index.php/topic,61128.msg644832/topicseen.html#msg644832 (http://www.modelboatmayhem.co.uk/forum/index.php/topic,61128.msg644832/topicseen.html#msg644832).
OLED display Lipo voltage indicator.

Hi TigerTiger - lipo monitor was mentioned in the first post - somethings like this - colour gives quick visual feedback - indicator of cell voltage level ( High = Green / OK = Yellow / Cutoff = Red)

C-3PO

(http://modelboatmayhemimages.co.uk/images/2018/07/04/Lipo.png)
Title: Re: OLED display 128x64
Post by: tigertiger on July 04, 2018, 10:51:25 am
Ah! Right, I missed that. You dazzled me with the radar.
Title: Re: OLED display 128x64
Post by: Martin (Admin) on July 04, 2018, 12:15:47 pm
 
Ah!  Aliens fan!


(http://modelboatmayhemimages.co.uk/images/2018/07/02/Radar.jpg)
Title: Re: OLED display 128x64
Post by: C-3PO on July 04, 2018, 12:32:02 pm

Hi TigerTiger - lipo monitor was mentioned in the first post

Sorry TigerTiger - that was a bit harsh of me - it didin't come across quite as intended!

It would be easy to simply add a piezo sounder and you would have a lipo monitor with alarm. However you probably can buy all that for 20% of the price already made from flea bay....

C-3PO
Title: Re: OLED display 128x64
Post by: tigertiger on July 04, 2018, 12:48:16 pm

Don't worry, I didn't take it as hostile at all. :-) I guess you could do a sonar display that also pings. Not strictly to scale but might be fun for things like model shows to attract the kids. Might be something that could be added to scratch built cutaway sub models of the right era.
Title: Re: OLED display - Jet Drive Tachometer
Post by: C-3PO on July 08, 2018, 12:05:59 pm
Using this concept to monitor the KMB jet driver rpm as installed in a Shannon Lifeboat

The rpm data is recorded along with other performance/ rc channel values data to an SD card for later analysis.

https://youtu.be/p_y-xm3J-5Q (https://youtu.be/p_y-xm3J-5Q)

Note - the demo video is monitoring a Dremel drill

(http://modelboatmayhemimages.co.uk/images/2018/07/08/oled_004.png)

C-3PO
Title: Re: OLED display 128x64
Post by: tigertiger on July 08, 2018, 01:46:18 pm
Now, if you have a sound unit (diesel), could you match the display to approximate the revs of the engine sound?


I hope I am being clear.