OLED Design

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
JLeith
Posts: 526
Joined: Wed Nov 14, 2012 7:49 pm
Location: British Columbia Canada
Contact:

OLED Design

Post by JLeith »

Hello All
I had a opportunity to get a could of OLED displays. I added to my exiting LCD design with removal of the LCD calls.

I went with the SPI layout because the 12C used to much memory.

I was able to work out the Flowcode 6 Design but I can't get the OLED to display anything.

I was using the GLCD_SSD1351. I had a SSD1351 OLED but it was not working. So I tried a OLED with Driver ST7789 still nothing.

I can get the Flowcode to work just not the OLED.

Not sure if the GLCD SSD has to match to see it work on the chip.

I have attached the design JPEG and the Flowcode6 design.

Noticed that their are several SSD options and I had a SSD1351 OLED but it had a Shorted Power problem.

I searched for information on OLED design but not much luck. I did see a forum user so I could see what port to connect.

Odd it worked in Flowcode but not on the chip ?

Maybe someone has worked with OLEDs has a idea. I was trying to use 128X128 displays to get my info to display.

John
Attachments
SSD selectiion
SSD selectiion
GLCD 1351.jpg (23.64 KiB) Viewed 350 times
Team OLED 2020 May 22 Design.fcfx
Flowcode program
(95.33 KiB) Downloaded 7 times
Jepg Design
Jepg Design
OLED 7789.jpg (73.08 KiB) Viewed 350 times

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8883
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: OLED Design

Post by medelec35 »

Hi John,
Have you tried the one second flash test?
I Don't continue a new project until timing is correct.
With your flowchart you have Clock speed set to 1MHz.
However the

Code: Select all

osccon=0xf0;
c Code block will force hardware to run internal oscillator at 32MHz.
As the clock speed of your flowchart does not match actual hardware internal oscillator speed, then you will get all sorts of issues.
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

stefan.erni
Posts: 570
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Contact:

Re: OLED Design

Post by stefan.erni »

Hi John

In my FC8 it looks different how to connect the Oled. It's working nice this Oled I used. Do you have some more info about your OLED?
I saw that your PIC is on 5Volt PSU. I hope your OLED is also on 5volt and working with it. For my OLED modul I have to use 2 additional pins.
One pin to turn it on (always high) and the second pin was a read/write pin (always low).

regards

Stefan
oled1.PNG
oled1.PNG (37.88 KiB) Viewed 331 times

User avatar
JLeith
Posts: 526
Joined: Wed Nov 14, 2012 7:49 pm
Location: British Columbia Canada
Contact:

Re: OLED Design

Post by JLeith »

Hi Martin
Got the 1sec timer set.
Looks like it is running at 100ms
Here is the picture
Odd this Flowcode was running with a LCD and I thought I could replace the LCD display to OLED display.
Reading up on the PIC16 it reference is 32mhz speed for inter oscillator .
Thoughts ?

John
------------------
Stefan I'm running Flowcode 6
For the OLED I have a LM2596 DC-DC Step Down Converter from 5V to 3V
Attachments
100ms.jpg
100ms.jpg (18.25 KiB) Viewed 313 times

User avatar
JLeith
Posts: 526
Joined: Wed Nov 14, 2012 7:49 pm
Location: British Columbia Canada
Contact:

Re: OLED Design

Post by JLeith »

Forgot the Flowcode
Attachments
Team OLED 2020 May 22 Design.fcfx
(96.21 KiB) Downloaded 5 times

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8883
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: OLED Design

Post by medelec35 »

Hi John,
The picture shows 3200000 = 3.2MHz
Should be 32000000 i.e 32 with 6 0's
Hence why delay is 10 times faster than what it should be.
JLeith wrote:
Wed Jun 24, 2020 8:16 pm
Odd this Flowcode was running with a LCD
LCD's don't appear to be as fussy.
In theory, you can control an LCD with manually operated switches!
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
JLeith
Posts: 526
Joined: Wed Nov 14, 2012 7:49 pm
Location: British Columbia Canada
Contact:

Re: OLED Design

Post by JLeith »

Hello Martin

Yes long hours and not counting past 5.

Here is the new and improved 1sec timer.

Now I just have to work on the OLED.

Would there be a issue where in Flowcode the OLED is SSD1351 and on the Hardware I have a Driver ST7735 OLED.

The ST7735 has the same pin layout.

John
Attachments
1sec.jpg
1sec.jpg (10.09 KiB) Viewed 112 times

User avatar
JLeith
Posts: 526
Joined: Wed Nov 14, 2012 7:49 pm
Location: British Columbia Canada
Contact:

Re: OLED Design

Post by JLeith »

Hi All
I have the Oled wired in with 1K resistors from the PIC to the OLED.

Noticed on some Google searches suggested because the PIC ports are Logic 1 at 5V.

The OLED lights up. In flowcode The OLED should display "OLED Design" When all is working the OLED design should be working like the LCD did with displaying NFR905 receiving information.

Is thing first Display something on the OLED

John
Attachments
Team OLED 2020 May 22 Design.fcfx
Flowcode
(97.71 KiB) Downloaded 5 times
OLED connections
OLED connections
ST7735.jpg (29.32 KiB) Viewed 95 times

Post Reply