Amal Mathew
Published © GPL3+

A Pocket-Sized Touch Keyboard

A small, Arduino-based physical device that can perform different keyboard operations through capacitive touch sensing.

BeginnerFull instructions provided30 minutes4,552

Things used in this project

Hardware components

Arduino Micro & Genuino Micro
Arduino Micro & Genuino Micro
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Resistor 1M ohm
Resistor 1M ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Circuit diagram

Code

capacitive touch login device -arduino code

Arduino
it is an example that shows what you can do with it.This code can be used to simplify your login process.
Every keyboard function can be added to the board.
#include <CapacitiveSensor.h>
#include <Keyboard.h>

CapacitiveSensor   cs_2_4 = CapacitiveSensor(2,4); // 1M resistor between pins 2 & 4, pin 4 is sensor pin, add any metallic object such as foil ,coin etc..


void setup()                    
{
   cs_2_4.set_CS_AutocaL_Millis(0xFFFFFFFF);// turn off autocalibrate on channel 1 - just as an example
   Serial.begin(9600);
    Keyboard.begin();
   
}

void loop()                    
  {
 long sensor1 =  cs_2_4.capacitiveSensor(50);
 
   if(sensor1 >= 1000)
   {
  
  Keyboard.print("p@ssW0rD");      //Enter your password here
    Keyboard.press(KEY_RETURN); //Enter key
    delay(150);
    Keyboard.releaseAll();
    }
  }

Credits

Amal Mathew

Amal Mathew

18 projects • 52 followers
Maker | Open source ❤️| Engineer 👉🏽Technology for the Sake of Humanity

Comments