07726 Writing Drivers for Standard Touchscreen Interface Hardware Although touchscreens are rapidly becoming more popular, most developers have never developed a touchscreen product before. This article details the steps to design a touchscreen product, guiding the reader through the hardware and software details required to make a touchscreen work for the first time. Touchscreens are everywhere today. Industrial control systems, consumer electronics, and even medical devices are equipped with touchscreen input devices. We all use touchscreens in our daily lives without even realizing it. We may use a touchscreen when withdrawing money from an ATM, signing for a package, checking in for an airplane, or looking up a phone number. This article introduces two newer CPUs that have built-in support for touchscreen input. This article will show how to write software drivers that can use these microprocessors to configure, calibrate, and continuously respond to touchscreen input. Finally, working code that can be downloaded and used for free will be provided as a basis for further design. Advantages and Disadvantages of Touchscreens as Input No input method is perfect, and there are certain applications and product types where touchscreens are not the best input method. To give the reader a clear understanding of the characteristics of touchscreens, the following is a summary of the advantages and disadvantages of using touchscreens as input methods. First, the pros: Touchscreens are undeniably cool and immediately make the product more fun to use. They are also very intuitive. When the user wants to select option A, he reaches out and touches option A. Isn\'t that intuitive enough? Even a two-year-old baby knows how to reach out and touch what he (or she) wants. Finally, the touchscreen is fixed to the system as an input device. If the user forgets where the remote control or mouse is, they will not be able to input. If the device with a touchscreen is placed in front of the user, the user can immediately use the touchscreen to input. As for the cons, the touchscreen may be used incorrectly in inappropriate situations. I am referring to safety-critical devices, for which the use of touchscreens can be very dangerous without proper precautions. Below I will summarize some of the most obvious potential problems, and if the reader wants to learn more, you can refer to more information. The first problem is parallax, which is the difference between the position of an object seen on the screen and its actual effective position on the touch panel. Figure 1 illustrates this problem. The most...
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore