Setup: Inkplate 4TEMPERA, Inkplate Arduino library 11.2.1, Inkplate board definitions 4.0.0, LiPo battery connected, frontlight off.
Problem: On battery alone the touchscreen is accurate. In a test with 44 taps on a 3×3 grid of targets, Y was off by 10–13 px on average and X by about 6 px. As soon as USB power is connected, the Y coordinate is pulled towards the middle of the screen by up to ~240 px, while X stays accurate.
This happens
- with a laptop running on its own battery as well as with several USB wall power supplies,
- with the LiPo disconnected,
- with your unmodified example
Inkplate4TEMPERA_Touchscreen_Draw(onlyDRAW_CIRCLEenabled), see the attached photo. On battery, taps along the left edge land exactly under the finger. With USB power, taps at the top, middle and bottom of the right edge all land at one spot slightly above the middle, while the distance to the edge stays correct.
Switching on the frontlight causes the same effect. A 9-point calibration done on USB power comes out compressed: Y measured 263 / 285 / 366 px for targets at 90 / 300 / 540 px (the battery was charging at about 190 mA).
Questions
- Is this expected for the 4TEMPERA, or is my unit defective? Could you try to reproduce it on another 4TEMPERA with the Draw example?
- Is there a fix, for example a touch controller setting, a hardware change or a power supply you recommend? I would like to mount the display on a wall and power it permanently over USB.
I log the raw coordinates of every touch packet and can share them if that helps.
Side note: touch reset in library 11.2.1 (possibly related to topic 1965, touch IC missing at 0x15)
After some cold starts my touch controller stopped responding (missing at 0x15, or no hello packet) and stayed like that on every following boot.
- The hardware reset has no effect on the 4TEMPERA.
TOUCHSCREEN_RSTis pin 1 of expander 2, but it is never set as an output: the board init configures pin 0 (TOUCHSCREEN_EN) and then pins 2–15 in a loop (for (int i = 2; i < 16; i++)inInkplate4TEMPERA.cpp). Pin 1 stays an input, sotsHardwareReset()never drives the line. Touch::power(), whichend()andshutdown()use, writesTOUCHSCREEN_EN/TOUCHSCREEN_RSTtoexpander1without theARDUINO_INKPLATE4TEMPERAcheck thatinit()andtsHardwareReset()have. On the 4TEMPERA, pins 0 and 1 of expander 1 are the panel’sOEandGMOD, sotouchscreen.shutdown()toggles the e-paper control lines instead of the touch power.
What fixed it for me: set expander 2 pin 1 as an output, hold RST low, switch the touch power off (EN high) for 300 ms, switch it on again (EN low), wait 20 ms, release RST and wait 300 ms before touchscreen.init(true). If the hello packet still does not arrive, starting the controller the way the Linux ektf2127 driver does (read pending packets, set it active, read the resolution) works.
Thanks!
Attachments:
