UTFT component? perfect for many graphic displays

Please add any feature requests for Flowcode version 6 here

Moderator: Benj

Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

UTFT component? perfect for many graphic displays

Postby hyperion007 » Sat Dec 28, 2013 5:08 pm

I would very much like to see UTFT from http://www.henningkarlsen.com/electronics/ made into a FC component.

It would make life a lot easier when using newer and more powerful graphic displays like the 5" touch screen I will be trying, with a resolution of 800x480 and integrated SDRAM for much faster refresh rates.


This is a video of their 7" model, but it is exactly the same as the 5" I have.
http://youtu.be/xvtA58D7uic

Maybe a lot of work is done already so it wouldn't be to hard or time consuming for the Matrix Staff to knock this one out? :)

Thanks.
/Daniel
These users thanked the author hyperion007 for the post:
Benj (Thu Jan 02, 2014 11:06 am)
Rating: 5.56%
 

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Tue Jan 07, 2014 6:24 pm

Not a lot of action in this part of the forum :(

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 64 times
Been thanked: 306 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby JonnyW » Thu Jan 09, 2014 12:31 pm

Hi.

We do read these forums, but sometimes things are not said as it is deemed no reply is necessary. It would be great for us to do components such as this one and I'm sure that once someone has completed (or attempted) it they would post their results here, but this takes time.

We have just come back from Christmas and are getting on with things from there, but for many of us your post has only been up for two office days. Please be patient and we will do what we can.

Cheers,

Jonny

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Sat Mar 08, 2014 4:35 pm

Any actions taken towards this? Many projects are just waiting for a nice and simple way to implement a fancy graphic OLED display :)

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 64 times
Been thanked: 306 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby JonnyW » Sat Mar 08, 2014 9:32 pm

Hi. I do not do many components personally but I am not sure if this will be done soon. For some time we have been trying to get a stable release we are all happy with - things keep piling up on that so I am not sure this will go out before a release is done I'm afraid.

Hopefully once the release is done we will have a bit of elbow room though!

Jonny

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Thu Mar 13, 2014 6:44 pm

Ok I get it :) When time permits, I would actually rather see some components for the popular SSD1306, SSD1322 OLED drivers.

I got a SSD1306 128x32 0.91" OLED up and running (initialized, and displaying a square :) ) but it's all bit banged and I do not have the skills needed to make the routines and custom component stuff.
So many Arduino libraries available for all kinds of displays it should be a walk in the park for someone with more experience I reckon :)

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Thu Mar 13, 2014 7:40 pm

Hello,

I'll get the UTFT, the SSD1306 and SSD1322 on the list for you and try and get them ticked off as and when I get some time. As you say they should be easy enough to roll out.

If you have known working Arduino code you can post or attach then that would likely speed things up a lot.

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Thu Mar 13, 2014 8:38 pm

Great!

Here are some links:
Micro LCD (SSD1306, I2C, but it supports 4 wire SPI which is what I am using) http://arduinodev.com/new-microlcd-libr ... d-ssd1306/
Here are some more examples, but in Python mostly, but nice fonts! http://guy.carpenter.id.au/gaugette/201 ... r-ssd1306/

I have sent you a private message Ben, with a link to all datasheets for both drivers and actual displays (that I have bought so I can do testing on hardware), sample code, and my FC macros for SSD1306, and some photos of it in action.

Just to clarify, I have OLEDs with SSD1305, SSD1306 and SSD1322 and some larger 3" and 5.5" TFT displays that are supported by UTFT so any tests you want me to do, just let me know.

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 2:46 pm

Hello,

Managed to make some headway with the SSD1306 component now. Hopefully it will work but have no hardware here to allow me to test.

I'm hoping your display has a read pin, the demo code didn't show a read function but it is required to get the pixel read modify write process working. I guessed at the code and hopefully it should work ok.

gLCD_SSD1306.fcpx
(6.75 KiB) Downloaded 249 times

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Wed Apr 30, 2014 2:58 pm

YEAH!!! This day just keeps getting better and better! :)

Unfortunately my SSD1306 display has no such pin.

I made this PCB some time ago in accordance with the display's datasheet and as you have seen, got it working with some example code and managed to draw a rectangle and writing A B C on it :) I'll sen you one (I have two more PCBs just laying around, not populated) if you think that will help. Just let me know.

Both mine and the one Adafruit currently sells, lack the read pin.

Microscope_Pic_07(2).jpg
Microscope_Pic_07(2).jpg (242.74 KiB) Viewed 12272 times


20140313_191931.jpg
20140313_191931.jpg (175.27 KiB) Viewed 12272 times


http://www.adafruit.com/products/661

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 2:59 pm

Also tried the SSD1305 but the example code for these looks less likely to work, most of the code is as is for the 1306 device so fingers crossed it will work ok.

gLCD_SSD1305.fcpx
(6.78 KiB) Downloaded 219 times

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 3:06 pm

Hello,

That was fast, Is that picture using your existing code or the new v6 component??!

Right without the read pin it is possible to draw stuff but each write is a vertical block of 8 pixels so if you say draw a horizontal line then it is likely that the other 7 pixels in the 8-pixel block will be corrupted (cleared).

If you can live with this then I can mod the 1306 component for you so it operates without the read pin and you may have to be a bit clever about the data you write to the screen. I'll make available the WriteDataByte macro so you can call it direct which will allow you to send pre-formatted data to the display. This does mean that nice things like draw line will not work and print text will need some modification to allow it to work at all in some y locations.

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 3:10 pm

Scratch that, you can get the displays to work without the read function but you need around 1K of RAM memory to maintain a buffer of the pixel values.

I'll have a go at a buffered version of the component and see how I get on.

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Wed Apr 30, 2014 3:18 pm

No that's with my own code. And yes, it does seem a bit "weird" that they chose to address the pixels this way.

Ok, I'll go ahead and make a revised version of the PCB as well and get that orders. That way I (and anyone who want to try these displays) can use the version best suited for the application. Sometimes it might work just fine without the read pin if you have a lot of spare RAM. One might be faster than the other so that might be a deciding factor for choosing which version to use.

I'll make the PCBs available to order straight from OSH park once I have tested them, should anyone want to use them.

Thanks!

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 3:26 pm

Here's a go at the buffered SSD1306 component.

gLCD_SSD1306.fcpx
(7.16 KiB) Downloaded 205 times


Let me know how you get on.

Also does your SSD1305 have a RW pin?
These users thanked the author Benj for the post:
hyperion007 (Wed Apr 30, 2014 3:27 pm)
Rating: 5.56%
 

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Wed Apr 30, 2014 3:29 pm

Thanks, I will.

I have not yet made a PCB for the SSD1305 so I guess I could do one version with and one without for that one as well.
These users thanked the author hyperion007 for the post:
Benj (Wed Apr 30, 2014 3:32 pm)
Rating: 5.56%
 

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 3:30 pm

I messed up a bit and overwrote the read version with the buffer version. Anyway using a bit of mercurial magic here are the two components so you can test them both out independently.

gLCD_SSD1306.fcpx
(6.75 KiB) Downloaded 223 times

gLCD_SSD1306_buffered.fcpx
(7.18 KiB) Downloaded 207 times

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Wed Apr 30, 2014 3:32 pm

Great, thanks!
These users thanked the author hyperion007 for the post:
Benj (Wed Apr 30, 2014 3:43 pm)
Rating: 5.56%
 

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 3:36 pm

Here are the SSD1305 equivalents,

gLCD_SSD1305.fcpx
(6.79 KiB) Downloaded 198 times

gLCD_SSD1305_buffered.fcpx
(7.2 KiB) Downloaded 210 times

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Wed Apr 30, 2014 4:50 pm

I'm looking now at the SSD1322 device, Can you confirm if your I/O control pins is like this?

8 x data pins
RD, WR, DC, Reset, CS

An alternate setup might look something like this.

8 x data pins
SD, SC, RW, DC, Reset, CS

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Wed Apr 30, 2014 4:55 pm

Here is the pinout of one of the SSD1322 displays:

SSD1322.jpg
(134.51 KiB) Downloaded 5849 times
These users thanked the author hyperion007 for the post:
Benj (Thu May 01, 2014 9:25 am)
Rating: 5.56%
 

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Wed Apr 30, 2014 10:19 pm

Unfortunately I can't get the SSD1306 to work. It won't show anything on the display, not even the "static" or "stars" you get after it is initialized but before it's cleared.
These users thanked the author hyperion007 for the post:
Benj (Thu May 01, 2014 9:25 am)
Rating: 5.56%
 

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Thu May 01, 2014 12:19 pm

Hello,

Right thanks I will have another pass through and see if I can find any problems compared to your example macros.

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby hyperion007 » Thu May 01, 2014 12:20 pm

Sounds good. I'll try to get you the displays as soon as possible.

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: UTFT component? perfect for many graphic displays

Postby Benj » Thu May 01, 2014 12:28 pm

Whoops, found there was a loop to transfer the data in all 4 components which was waiting for the index to equal 8 but the index variable was never being incremented!!

Should be better now.
Attachments
gLCD_SSD1306_buffered.fcpx
(7.19 KiB) Downloaded 179 times
gLCD_SSD1306.fcpx
(6.77 KiB) Downloaded 186 times
gLCD_SSD1305_buffered.fcpx
(7.21 KiB) Downloaded 177 times
gLCD_SSD1305.fcpx
(6.8 KiB) Downloaded 183 times
These users thanked the author Benj for the post (total 2):
medelec35 (Thu May 01, 2014 12:30 pm) • Brendan (Fri Jun 06, 2014 10:54 pm)
Rating: 11.11%