Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch not working reliable #4

Open
pixelwave opened this issue Dec 31, 2023 · 43 comments
Open

Touch not working reliable #4

pixelwave opened this issue Dec 31, 2023 · 43 comments
Labels
Pending Pending

Comments

@pixelwave
Copy link

I have the issue that the touch screen is not working reliable on my T-Display-S3-Pro. The problem is with the factory code as well as my custom code using Arduino GFX + LVGL. When using the "capacity touch" sample code it seems to detect all inputs so it does not really seem like the device itself is broken? I also have a second unit - same behaviour?

IMG_2333.mp4
IMG_2338.mp4
@lewisxhe
Copy link
Contributor

First confirm whether the touch is normal, you can write https://github.com/Xinyuan-LilyGO/T-Display-S3-Pro/tree/master/examples/CapacitiveTouch to test.

@pixelwave
Copy link
Author

First confirm whether the touch is normal, you can write https://github.com/Xinyuan-LilyGO/T-Display-S3-Pro/tree/master/examples/CapacitiveTouch to test.

Did you read my post? That is what I already confirmed „.. when using the "capacity touch" sample code it seems to detect all inputs so it does not really seem like the device itself is broken“.

@pixelwave
Copy link
Author

pixelwave commented Dec 31, 2023

Still troubleshooting … the issue seems to get worse when using battery instead of usb power?

I also read about battery related issues with other ESP32 projects:

„I had the same problem. The solution was to bild a touch pad with two areas (for example two half circles) , one for touch pin and the other one connected to ground. It seems that a pc has more "mass" and therfore a better ground for the circuit. With battery or another power suply the touch pad has to have an aditional pad to ground.“

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 31, 2023

When you apply it in your project, have you printed the touch output coordinates and are they normal? Or do you display it on the screen and observe whether the coordinates are the same as the actual touch position?

Which touch library are you using?

@pixelwave
Copy link
Author

pixelwave commented Jan 1, 2024

So I can confirm it has something to do with battery vs usb powered mode.

You can try my sample code yourself (https://github.com/pixelwave/t-display-s3-pro) with the following test setups:

  1. Power Switch "OFF", connected and powered from USB port (PC/Laptop)
  2. Power Switch "ON" battery powered only

In scenario 1) the touch inputs work reliably and 99% of the time. In Scenario 2) the touch is a hit and miss. Sometimes the buttons work sometimes not.

So in summary I assume a general hardware issue with the board design and how the battery is connected (GND issue?). I hope this can be resolved in an updated version (I have V1.1) because otherwise the product is quite awesome! But with that flaw currently unusable im battery mode.

Contacting support to find a solution ..

@ShallowGreen123
Copy link
Collaborator

I used the sample code test above.
In Scenario 2, touch is normal.

f469bf22e2bf041bba4ce5368b63e49e.mp4

@ShallowGreen123
Copy link
Collaborator

Please tell me how many S3-Pro you bought in total, you can contact the after-sales service to return or replace the goods.

@pixelwave
Copy link
Author

I bought 2 in total already contacted sales ([email protected]) and they forwarded it to the orders ([email protected]) team. Currently waiting for their feedback. I noticed you are using a different unit? Is it maybe a preproduction or newer unit? Has there been any updates since V1.1? Because both my units show the same behaviour I tend to believe it is more a general hardware design issue?

See below my production (V1.1) device with and without cable:

IMG_2346.mp4
IMG_2347.mp4

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 2, 2024

I know what your problem is. Please change it to the following:

build_flags=
        ; -DARDUINO_USB_CDC_ON_BOOT=1
        -UARDUINO_USB_CDC_ON_BOOT

If Cdc is turned on, the serial port will block the program from running.

@pixelwave
Copy link
Author

The arguments are as written in the official lilygo sample code.

But I compiled it with the variables like you suggested:
Screenshot 2024-01-02 at 17 30 23

No change same behaviour. When in "battery mode" touch screen does NOT work reliably.

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 3, 2024

Please note that
; -DARDUINO_USB_CDC_ON_BOOT=1
has been commented out and
-UARDUINO_USB_CDC_ON_BOOT
is enabled

@pixelwave
Copy link
Author

Compiled now like this:

Screenshot 2024-01-03 at 08 15 56

Still unchanged behaviour. USB powered = all fine. Battery powered = touch very janky.

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 3, 2024

If you can try to enter the binary file I provided, and test whether it is caused by environmental reasons.

The writing method can follow here

t-display-s3-pro_0103.zip

@pixelwave
Copy link
Author

Flashed once with esptool and once with thonny. Same faulty behaviour.

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 3, 2024

Unable to flash?
Or is there still a problem with touching after writing?

@pixelwave
Copy link
Author

Flashing worked both times. I just wanted to try with different tools. Also both times completely erased flash.

The touch problem is still there.

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 3, 2024

I have received a message from customer service. I am very curious about what the problem is. Customer service will communicate with you next. I hope to send back these two boards. I want to find out the reason.

@pixelwave
Copy link
Author

pixelwave commented Jan 3, 2024

Yes me too! Would love to ultimately fix the problem and have working boards. Because the product on paper is great. So I am going to contact with customer support next to send the boards back? I will leave the code on there for you to check ...

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 3, 2024

The issue will be kept. If it can be received, I will continue to update it.

@lewisxhe lewisxhe added the Pending Pending label Jan 3, 2024
@pixelwave
Copy link
Author

... support is not answering anymore? I asked how to return the product. Can you help or contact them?

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 8, 2024

Haven't you already contacted customer service?

@pixelwave
Copy link
Author

Yes ... but no replay since a week after I asked how to send back?

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 8, 2024

Tomorrow I will ask how to deal with it, and I will reply to you here after I get the answer.

@pixelwave
Copy link
Author

Thanks a lot!

@lewisxhe
Copy link
Contributor

Thanks a lot!

Did customer service contact you?

@pixelwave
Copy link
Author

Did yesterday - thanks for pinging. But still waiting for their solution on how to ship back the products.

@samarkh
Copy link

samarkh commented Feb 25, 2024

My unit also has the same issue, fine on USB power, but bad when self-powered.

@pixelwave
Copy link
Author

After all testing I really think it is a hardware based issue. Maybe just for this specific revision (mine was V1.1). @lewisxhe BTW I am still waiting for the shipping cost refund until I can return the two units for you to test ...

@lewisxhe
Copy link
Contributor

lewisxhe commented Mar 5, 2024

@pixelwave Hi, have you not arranged how to ship it back after the sale? It's a little weird that both of them have problems. If I can ship them back, I will check what caused the problem.

@czm8
Copy link

czm8 commented Mar 16, 2024

I'm wondering if anyone knows if there is a solution for this. I recently came across the same issue - When I have the T-Display S3 Pro connected to my computer with a USB cable the touch screen reacts quickly and perfectly. However, when I disconnect the USB cable from the T-Display S3 Pro the touch because much less reliable and often doesn't sense my finger touching the screen. I have it set up so that it displays the x and y coordinates on the screen so I can see if it sees where I touched the screen and there I can see that the numbers do not change.

I have also recreated the problem I was seeing before - this time using the "CapacitiveTouch" example provided by LilyGo on their GITHUB page meaning I can rule out anyting in my code as being a problem. https://github.com/Xinyuan-LilyGO/T-Display-S3-Pro/tree/master/examples/CapacitiveTouch

To summarize, the problem is a follows, when the unit is powered from the USB port, it recognizes all touches on the screen without any problems. When the USB power is removed and the unit is powered by the internal battery it sometimes works and sometimes doesn't recognize the touches on the screen. This makes the T Display S3 Pro unusable for me as a battery powered, portable device.

I have sent LilyGo an email about this issue but I still have not heard back from them. Oh and my unit is version 1.1

@pixelwave
Copy link
Author

@pixelwave Hi, have you not arranged how to ship it back after the sale? It's a little weird that both of them have problems. If I can ship them back, I will check what caused the problem.

I wrote customer service now one last time. The faulty products are packed and ready to ship batteries removed and all as advised. But they still did not refund the return shipping cost. In fact it took so long DHL now raised fees for shipping. -.-

If you guys are still interested in receiving the faulty products I told them they have until March 22nd to respond - otherwise I will destroy them and close this case.

But seeing now more and more cases popping up - again I believe it is probably a hardware issue of the entire batch / revision. So you should be able to also recreate this error if you have a hardware version V1.1 laying around ...

@pixelwave
Copy link
Author

@lewisxhe

Did the boards arrive by now? I saw some people have the same issue with the T-Display-S3-Pro. Could you maybe verify this with a hardware revision (V1.1) if you have units available locally?

@lewisxhe
Copy link
Contributor

lewisxhe commented Apr 9, 2024

I haven't received the package yet, it should still be on its way. I will test it as soon as I receive it.
All factory tests are conducted using batteries for power supply, and no such situation has been found so far

@pixelwave
Copy link
Author

Hi @lewisxhe, any updates so far?

@lewisxhe
Copy link
Contributor

Just inquired and it has arrived, I will test it as soon as I get it

lewisxhe added a commit that referenced this issue Apr 30, 2024
@lewisxhe
Copy link
Contributor

@pixelwave I have tested the two boards you sent back. One of them is labeled with a defective device. I tested it and the touch was very insensitive when powered by battery. After testing, it became normal after replacing the screen, so I suspect it is. The sensitivity of the capacitive touch screen decreases when powered by battery, but works normally when powered by USB. I have reported the problem to the supplier.

Judging from the current tests, it is the touch sensitivity of the screen that causes the touch to be insensitive. I have added a touch screen test to the factory test steps. This should be avoided in the future. Thank you again for your feedback.

@lewisxhe
Copy link
Contributor

oh! By the way, another device without a label is powered by a battery. My test here is normal and no problem is found.

@pixelwave
Copy link
Author

@lewisxhe Thanks for the feedback. As I also expected seemed to be a hardware issue. I my case both products I ordered showed the same faulty behavior. Maybe it was a bad batch / slipped through quality control.

Would be nice to receive an updated (V1.2) or quality controlled version. I still like the board / form-factor combination for a lot of use-cases. But the touch needs to work reliably every time when running on battery ...

@pixelwave
Copy link
Author

@lewisxhe

"The sensitivity of the capacitive touch screen decreases when powered by battery, but works normally when powered by USB. I have reported the problem to the supplier."

Is there a new hardware revision out that solves this issue? I am still very interested in the product.

@lewisxhe
Copy link
Contributor

lewisxhe commented Jun 5, 2024

You just need to place a new order. All our products are tested before leaving the factory.

@ripplebiz
Copy link

I am experiencing the same touch problems when powered by battery.
My unit was only purchased recently, about beginning of Aug. So, is this faulty touch hardware still an issue?

@pixelwave
Copy link
Author

I am experiencing the same touch problems when powered by battery. My unit was only purchased recently, about beginning of Aug. So, is this faulty touch hardware still an issue?

What is your hardware revision (if I remember correctly it should be printed on the PCB if you remove the battery)? Mine was "V1.1".

@ripplebiz
Copy link

I have the 'expansion' version, and doesn't have a battery. Can't see the PCB, so not sure what the version is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending Pending
Projects
None yet
Development

No branches or pull requests

6 participants