Keyboard Emulation


Author: Dave
Date: 09.03.16 - 2:06pm





So i use a programmable keyboard so I can have one click copy/paste. I need this because my wrist is starting to feel a couple decades of twisting and gyrating to hit these key combinations.

The problem is the keyboard drivers are bloated. They install like 6 kernel drivers, require you to login to download your profile, download hundreds of megs to your disk etc etc.

It really seems bloated and lazy and overkill. I just want something simple. How hard can it be to automate ctrl+c when you click a button?

Turns out it is pretty easy. The arduino leonardo supports mouse and keyboard emulation over usb. About a page of code latter and we have a nice little contraption that can send various commands to the PC at the click of an external button. As a bonus I also wired up another switch and a potentiometer that allows me to send variable speed clicks or scroll wheel messages to the active window.

As a bonus I also rigged up a couple foot pedals for copy/paste since they get used the most.

Project is beginner level and very simple to put together. If you are just getting your feet wet with arduino, You can do this!

You can find the code here. The video is embedded below.



After this initial testing phase was done, I went ahead and built version 2 with real keyboard buttons, real enclosure, and some more features.






Comments: (1)

On 09.13.16 - 7:35am Dave wrote:
External Links:

 
Leave Comment:
Name:
Email: (not shown)
Message: (Required)
Math Question: 36 + 39 = ? followed by the letter: W 



About Me
More Blogs
Main Site
Posts:
Electronic dividing head
Thoughts on next RC blower
Crawl Space Forklift
Remote Control Snowblower
Servo control for linear actuator
Arduino RC motor control
Keyboard Emulation
Arduino w/ win2k
Arduino Snowblower chute control
Attic Fan Remote Control
Robotic Arm
ATTiny Watchdog
ESP-LINK Huzzah
IoT Humidor v2
Arduino Bugs
Arduino INI library
Arduino Yun
long watchdog
Arduino runtime config
CNC Rotary table
AutoWater humidifier
Humidor AutoWater
KeyPad Bruteforcer