Reaching out to a touch screen with a microcontroller

We love capacitive touch screens. They’re much more robust than resistive touch screens and if the UI is programmed well they produce a great user experience. But getting your electronics project to interact with one is a bit tough. [RobB] has been experimenting in that area, and managed to build a simple touchscreen actuator for microcontroller use.

In the video after the break you can see his proof of concept. He’s using an Arduino to enter the number 2 on an Android  iOS calculator app once every second. It doesn’t take much to pull off this trick, [RopB] just taped a piece of tin foil to the screen and connected it to the Arduino with a jumper wire. The pin is left floating until a screen tap is needed, at which point it is pulled to ground.

A custom app operating at slow speeds could use this as an input technique. Two pieces of foil (one acting as clock, the other data) would provide a rudimentary serial transfer system.

http://www.youtube.com/watch?v=JDgDMBquBw0

Comments

  1. onaclov2000 says:

    I sent in a project that uses bluetooth to communicate to the phone but that controls the phone rather then the other way around (I.E. the arduino device can control music volume). If anyone is interested this is the link.

    http://blog.onaclovtech.com/2012/04/introducing-proof-of-concept-music.html

  2. doomstalk says:

    Not to be pedantic, but that looks like iOS, not Android (note the “iPod” in the upper left corner).

  3. me says:

    But it should work on Android just the same

  4. fightcube says:

    Hmm, I can just see someone in the future making a conductive GRID to AUTOMATE high scores on touchpads ;-)

    Should be easy to do doable for games that have simple button inputs.

  5. Mike Szczys says:

    I just spent 45 minutes playing around with this. You can get it to work. But it’s SUPER touchy and not practical. I even made a post with video about my failure: http://jumptuck.com/2012/05/04/android-app-binary-coded-ascii-characters/

    • RobB says:

      Hey Mike, thanks for posting this.

      First, I did mention in my blog that it was very fragile and using two pads did not work. I do believe it could be made much more reliable with the right circuitry behind it, I’m just not sure what that is yet.

      Second, You don’t need two pads to communicate. A clock is not strictly required for serial communication, e.g. 1-Wire.

  6. JO says:

    Why would you want to do a serial transfer using the touchscreen? That sounds rather pointless

  7. Tom says:

    Yes, you’ll find that these circuits will be very sensitive. The sensors on the screen measure changes in the femtofarad range, it’s actually pretty impressive. Reducing the length and gauge of the wire will help a lot.

    Also, just leaving a pin in high z mode really isn’t sufficient. There’s way too much capacitive coupling to ground. You’ll only get reproducible results using an actual mechanical relay.

    Finally, this would probably be about the slowest way to send data I can think of. The touchscreens only update the OS on the order of 10 Hz.

  8. Andrew says:

    What about putting a layer of dielectric material between the foil and the screen? Then pulse the foil positive or negative to charge/discharge the dielectric material.

    Would that work?

    • fightcube says:

      The screen is already a dielectric, and you put a charge on the conductive material, not the dielectric ;-)

      • Andrew says:

        Can you explain this more – I don’t understand? I thought that your finger was additional dielectric material that altered the capacitance of the touchscreen. Wouldn’t some additional dielectric material allow you to add/remove charge to that portion of the screen?

        In the normal capacitive touchscreen, what are the two capacitor plates?

      • fightcube says:

        http://en.wikipedia.org/wiki/Touchscreen#Capacitive
        “A capacitive touchscreen panel consists of an insulator such as glass, coated with a transparent conductor such as indium tin oxide (ITO).[12][13] As the human body is also an electrical conductor, touching the surface of the screen results in a distortion of the screen’s electrostatic field, measurable as a change in capacitance. Different technologies may be used to determine the location of the touch. The location is then sent to the controller for processing. Unlike a resistive touchscreen, one cannot use a capacitive touchscreen through most types of electrically insulating material, such as gloves; one requires a special capacitive stylus, or a special-application glove with an embroidered patch of conductive thread passing through it and contacting the user’s fingertip. This disadvantage especially affects usability in consumer electronics, such as touch tablet PCs and capacitive smartphones in cold weather.”

        ..

        “Mutual capacitance

        This is common PCT approach, which makes use of the fact that most conductive objects are able to hold a charge if they are very close together. In mutual capacitive sensors, there is a capacitor at every intersection of each row and each column. A 16-by-14 array, for example, would have 224 independent capacitors. A voltage is applied to the rows or columns. Bringing a finger or conductive stylus close to the surface of the sensor changes the local electrostatic field which reduces the mutual capacitance. The capacitance change at every individual point on the grid can be measured to accurately determine the touch location by measuring the voltage in the other axis. Mutual capacitance allows multi-touch operation where multiple fingers, palms or styli can be accurately tracked at the same time.”

        Want more info?
        http://bit.ly/IW633i

  9. RobB says:
  10. janwillempenterman says:

    A while back I made something similar, using just a 555 and a bilateral switch.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 91,933 other followers