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
OLED Design
Moderator: Benj
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
OLED Design
- Attachments
-
- SSD selectiion
- GLCD 1351.jpg (23.64 KiB) Viewed 10560 times
-
- Team OLED 2020 May 22 Design.fcfx
- Flowcode program
- (95.33 KiB) Downloaded 259 times
-
- Jepg Design
- OLED 7789.jpg (73.08 KiB) Viewed 10560 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: OLED Design
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 thec 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.
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;
As the clock speed of your flowchart does not match actual hardware internal oscillator speed, then you will get all sorts of issues.
Martin
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: OLED Design
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
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
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: OLED Design
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
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 (18.25 KiB) Viewed 10523 times
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: OLED Design
Forgot the Flowcode
- Attachments
-
- Team OLED 2020 May 22 Design.fcfx
- (96.21 KiB) Downloaded 264 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: OLED Design
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.
In theory, you can control an LCD with manually operated switches!
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.
LCD's don't appear to be as fussy.
In theory, you can control an LCD with manually operated switches!
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: OLED Design
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
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 (10.09 KiB) Viewed 10322 times
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: OLED Design
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
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 273 times
-
- OLED connections
- ST7735.jpg (29.32 KiB) Viewed 10305 times