Slashdot Mirror


The Awesome Button

An anonymous reader writes "An awesome hardware hack which demonstrates how easily USB-based human interface devices (eg, Keyboards and Mice) can be created using the Arduino software environment." A very nice little project based on the Teensy USB Development Board. Reminds me of the breadboard electronics projects my Dad used to work on with me many years ago. "Great fun for young and old," you might say.

15 of 80 comments (clear)

  1. Re:Did anybody read this as human usb device? by Anonymous Coward · · Score: 2, Informative

    Goatse, do not click

  2. Re:WE KNOW by Anonymous Coward · · Score: 2, Informative

    This isn't V-USB, which requires pretty advanced C programming knowledge. It's based on the Arduino software, which makes it far easier and more accessible.

    Sure, the final result is the same if you're in that elite C coder camp, and you probably even view Arduino as a toy not worthy of your attention.

    But for the rest of us, Arduino makes the things that ought to be easy, well, easy. You could even same it's awesome^H^H^H^H^H^H excellent.

  3. The HID interface is nice. by Animats · · Score: 2

    Yes, the USB HID interface is quite easy to use. I've dealt with it from the other side, using a Logitec steering wheel, mouse, and pedals to control a robot vehicle.

    Force feedback via that interface is lame, though. I wanted to have the steering wheel track what the vehicle steering was actually doing, so you'd feel the resistance of the real steering. You could spin the steering wheel, and it would take a second or so for the real vehicle's steering to catch up. But the HID interface for steering wheels is more like an audio device, intended for vibration, not positional feedback.

    Incidentally, you can have many HID devices, and they don't have to pretend to be the main mouse and keyboard. Applications aware of them can use them for other inputs.

  4. Re:Don't Click The Link! by YrWrstNtmr · · Score: 2

    I don't click TinyURL or bit.ly links as a matter of course.

  5. Re:Don't Click The Link! by Ant+P. · · Score: 3, Informative

    Which base64-decodes to:

    <title>Your url anti-shortener works?</title><img src=http://bit.ly/ejGjtK height=100% />

    Which, predictably, redirects to this:

    ~ $ curl -I http://bit.ly/ejGjtK
    HTTP/1.1 301 Moved
    Server: nginx
    Date: Sat, 09 Apr 2011 17:40:20 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    Set-Cookie: _bit=4da09a04-0007f-06d8f-f4ac8fa8;domain=.bit.ly;expires=Thu Oct 6 13:40:20 2011;path=/; HttpOnly
    Cache-control: private; max-age=90
    Location: http://goatse.ru/hello.jpg
    MIME-Version: 1.0
    Content-Length: 118

  6. Custom game controller by stevegee58 · · Score: 2

    Think of the custom game controller possibilities for PC-based gaming.

    With some custom DIY mechanical design you could make foot controls, chair arm controls, etc all fed through the keyboard interface.
    This little USB gadget makes it much easier.

    Awesome!

    1. Re:Custom game controller by Servaas · · Score: 2

      You also use a 2 dollar throwaway keyboard, rip out the print board and solder directly to a keyboard interface. Sure you loose the keyboard codes that you use but its cheaper, easier, and entirely not my idea. But I am using it to make me an SNES pad to USB.

    2. Re:Custom game controller by Jeff+DeMaagd · · Score: 2

      Every keyboard I've seen have a huge circuit board, how to do deal with that? It would seem the teensy would be better, it's already small, and maybe less prone to failure vs. using a cut-up keyboard circuit board.

    3. Re:Custom game controller by mrmeval · · Score: 2

      http://hackedgadgets.com/2010/05/10/computer-keyboard-disassembly-and-cleaning/

      http://www.instructables.com/id/Hacking-a-USB-Keyboard/

      It's a tiny board. the chip is under a blob of goo. The only downside is it has to be a working keyboard so you can use a multimeter to know what pins goes to what key. It's tedious but not terribly hard. Once you know the key matrix you have for the princely sum of 9 dollars a USB dongle that you can wire up how ever you want. You literally have as many inputs as keys.

      What I do not know is if it's possible to assign one keyboard to normal tasks and have the hacked keyboard only do some specific thing.

      --
      I'd go on a Vegan diet but the delivery time from Vega is too long. --brownkitty
  7. Need a Slashdot button by PPH · · Score: 3, Funny

    "In Soviet Russia..."
    "Personally, I welcome our .... overlords."
    "You insensitive clod!"
    "CowboyNeal is a .... "

    --
    Have gnu, will travel.
  8. Re:awesome button; gateway to hymenology (updated) by WrongSizeGlass · · Score: 3, Funny

    do monkeys have an awesome button?

    Monkeys don't need an awesome button because monkeys are inherently awesome.

  9. It writes the word "awesome". by jfengel · · Score: 5, Insightful

    Attention writers and summary writers: they key information (like "What does it do?") goes FIRST. Not buried in the middle of a paragraph. DEFINITELY not to be omitted entirely from the summary.

    So, this is the sentence from TFA that should have begun the article and the summary:

    It’s a plug-and-play USB device that will type a random synonym for the word “awesome” when the button is pressed.

    Then the rest of us can say, "Gosh, that sounds pretty damn lame" and move on with our lives far more efficiently.

    1. Re:It writes the word "awesome". by pavon · · Score: 4, Informative

      Of course, Iâ(TM)m not totally serious about this particular application, but I wanted to show how you can make your own custom USB human interface device

      The actual point was exactly what the summary said; to show how to make simple USB HID devices. The specific example used to demonstrate this was immaterial. In other words, just because "Hello World" is a lame program doesn't mean that tutorials including it are.

  10. [facepalm] by PhreakOfTime · · Score: 4, Funny

    That is why it is called 'slang'.

    It is not supposed to mean what the original definition is.

    If you are old enough, you would probably have taken people to task for misusing the word 'square'. Which amusingly enough, would have made you one :)

  11. Re:Obligitory Arduino Fetish Rant by billstewart · · Score: 4, Interesting

    Arduino gives you all the pieces you need to start using microcontrollers - hardware and software environments, lots of contributed libraries and applications. If you want to write stuff from scratch you can, but if you want to get started building your blinky-light thing, it's all there, and then you can go on to more complex projects. It has a few limitations (Teensy gets around the USB-vs-serial issues, for instance), but it's pretty complete and extremely expandable. If you're more interested in tweaking bits, you can use many different tools, but if you're really trying to add blinky lights to your backpack or move the servo arms on a robot thingy or program the lights on your Christmas tree to respond to music or controlling your thermostat, you can use the Arduino tools to do that without diving into the bit-bashing first.

    And yes, you could have just bought the AVR ATmega chip yourself, but then you'd have needed a in-circuit chip-programmer device, which costs just about the same as an Arduino, and you can load a program into the Arduino to make it be a chip-programmer, so you might as well buy the Arduino anyway.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks