Page 1 of 1

OLED Design

Posted: Tue Jun 23, 2020 10:11 pm
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

Re: OLED Design

Posted: Tue Jun 23, 2020 11:03 pm
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.

Re: OLED Design

Posted: Wed Jun 24, 2020 10:09 am
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 10891 times

Re: OLED Design

Posted: Wed Jun 24, 2020 8:16 pm
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

Re: OLED Design

Posted: Wed Jun 24, 2020 8:19 pm
by JLeith
Forgot the Flowcode

Re: OLED Design

Posted: Wed Jun 24, 2020 10:36 pm
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!

Re: OLED Design

Posted: Thu Jun 25, 2020 11:59 pm
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

Re: OLED Design

Posted: Fri Jun 26, 2020 7:23 pm
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