Capacitive Touch Keyboard Input

1,182

7

1

This project allows you to have capacitive touch keyboard input. Which means you can touch a wire or any conductor with your finger and it will input as a USB keyboard key into any Computer, Raspberry Pi, etc.

I've searched and searched how to do this, but ended up figuring it out my self, now I'm excited to share it.

To do the USB keyboard emulation you will need a ATmega32U4 based Arduino such as the Leonardo. The ATmega328P based ones, such as the UNO don't support this. Also it uses the analog pins. Leonardo and clones have 6 inputs. Smaller ATmega32U4 boards have 4 or 3.

You can get a ATmega32U4 board for about $3 to $8 on AliExpress

Having touch keyboard input can be usefull for many projects including making a cheap Makey Makey.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Arduino Sketch

The Keyboard.write command sends the keyboard input. Letters and numbers can be put in single quotes. For function keys you will need to look up the hex keyboard modifier.

My sketch has keys useful for navigating Kodi media player.

You will need to install the ADCTouch library to compile the TouchKeyboard sketch.

In Arduino IDE, choose Sketch | Include Library | Manage Libraries. Search for "ADCTouch" by martin2250 and install

Make sure you have the following settings under Tools:

Board: Arduino Leonardo

Step 2: Easy to Use in a Project

It's easy to put in a project. In this example I just used some alligator jumpers and screws to make a Kodi controller.

Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    Discussions

    0
    None
    SethB62

    Tip 1 year ago

    Private message me if you need tech support on this project