My project : the any key - Page 1
Forum section: electronics / projects

author: iwasz
author_rank: Contributor
timestamp: June 11, 2014, 08:55:58 am
content: Hi my humble project implements button HID keyboard in fancy "emergency-button" casing, which you can reprogram to be any key or combination of keys you wish (open source hardware and software). It is made using Texas Instruments TIVA TM4C123 which is some kind of new incarnation of Stellaris micro as far as I know. The device was prototyped using Launchpad (http://www.ti.com/tool/ek-tm4c123gxl) which is great and I really love it. Then the PCB was designed (the launchpad schematic was invaluable) and programmed with the same Launchpad it was tested on. PCB mounted inside the case looks like that (eagle files are in my SVN, links in original blog post):The case is some (rather cheap like $8 here where I live) Chinese "emergency-button" which originally was meant to turn a machine off in case of accident or something:Firmware implements two interface USB HID device. HID Keyboard Descriptors were found on the Internet and modified by myself. Then additional software was made (GTK+ & C++) which interacts with the button (which at this time is also visible to the OS as oridinary keyboard) and enables the user to store almost any combination of keys (8 control keys + 6 regular keys) in the device. Main window of the app looks like this, these buttons you see below can be toggled. The combination of buttons pressed in will be sent to the host:Finally after user presses the button, the combination is sent. It may be Play/pause (original intention before the reprogramming idea), Power, or Ctrl-Alt-Del and so on. Like hardware inverted keyboard-shortcut. More info athttp://www.iwasz.pl/electronics/the-any-key/(source code and PCB attached).

author: mcinque
author_rank: Unknown
timestamp: June 11, 2014, 11:18:26 am
content: Well done!

author: tszaboo
author_rank: Super Contributor
timestamp: June 11, 2014, 12:20:52 pm
content: And it solves the awesome problem:"Keyboard not found. Press any key to continue!"

author: Gribo
author_rank: Frequent Contributor
timestamp: June 11, 2014, 12:24:37 pm
content: Do you have any plans for a foot pedal? Also, the MCU is a total overkill

author: madires
author_rank: Super Contributor
timestamp: June 11, 2014, 12:32:32 pm
content: Quote from: NANDBlog on June 11, 2014, 12:20:52 pmUnfortunately not, you have to press F1 to continue. So we need also a F1 key.BTW, this is a good example of over engineering. The simple solution is to take a label, print "anykey" on it and stick it to some key you never use.

author: dannyf
author_rank: Super Contributor
timestamp: June 11, 2014, 12:39:46 pm
content: Nicely done.

author: Mechatrommer
author_rank: Super Contributor
timestamp: June 11, 2014, 03:43:09 pm
content: man. 64pin chip for a big red emergency button for the keyboard combo something the idea i've never come across and hope will not be. congratulation! keep doing it you probably will get something from it. my emergency button is always 10 minutes drive to nearest pcshop.

author: zapta
author_rank: Super Contributor
timestamp: June 11, 2014, 04:42:18 pm
content: Quote from: NANDBlog on June 11, 2014, 12:20:52 pmYes, a 8 pin IC would dohttp://digistump.com/category/1but now the OP has a standard MCU that can do other and bigger things. Good job!I would use it as a Submit button for eevblog posts, you write the message and when done, Bang!

author: jancumps
author_rank: Unknown
timestamp: June 11, 2014, 05:26:20 pm
content: There's a croudfunding campaign running (and funded) for a similar idea:https://www.indiegogo.com/projects/very-serious-button

author: janoc
author_rank: Super Contributor
timestamp: June 11, 2014, 07:26:33 pm
content: Quote from: Mechatrommer on June 11, 2014, 03:43:09 pmI have built a pedal like that using some surplus military switches and VUSB on an ATTiny. Works a treat. Sometimes devices like this come useful.I am just surprised that someone has funded that Indiegogo campaign - Thinkgeek is selling a similar device for about half the price ...

author: Wh1sper
author_rank: Regular Contributor
timestamp: June 11, 2014, 07:56:47 pm
content: Quote from: madires on June 11, 2014, 12:32:32 pmI vote for theCAPS LOCK key it's the most shitty ugly useless resource waste everr!Man how often I curse this bloody shitty thing!

author: c4757p
author_rank: Super Contributor
timestamp: June 11, 2014, 08:03:59 pm
content: Quote from: Wh1sper on June 11, 2014, 07:56:47 pmReassign it to something else? I use it as Ctrl

author: theatrus
author_rank: Frequent Contributor
timestamp: June 11, 2014, 10:19:23 pm
content: Remapping caps lock to control has changed my life, and not just due to Emacs usage.

author: free_electron
author_rank: Super Contributor
timestamp: June 11, 2014, 10:39:33 pm
content: Quote from: zapta on June 11, 2014, 04:42:18 pmscrew that. we need at least a million transistors to make a button these days ! i don't get out of bed for less.any dodo can hook up two wires. where's the fun in that ?

author: zapta
author_rank: Super Contributor
timestamp: June 11, 2014, 10:56:10 pm
content: Quote from: free_electron on June 11, 2014, 10:39:33 pmI remember that days were portable radios had "6 TRANSISTORS" written proudly all over them. The first radio I built had none, just a diode. I like the almost free stuff we had these days.

author: jancumps
author_rank: Unknown
timestamp: June 12, 2014, 02:42:01 am
content: Quote from: free_electron on June 11, 2014, 10:39:33 pmthey have a special perk for you:https://www.indiegogo.com/projects/very-serious-button/contributions/new?perk_amt=16&perk_id=2006375

author: iwasz
author_rank: Contributor
timestamp: June 12, 2014, 11:08:39 am
content: Hi allQuote from: Gribo on June 11, 2014, 12:24:37 pmYES, I know that this is too huge µC for the task, but the goal (I wrote this on my blog) was to make a simple project to learn new micros (TIVA in this case). This is HOBBY-diy gizmo, not meant to be reasonably designedNo, foot pedal is not in my plans, but the button is so huge, I suppose one could try to hit it with footQuote from: jancumps on June 11, 2014, 05:26:20 pmThanks for that link! I was wondering about redesigning the thing on MSP430 and trying to sell it on the tindie or something, but something tells me that this is not as good Idea as I thought... But selling something on the Internet would be great experience and I want to try someday (must come up with another idea i guess though).

author: dannyf
author_rank: Super Contributor
timestamp: June 12, 2014, 11:18:58 am
content: However, if you allow the button to be programmable from a PC (aka, pushing to button to perform a particular task, not necessarily keyboard related), there could be an easy market for it. For example, in doctor's offices or for PC-based medical devices.I would also go with a easier / smaller mcu to lower the cost. There is a substantial opportunity here.

author: iwasz
author_rank: Contributor
timestamp: June 12, 2014, 11:36:12 am
content: Quote from: jancumps on June 11, 2014, 05:26:20 pmMaaan I'm amazed! It looks EXACTLY the same, and works quite exactly the same. I updated the post on my blog with this link...

author: Kjelt
author_rank: Super Contributor
timestamp: June 12, 2014, 12:49:40 pm
content: you need to sell it as a package of five such buttons for left, right, up, down and fire.The target audience are seriously addicted gamers so they at least get some excercise in their life.