Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:50 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SSD1963 5" odd behaviour with Picomite

Author Message
LouisG
Senior Member

Joined: 19/03/2016
Location: Australia
Posts: 124
Posted: 06:40am 22 Oct 2023
Copy link to clipboard 
Print this post

Hi Guys,

I made up a piece of stripboard with connectors and cross-wiring to connect an unmodified 5" SSD1963 screen to a Picomite according to the instruction manual. I used exactly the Pico pins recommended and connected the (configurable) LED_A pin to Pico pin 11, which was available. The screen was configured using MMEdit as follows:


Connected to COM4 at 38400

> Option List
PicoMite MMBasic Version 5.07.07
OPTION LCDPANEL SSD1963_5, RLANDSCAPE,GP8
> Backlight 100
>

I seem to be unable to get the LEDs in the screen to light. After triple checking the wiring I made the following tests:

1. I transferred the screen to an E100 board and the screen worked perfectly.

2. I swapped the Pico with another. Still no luck.

3. I noticed that the voltage on pin 11 (LED_A) was always 0V. To check this out I disabled the LCD panel as follows in order to output 3.3V from Pin 11:


> Option LCDPanel disable
Port: COM4 removed
Port: COM4 inserted
Connected to COM4 at 38400
> setpin 11, Dout
> Pin(11) = 1
>


The LEDs in the screen switched on! It appears I was not getting the PWM signal from Pin 11.
What could be causing this? Wrong wiring? Bad command? Inappropriate LED_A pin?
Any help would be appreciated.

...  Louis
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 07:18am 22 Oct 2023
Copy link to clipboard 
Print this post

Please upload the latest release candidate and it should work. I think this is something I fixed when implementing the 8-bit parallel ILI9341
Edited 2023-10-22 17:31 by matherp
 
LouisG
Senior Member

Joined: 19/03/2016
Location: Australia
Posts: 124
Posted: 11:26am 22 Oct 2023
Copy link to clipboard 
Print this post

Yes. I loaded version V5.07.08RC11. That fixed it. Working well.

Thanks Matherp!

...  Louis
 
LouisG
Senior Member

Joined: 19/03/2016
Location: Australia
Posts: 124
Posted: 02:42pm 24 Oct 2023
Copy link to clipboard 
Print this post

More odd behaviour. Still using V5.07.08RC11.

Now GUI CALIBRATE doesn't respond properly when using the SSD1963_5.

The screen with the first target comes up OK but when touched it throws a
continuous stream of  ERROR : TOUCH NOT CALIBRATED.

I checked the screen in an E100 using GUI TEST TOUCH and it worked perfectly.
Wiring rechecked too.

Any ideas?

FYI
option list
PicoMite MMBasic Version 5.07.08RC11
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION LCDPANEL SSD1963_5, LANDSCAPE,GP8
OPTION GUI CONTROLS 11
OPTION TOUCH GP18,GP19
OPTION SDCARD GP22
>

... Louis
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 03:13pm 24 Oct 2023
Copy link to clipboard 
Print this post

Just wondering, have you tried stripping it down to basics? i.e. without specifying GP8, GUI CONTROLS and SDCARD. It shouldn't make any difference, but you never know.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 03:47pm 24 Oct 2023
Copy link to clipboard 
Print this post

I have made changes in this area. Not at home until Friday, will test then
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 01:40pm 27 Oct 2023
Copy link to clipboard 
Print this post

Just tested and works fine for me. There are two possibilities
1: Wiring error as always check and double-check including any wires that might be broken at terminations
2: Power. The 5" SSD display is very difficult to power. It only takes a 3.3V supply and wants a lot of power. It may well be outside the capability of the Pico power circuit to power it and the rest of the circuitry reliably. Try an external PSU with common ground to power the display
 
LouisG
Senior Member

Joined: 19/03/2016
Location: Australia
Posts: 124
Posted: 02:41pm 30 Oct 2023
Copy link to clipboard 
Print this post

Thanks Peter.

Unfortunately it still doesn't work for me. 5.07.08RC12 loaded on Picomite.
Here's what I did.

OPTION RESET
OPTION LCDPANEL SSD1963_5, L, 26    
 Command accepted.
TEXT 100,100, "Hello",,,4            
 Text displayed OK.
OPTION TOUCH 24,25                  
 Accepted. Screen goes dark. LEDs still on.
TEXT 100,100, "Hello",,,4
 Accepted. Screen remains dark. LEDs still on.
GUI CALIBRATE
 Command accepted. Screen remains dark. It should show a touch target.
I touched the screen approximately where the first target should be.
 No response.
I touched the screen a second time.
 "Error : Touch hardware failure" (single message).

This cannot be (but it is!). The screen works perfectly in my E100 board. The various screen buttons respond correctly to touch, change colour, switch outputs, etc.

I substituted a pair of AA cells (3V) for the screen 3.3V supply. It operated the LEDs but made no difference.

Any ideas? Looks like I'll be checking the wiring for the (n+1)th time.

Regards,
Louis

-
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 03:17pm 30 Oct 2023
Copy link to clipboard 
Print this post

First, just check that you aren't mixing up GPn numbers with physical pin numbers. It's easily done! It looks to me as if T_CS may not be working so it isn't being selected.

Also, make sure that T_DIN is linked to MOSI, T_DO to MISO and T_CLK to the SPI clock. The display itself doesn't use SPI, only the touch and SD card. This makes me think you have a SPI connection or configuration problem.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
LouisG
Senior Member

Joined: 19/03/2016
Location: Australia
Posts: 124
Posted: 12:15am 31 Oct 2023
Copy link to clipboard 
Print this post

Thanks Mick.

You are right. Having both pin numbers and GP numbers side by side can easily confuse (and it did!).

However, your words on the SPI connections jolted my mind. I need first to configure SPI! Silly me. Will do it.

Louis

-
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 09:11am 31 Oct 2023
Copy link to clipboard 
Print this post

I've stopped using physical pin numbers now. They are quicker to type, but don't transfer over to other RP2040 boards. There's only CONST that I can think of that insists on physical pin numbers, and there's a way round that.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024