Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:50 19 Nov 2025 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 : GUI CALIBRATE on PicoMite - help needed

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10610
Posted: 04:31pm 01 Sep 2021
Copy link to clipboard 
Print this post

I've never had an issue with GUI calibrate on my breadboarded PicoMite. However, recently Mixtel kindly sent me one of his PCBs and now I can't calibrate to work as others have reported. After manually typing in the calibration parameters touch does work so there is nothing wrong with the wiring. Please can anyone who has worked with a ILI9341 display let me know:

If you can get calibrate to work reliably YES/NO
What development environment are you using
What pins are you using for T_CS and T_IRQ

Thanks
Edited 2021-09-02 02:31 by matherp
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8297
Posted: 04:41pm 01 Sep 2021
Copy link to clipboard 
Print this post

I don't think I've ever had one calibrate reliably (maybe the original backpack did, I can't remember now), so NO.

GUI CALIBRATE 0,362,287,897,678 seems to work fine for the unit I've been using with the Backpack.
Mick

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

Guru

Joined: 18/08/2012
Location: United States
Posts: 772
Posted: 05:57pm 01 Sep 2021
Copy link to clipboard 
Print this post

I remember Peter saying that the SDO pin for the ILI9341 controller would not release the line when de selected... This would effect the data from the touch controller... As soon as I disconnected it, all went as expected with Touch Calibrate...   It could be the issue here also...
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1116
Posted: 12:33am 02 Sep 2021
Copy link to clipboard 
Print this post

I have a Pico mounted on my own backpack driving an ILI9481, with RTC and ESP8266 mounted.
Running 5.07.00b14. Running on external 5V from lab power supply into VSYS on the backpack via a schottky diode. Current draw is 247mA, 165mA with RTC and ESP8266 removed. Problems described below are identical whether RTC or ESP are mounted or not.

> option list
OPTION CPUSPEED (KHz) 133000
OPTION SDCARD GP15
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION SYSTEM I2C GP20,GP21
OPTION LCDPANEL ILI9481, LANDSCAPE,GP2,GP3,GP4
OPTION RTC AUTO ENABLED
OPTION GUI CONTROLS 64
OPTION MEMORY 64000, 96512
OPTION TOUCH GP5,GP6
GUI CALIBRATE 0, 3910, 194, -1311, 859
>


On loading new firmware with UPDATE FIRMWARE, GUI CALIBRATE works fine if previously calibrated successfully however, if I disable touch with TOUCH DISABLE then re-enable with OPTION TOUCH GP5,GP6 then try GUI CALIBRATE again, I get a continuous stream of 'Error: Touch not calibrated messages' after I have touched the first target. The only way to stop the error messages is to power off and then on again.

If I now enter GUI CALIBRATE 0,3920,210,-1285,868 I am able to complete the calibration and can carry out GUI CALIBRATE with no parameters correctly as many times as I like.
The actual parameters are not critical - any values around those above will 'restore' the calibrate operation even though you may get an out of calibration error. You can then successfully complete a GUI CALIBRATE.

If I make the first touch the briefest of taps, I can get to the second target but on touching that, the error message 'Error:Touch hardware failure' occurs just once. The system is not locked up in this case and entering GUI CALIBRATE with parameters completes successfully and then I can do GUI CALIBRATE as often as I like with no errors.

This is repeatable.

I also have the same problem with a Pico with ILI9341.

Doug.

Edit: Just saw the post with b15 - loaded up and tested as above and exactly the same problem with initial calibration after touch enabled occurs. D.
Edited 2021-09-02 10:48 by panky
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10610
Posted: 07:00am 02 Sep 2021
Copy link to clipboard 
Print this post

panky

Thanks for the excellent diagnostic. Please re-download b15 and try again. I think the version originally posted may have been incorrect as I could download it and get your result. Hopefully now corrected.
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1116
Posted: 12:14am 03 Sep 2021
Copy link to clipboard 
Print this post

Excellent Peter, now works exactly as it should:-

OPTION TOUCH DISABLE
OPTION TOUCH GP5,GP6
GUI CALIBRATE

Done. No errors
Deviation X = -2, Y = -3 (pixels)
>

Thanks,
Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025