Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1] 2
Author Topic: Touchscreen expired from this mortal coil
JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Touchscreen expired from this mortal coil
on: October 7, 2015, 09:59
Quote

Hi Sandy

I decided to dust off my polargraph as I have had some new ideas for 'art', but...tragedy! The touch screen seems to no longer be working. I have an original 2.2 screen I got from you, oooh, maybe in summer 2012? 😯 Anyway, will I need to buy a new polarshield and LCD or can I just replace the LCD?

Ta

Steve

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 7, 2015, 20:34
Quote

Beardy! Good to see you back. The interface for the LCD hasn't changed over the years, so you can replace it with another one that has the same 40 pin header.

The 2.2" screens kinda disappeared from the market, but I think I have a handful left. Otherwise the new 2.4" screens work ok too, with a rebuild of the firmware. Though they are getting more difficult to find too - the most modern ones use serial communications rather than the big-header parallel bus.

This resembles the screen I use:
http://www.elecfreaks.com/store/24-tft-lcd-tft0124-p-110.html
or
http://www.emartee.com/product/41969/

There is a minor difference between the different ones out there on the market, but they'll all work with a bit of (straightforward) modification to the firmware.

If you drop me an email (sandy dot noble at gmail.com) reminding me of your address, I'll send you a new 2.4" screen, or I can check for a 2.2" one if you'd prefer to keep it original 🙂

Lastly - there's been an issue with touchscreens not working recently. I haven't quite diagnosed the issue, but it seems to be a static-y kind of problem that prevents the touch IC from booting properly, or communicating properly. Or something like that.

This is only a problem for machines where your hands can touch the PCB, and proper grounding, with careful handling seems to bring it back to life. It's not broken, just malfunctioning. So not sure if that might be something to investigate.

sn

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 9, 2015, 10:39
Quote

Hi Sandy

Good to be back 🙂
Thanks very much for the info and offer to help sort this out. I have my machine in a printed case, and I've retested again today, still no dice.
I'll drop you an email - I may as well go for a 2.4 if that's ok.

Beardy

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 9, 2015, 21:46
Quote

Seems only fair given how much I lifted the pen holder design off you in the first place!

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 11, 2015, 14:38
Quote

My pleasure to share!
I'm beginning to wonder if this is just a touchscreen problem, as I connected via USB, enabled the queue, and sent a pen lift - responded ok, but then I sent a return to home and then a 'move pen to point' command and nothing happened. Just to be sure I complied and uploaded the latest firmware, which went ok - but same result. Any ideas?

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 11, 2015, 19:43
Quote

Unless you've sent a "set home" first, nothing will do anything. "Set home" should engage the motors, and move-pen-to-point will do something once the motors are on, even if the machine isn't calibrated.

"move direct" might not work if the machine isn't sync'd with your controller properly. (Do an "upload machine spec" to sync.)

sn

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 12, 2015, 14:08
Quote

Yeah, I did do that, though your comment did make me doubt myself enough to re-check 🙂 The commands show up on the display as though they are executing but nothing happens (see pic).
Maybe I should just bite the bullet and buy a new shield and screen from your store. At least that way I could get right up to date 😀
Image

I'm still breathing and it's better than the alternative

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 20, 2015, 14:37
Quote

Hi Sandy

Thanks for sending through the new screens, they just arrived. Yippee! Unfortunately, still no good, I tried the 2.2" screen first as that's a straight swap, no good, so I uploaded the latest 2.4" pre-compiled image and swapped to the 2.4" screen but still no dice. Any other ideas?

Sorry to be a continuing pain!

I'm still breathing and it's better than the alternative

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 20, 2015, 17:51
Quote

A little update: I ran the Utouch calibration sketch and that worked fine, it generated some new values which I put in to UTouchCD.h and now the top half of the 'More...' and the 'Calibrate' buttons toggle the 'Pause/Resume' button. I suppose that is some sort of progress 🙂

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 20, 2015, 20:19
Quote

Hm, small progress, true, but it shows the thing physically works at least! Hurray. That kind of issue is typical of miscalibration of the touchscreen.

There's two things to change when defining the screen, you might already know this, but I'll say it anyway:

1) Define the screen type:
https://github.com/euphy/polargraph_server_polarshield/blob/master/polargraph_server_polarshield.ino#L58-L63

#define LCD_TYPE TFT01_24_8
or
#define LCD_TYPE ITDB22

2) Calibration details:
https://github.com/euphy/polargraph_server_polarshield/blob/master/polargraph_server_polarshield.ino#L31-L35
Calibration details go into UTouchCD.h. I think you've probably done both these things.

So just double-check those things. The calibration strings for the 2.2 screen and the 2.4 screen are in the file above.

There isn't much difference (electrically) between the version of polarshield you have vs the newest ones. The way the level shifting is done is a little different, but the outputs should be the same.

Actually, the new way of doing it (with buffers rather than resistors to drop the voltage from 5v to 3.3v) _was_ in response to some problems I was having with the LCD screens. In hindsight though, I've wondered if those problems were my regular static electricity problem - before I figured out they were static problems.

Sandy Noble

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 21, 2015, 10:18
Quote

Yeah I have done all that but only with the 2.4" screen - I'll have go with the 2.2" one. The screen is definitely in full working order as the Utouch calibration sketch ran perfectly - which would also indicate the polarshield is good too, wouldn't it?
Just a little note, the sample calibration values in UTouchCD.h for the 2.4" v2.1 screen have a typo, third one is defined as CAL_Z when I think that should be CAL_S?

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 21, 2015, 13:00
Quote

That it works ok for the calibration routine indicates that the polarshield is ok too - I believe that is true, and it's the rationale I've used.

I might try to do some more experiments around the timing of the init_touch stuff ... Because it is impossible to predict when the touch does work, and when it doesn't, it's really hard to do this kind of test.

You're probably right about the CAL_Z thing - where is the CAL_Z? Is it in the copy of UTouchCD.h that I've got in the code bundle?

Thanks for digging into this,
sn

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 21, 2015, 18:30
Quote

I wonder if my Arduino is the problem - only way to test that is to get another one, which I don't really fancy!
The file in question is in the latest release, in the 2.0 zip. Arduino-source/libraries/utouch/UTouchCD.h I think.
Beardy

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 21, 2015, 21:14
Quote

I reckon if the thing works at all, then it's not an arduino _or_ a shield issue.

I know you've tried the calibration sketch, have you tried either of the other UTouch sample apps? There's a buttons one, and a paint one.

Oh yes, I see the CAL_S. Duh. Good spot.

sn

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 21, 2015, 21:17
Quote

Wrote up a little relating to this at http://www.polargraph.co.uk/2015/10/touchscreen-issues/.

Doesn't really solve your issue, but might be helpful to anyone following this.

sn

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 22, 2015, 18:19
Quote

I'll try the other sample apps, but here's an update: I managed to get a set of calibration values that sorta worked - all the buttons worked if you hit the top right corner of them with a stylus. Huzzah! Trouble is, the unit doesn't respond to anything except pen lift/drop - which is the same as when controlling via usb, so it's beginning to look like it might well be a P-shield or Arduino issue. I'll update again when I've run the test apps.

I'm still breathing and it's better than the alternative

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 22, 2015, 18:43
Quote

Right, I've run the example apps, and at least it's consistent! I checked the values from your post (it's what I had from the calibration sketch) and uploaded. The button app is exactly the same as the Polargraph app - every thing is offset up and to the left, i.e. when I hit '1' nothing happens, when I hit '2', 6 flashes red and 6 is output, '3' gives 7, '4' gives 8 etc.
Same with the painting app, though that's a bit weirder as all inputs are duplicated with a similar offset but also in a different colour.

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 22, 2015, 21:16
Quote

I'm pretty puzzled about it. There's so little on the polarshield that actually does anything that I almost can't think what could be causing the issue. It's just resistors. And even more odd that it's something that changes over time - I mean it _used_ to work ok, but now it doesn't.

sn

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Touchscreen expired from this mortal coil
on: October 23, 2015, 09:27
Quote

Yiiiiiiipppppppeeeeee! I've got it working 🙂 I dug up a copy of the 1.10 software package from backup and used Xloader to upload the image and whaddya know? It's a winner!

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Touchscreen expired from this mortal coil
on: October 23, 2015, 17:31
Quote

Ha ha! Pulled it out the bag there 🙂

So anyway, that's weird. Some combination of configuration that we hadn't tried I guess?

sn

Pages: [1] 2
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.056 seconds.