Connecting a Resistive Touch Panel with an XPT2046 Driver to STM32 and Calibrating It Using Four Points.

Connecting a Resistive Touch Panel with an XPT2046 Driver to STM32 and Calibrating It Using Four Points.
Дисплеи

There are already several articles about resistive touch panels on this site: here you can read how they work, and here how to connect one to an AVR and calibrate it. So below I'll only talk about the subtleties of working with such a panel. As you know, data exchange with the XPT2046 happens over SPI, so you just need to find a free one and connect to it. Usually, to see which pins are assigned to which SPI...

How to Get Touch Point Coordinates and Calibrate a Resistive Touch Panel, Using the XPT2046 as an Example.

How to Get Touch Point Coordinates and Calibrate a Resistive Touch Panel, Using the XPT2046 as an Example.
Дисплеи

In the previous article we looked at how to initialize the controller; in this one we'll figure out how to get the touch coordinates and calibrate the touch panel. Before determining the touch coordinates, the touch itself has to be detected; for this we'll use the dedicated T_IRQ pin, which goes to logic zero when the panel is touched. It would be good to connect it to a pin responsible for...

How a Resistive Touch Screen Works, Using the XPT2046 Controller as an Example.

How a Resistive Touch Screen Works, Using the XPT2046 Controller as an Example.
Дисплеи

As you know, touch screens today come in 2 types: resistive and capacitive. Their main difference for the user is that a resistive screen responds to pressure, while a capacitive one responds to touch. Let's look at how each of them is built. A resistive screen is a glass liquid crystal display covered with a flexible membrane. On the facing...