![]() |
Forum Index : Microcontroller and PC projects : ili9341 touch
Page 1 of 3 ![]() ![]() |
|||||
Author | Message | ||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
|
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
hmmm... might be an idea to try that one again. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
Hi. I just bought a rpi pico and have tried 4 ILI9341 glcds using picomiteV5,07.4.uf2. The test lcd display displays coloured circles. The gui calibrate either displays a target top left but touching it does nothing or on another display touching the first target draws another target top right and touching that print error touch hardware in the terminal. Any issues with ili9341 touch screen? cheers. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
You have a wiring and/or OPTION issue - check the manual and follow details precisely. One thought - does your display have the touch chip (XPT2046/TSC2046 - U1) Edited 2022-06-29 21:58 by matherp |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
No problems usually. However, there are two versions available, one with touch and one without. Are you sure you have the touch version? On the back of the ones I have there are pins for controlling the touch. They begin with T_ and next to them there should be a chip - U2 - if they support touch. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
Thank you for replying. The displays have the XPT2046 and I have used the 4 ili9341 with great cow basic no problem apart from they are 3.3V logic and the 328p uno/nano boards are 5V logic. They work but touch was not perfect but pretty good. It detects the first calibrate target then the next then fails?? I'm new here.. can videos be posted or youtube links? I only found about rpi pico and mmbasic from a youtube explaining computers.com so it's new to me but I have a rpi1,2,3,400 but I never learnt c+ or python. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
This because it is seeing the same coordinates for both. i.e. it isn't reading properly. Check that SDI(MOSI) is connected to T_DIN and SDO(MISO) to T_DO and SCK to T_CLK. Then all these should be connected as per the OPTION SYSTEM SPI command. If it responding to a touch then it is seeing T_IRQ but check T_IRQ and T_CS are specified correctly and the correct way round in OPTION TOUCH. The ILI9341 code has been around forever and is completely reliable so it must be a wiring error Make sure VCC is connected to 3.3V and not 5V Edited 2022-06-29 22:57 by matherp |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
"around forever" but new to me as is mmbasic checking images posting thinking wiring ok but will recheck |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
"around forever" but new to me as is mmbasic checking images posting thinking wiring ok but will recheck |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
Sorry I posted twice, It's a new forum. This is the forum suggested https://geoffg.net/picomite.html It says I may get help here. I like basic and this looks very interesting. Am I using the wrong hardware for mmbasic? trying to sort an editor but like putty didn't work but tera term vt did it's another learning curve. cheers. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Your hardware should be fine. The ILI9341 is tried and tested with the PicoMite and works with both touch and the SDcard. I've got one working now in front of me. This is my configuration OPTION SYSTEM SPI GP18,GP19,GP16 OPTION LCDPANEL ILI9341, LANDSCAPE,GP20,GP21,GP17 OPTION TOUCH GP14,GP15 OPTION SDCARD GP22 Please don't get discouraged. If you know the displays are working properly then there will be something simple that will reveal itself eventually. It is worth building up slowly. Disconnect the touch chip and the SD. Then set a pixel on the display and read it back. If it reads OK then the two way SPI communication is working. pixel 100,100 ? hex$(pixel(100,100)) ' should give FCFCFC if that works connect the touch pins as per my note above Connect any free pin to T_CS and another the T_IRQ Then configure touch "OPTION TOUCH cspin, irqpin" Edited 2022-06-30 04:49 by matherp |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
I wired the sd card slot for the ili9341 and it reports no sd card which is ok as no card inserted. matherp my config is the one in the manual. lcd graphics ok , touch not ok. |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
Thank you for helping a new user :) |
||||
pwillard Guru ![]() Joined: 07/06/2022 Location: United StatesPosts: 313 |
The forum sort of makes some people uncomfortable for some reason but thank goodness it's not DISCOURSE forum software... |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
pwillard.. sir I do not understand. This is my first post and I have been offered help so thankful. When I am more together with rpi pico I will share that's the way it is.. help each other. I will just put my attention to ili9341 graphics cos it looks capable and some nice features in built. pixel at a time 16x16 sprites is my first task. cheers guys |
||||
pwillard Guru ![]() Joined: 07/06/2022 Location: United StatesPosts: 313 |
Things are as they should be... welcome to the forum. |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2566 |
Thank you @ pwillard. VERY impressed with rpi pico and mmbasic but a lot of new stuff to learn and old dogs new tricks. Looks like an ott board for the money. daft clock speed and ram and pins. mmbasic uses this. ok it's interpreted but may be as fast as a lgt328 compiled assembler. Is this the place to ask about rpi pico running mmbasic? It's all very new to me so I'll need help/advice. I think it's an impressive micro controller board especially if it can be coded in basic. |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Yes, this is the place to ask about pico running MMBasic. Yes, it's impressive--lot's of code and lots of help. You should be aware of Geoff's page (developer of MMBasic): https://geoffg.net/ Somewhat out of date, but some picomite information here: http://fruitoftheshed.com/MicroMite%20ArmMite%20and%20MMX%20Hardware.PicoMite.ashx PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
stanleyella: Welcome to the TBS forum. :) As you probably know by now, the PicoMite just happens to be the latest platform for MMBasic - there have been several previous ones. Geoff's site is well worth a visit as you can see the development. His site is also the repository for the excellent manuals etc. (which he writes). We were extremely lucky in that the Raspberry Pi Pico came along more or less as supplies of the other chips were drying up. matherp has, single-handedly, done a truly amazing job of porting MMBasic to it, as I think you'll agree. You'll find almost all of the cutting edge stuff in his posts. Have fun. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Arguably should be "2040Mite" because it's not limited to the Pico. Craig |
||||
Page 1 of 3 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |