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 : Practical Electronics PicoMite display problems
Page 1 of 2 | |||||
Author | Message | ||||
pepperm Newbie Joined: 14/11/2022 Location: United KingdomPosts: 7 |
Hi I'm following the PicoMite articles in Practical Electronics (Aug 2022 UK) and am working with the Waveshare Pico-Res Touch 2.8 and 3.5inch LCD modules and am having two different problems with "PicoMite MMBasic Version 5.07.05RC9". With the 2.8 inch display, everything seems to work except that when I come to run "gui test lcdpanel", the test display works initially but then when I returnto the project a few hours later, the test just runs for about 2 seconds then the display never shows anything else. With the 3.5 inch display, I just cant access the SD card and just get an "Error : SD Card not found" error. For both displays I have followed, many times all the suggested config options, and show the results of "Option List" for the 3.5 inch display below. So, has anyone else followed the worked examples and got them to work completelt, as I haven't or can anyone suggest why I am having these problems please? 3.5" module config: PicoMite MMBasic Version 5.07.05RC9 OPTION SYSTEM SPI GP10,GP11,GP12 OPTION SYSTEM I2C GP20,GP21 OPTION CPUSPEED (KHz) 252000 OPTION LCDPANEL ILI9488W, RLANDSCAPE,GP8,GP15,GP9 OPTION TOUCH GP16,GP17 GUI CALIBRATE 1, 1113, 499, -4042, -104000 OPTION SDCARD GP22, GP5, GP18, GP19 OPTION RTC AUTO ENABLE Mark |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
3.5" sdcard should just be OPTION SDCARD GP22. It shares SPI with the display. If the article says otherwise it is wrong. You should also add GP13 to the set up of both displays. This controls the LCD backlight. It is possible that this is the problem with the 2.8" display. OPTION LCDPANEL st7789_320, LANDSCAPE,GP8,GP15,GP9,gp13 Edited 2022-11-18 00:41 by matherp |
||||
pepperm Newbie Joined: 14/11/2022 Location: United KingdomPosts: 7 |
Thanks, it does say those things in the article but I'll give your suggestions a go when I get home. |
||||
pepperm Newbie Joined: 14/11/2022 Location: United KingdomPosts: 7 |
Right... I have now configured the Picos with the following PicoMite setups (put here just in case anyone else wants to know) and can confirm that the setup for the SD card in PE Aug 2022 for the 3.5" display are wrong. "OPTION SDCARD GP22" sorts it out compared to what is printed in the magazine. However, I still have the same problem with the 2.8" display in that when I initially configure everything the "gui test lcdpanel" command works as expected (losts of coloured circles in the display). The trouble is that if I unplug the Pico and restart, then issue the "gui test lcdpanel" command the display kicks into life for 1-2 seconds then goes blank. Further tests are just met with a blank screen. I have even tried programatically (with the RTCdemo.txt program mentioned in the article) displaying things but this still results in a blank screen. I thought initially that the 2.8" display was just faulty, but if I tear everything down and rebuild and reconfigure, I get the same operation, be it short term. Any ideas? Here are the configs: "Waveshare Pico-ResTouch-LCD-2.8" from PE aug 2022 Option reset option list option cpuspeed 252000 option system spi GP10, GP11, GP12 option lcdpanel st7789_320, l, gp8, gp15, gp9, gp13 gui test lcd panel option touch gp16, gp17 gui calibrate gui test touch option sdcard gp22 files option system i2c gp20, gp21 rtc settime 22,11,18,10,00,00 option rtc auto enable print time$ print date$ option list "Waveshare Pico-ResTouch-LCD-3.5" from PE aug 2022 Option reset option list - confirm empty option cpuspeed 252000 option system spi GP10, GP11, GP12 option lcdpanel ili9488w, rl, gp8, gp15, gp9, gp13 gui test lcd panel option touch gp16, gp17 gui calibrate gui test touch option sdcard gp22 files option system i2c gp20, gp21 rtc settime 22,11,18,10,00,00 option rtc auto enable print time$ print date$ option list |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Lots of people use that display and no-one has raised the issue before so there must be something strange going on - dry joint or similar. I've just replicated your exact setting and it works fine each and every time |
||||
pepperm Newbie Joined: 14/11/2022 Location: United KingdomPosts: 7 |
Thanks for the duplicating, I presume with the 2.8" didplay. I guess that means that the display is faulty. I'll resolder the joints. Thanks. |
||||
Pluto Guru Joined: 09/06/2017 Location: FinlandPosts: 359 |
Please note that ILI9488 problems have been reported earlier on the forum. If I remember correctly, thera were several solutions: -cut the MISO connection, -install a resistor in the MISO line, or -install a transistor in the MISO line |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Not relevant to the Waveshare version which doesn't expose MISO |
||||
Pluto Guru Joined: 09/06/2017 Location: FinlandPosts: 359 |
Practical Electronics instruction for ILI9488W: If I understand this correctly, the display and SD-card will use different SPIs. Could you try again with your original option settings But correct the LCDPANEL line to include the GP13 (as in the PE article): |
||||
pepperm Newbie Joined: 14/11/2022 Location: United KingdomPosts: 7 |
Resoldering has changed nothing. Maybe I'll order a new display and see how that works. or not. It is very odd that if I just restart everything config wise after maybe a day of powerdown, everything works and works for hours, all until I power down then power back up again... very odd behaviour. |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
This is pointless as it is wrong. I have the display. I developed the driver on it. I tested it and the correct settings are as the OP posted in his revised version following my advice. It is how the display is wired. |
||||
pepperm Newbie Joined: 14/11/2022 Location: United KingdomPosts: 7 |
Hi This config is for the 3.5" display, that does work. It is the 2.8" display that has a problem. The 2.8" display used a st7789_320. But correct the LCDPANEL line to include the GP13 (as in the PE article): |
||||
pepperm Newbie Joined: 14/11/2022 Location: United KingdomPosts: 7 |
Well, I got the 3.5" version working as expected with the config changes, but the 2.8" version still blanks the display after about a second when using it beyond a repower or something. As it happened I replaced the touch controller on the board and noticed that when it was removed (to be used in the 3.5" display that I blew up - dont ask) the display worked repeatedly without a problem. The replacement 2.8" display is still in transit so will see if I get the same behaviour with that unit. |
||||
franzi Newbie Joined: 20/03/2023 Location: GermanyPosts: 6 |
I've just had a new Waveshare Pico-Res-Touch 2.8 delivered, and thanks to this thread I got it up and running in no time at all. Thankyou. I used: SPI Setup: OPTION System SPI GP10, GP11, GP12 Display Setup: OPTION LCDPANEL ST7789_320, LANDSCAPE, GP8, GP15, GP9, GP13 SD Card Setup: OPTION SDCARD GP22 Testing: gui test lcdpanel ...and the test program started straight away. Thanks again to all. Edited 2023-03-24 23:09 by franzi |
||||
NPHighview Senior Member Joined: 02/09/2020 Location: United StatesPosts: 200 |
Hi, Franzi - Were you able to get the SD card to work in this configuration of the Waveshare Pico-Res-Touch 2.8? I've tried both: OPTION SDCARD GP22 and OPTION SDCARD GP22, GP5, GP18, GP19 I can find my stored files in flash: > DRIVE "A:" > files A:/ Â <DIR> Â . Â <DIR> Â .. 00:00 01-01-2000 Â Â Â Â Â 4 Â bootcount 2 directories, 1 file > flash list Slot 1 in use: "Rem ** DTMF Demonstration on Raspberry Pi Pico with MMBasic" Slot 2 in use: "Rem ** Driving an RGB LED using PWM pins on Rasp.Pico in mmBasic" Slot 3 in use: "Rem ** Neopixels based on tomshardware.com article" Slot 4 available Slot 5 available But no luck with the (just formatted 1 GB Micro SD) flash card: > DRIVE "B:" > files Error : SD Card not found Edited 2023-03-31 11:08 by NPHighview Live in the Future. It's Just Starting Now! |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6812 |
I *think* the SD card signals are hard-wired to the same SPI as the display on the Waveshare board, but the CS line is wired out. In that case you only need to specify the CS pin in OPTION SDCARD. (I have the schematic somewhere but not sure where...) Note: The Waveshare boards have a set of links that change the operating mode of the SD card. AFAIK they are set to use SPI by default (Position A), as required for MMBasic. This display really should be "plug & play". I'd suggest trying a different SD card or, at least, make sure that one is definitely formatted in FAT16 or FAT32. NTFS doesn't work. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Have you configured touch? If not the sdcard won't work |
||||
franzi Newbie Joined: 20/03/2023 Location: GermanyPosts: 6 |
I've just upgraded my Picomite firmware to PicoMite MMBasic Version 5.07.07b28, and can confirm that together with the Waveshare Pico-Res-Touch-LCD-2.8 everything seems to be working OK for me. I only have the RPi Pico plugged onto the back of the display - no extension board or extras. Options used: > option list PicoMite MMBasic Version 5.07.07b28 OPTION SYSTEM SPI GP10,GP11,GP12 OPTION LCDPANEL ST7789_320, LANDSCAPE,GP8,GP15,GP9,GP13 OPTION TOUCH GP16,GP17 GUI CALIBRATE (result: 0, 418, 3878, 896, -657) OPTION SDCARD GP22 I've also checked my SDcard with load image "B:/imagename.bmp" and it's working fine. I'm not sure but I think that I'd activated touch before the SDcard. Backlight is also working (GP13), but I haven't needed I2C to be set, since the Pico is directly coupled to the Display and communicates over SPI (preset). File listing on drive B is working: > drive "B:" > files B:/ 17:33 25-01-2021 460854 cat.bmp 14:21 11-11-2014 230454 flower.bmp 23:21 29-03-2023 265974 foodtruck.bmp 17:33 25-01-2021 460854 hamster.bmp 20:37 27-03-2023 65590 imbissTempleNeukoeln128.bmp 01:41 27-03-2023 14 test.txt 16:10 07-03-2015 230454 tiger.bmp 0 directories, 7 files I'm using a 32GB SDcard repurposed from an old Raspberry Pi, reformatted to FAT32 of course. Franzi |
||||
NPHighview Senior Member Joined: 02/09/2020 Location: United StatesPosts: 200 |
Ah! Thank you, Franzi, Peter, and Mick. I cleared and re-established all of the options, calibrated touch, ran Peter's digital clock demo, and SD access is now working. I've got PicoMite MMBasic V.5.07.06 at the moment. Is there an RTC on the Waveshare board? Details are sketchy at best... Now, to go get my Colour Maximite programs from a year or so ago and give them a whack on the Pico! Thanks again! - Steve Rem ** First test of WaveShare 2.8 LCD Panel Assembly Rem ** March 30, 2023 S.F. Johnson Newbury Park, California CLS DO WHILE Touch(X) = -1 TEXT MM.HRes/2, MM.VRes/4, Time$, "CM", 1, 4, RGB(CYAN) TEXT MM.HRes/2, MM.VRes*3/4, Date$, "CM", 1, 3, RGB(GREEN) LOOP CLS Live in the Future. It's Just Starting Now! |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2134 |
I found the ili9341 sd card is drive a: like play wav "a:/t1" to play a wav file on the sd card when the sd card is supposed to be b:/ |
||||
Page 1 of 2 |
Print this page |