O'Reilly logo

Arduino Workshop by John Boxall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Accepting User Input with Touchscreens

In this chapter you will

  • Learn how to connect a resistive touchscreen to your Arduino

  • Discover the values that can be returned from the touchscreen

  • Create a simple on/off touch switch

  • Create an on/off touch switch with a dimmer-style control

We see touchscreens everywhere today: smartphones, tablets, and portable video-game systems. So why not use a touchscreen to accept input from a user?

Touchscreens

Touchscreens can be quite expensive, but we’ll use an inexpensive model available from SparkFun (part numbers LCD-08977 and BOB-09170), originally designed for the Nintendo DS game console.

This touchscreen, which measures about 2 by 2 3/4 inches, is shown mounted on a breadboard in Figure 10-1.

Figure 10-1. Touchscreen ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required