PIC USB Host Shortcuts

[Simon Inns] is still hard at work making USB connectivity for PIC microcontrollers easier for the hobbiest. He’s released a framework for PIC based USB devices under Windows. It includes the firmware needed for USB compatible 18F PIC chips as well as a C# class library and example programs for the Windows side of things. This goes quite a bit further than his PIC-USB tutorial but with little added effort on your end of things.

We do our USB prototyping on a breadboard just like [Simon] did in this example. He’s got a nice little USB-B connector breakout that is easy to plug into the breadboard. If you prefer to have a more stable development area, check out the one he designed. It’s a single-sided PCB made for through-hole components with just a handful of jumper wires.

C64 USB Keyboard

breadboard

[Maarten] told us about a C64 USB keyboard that was modified to be used as a standard input device. An interesting aspect of the project is the use of V-USB (formerly known as AVR-USB). V-USB is a software only approach to slow speed USB HID. In essence this is a two fold mod, The C64 keyboard is patched to a PC, and an off the shelf AVR is software-hacked to bit bang the USB communications. The author notes an initial problem with multiple key presses that was later corrected in the application. For the other side of the spectrum, we had covered the C64 twittering client, and a commodore 64 laptop.

CUIduino, Arduino With True USB Support

cuiduinotop

The CREATE USB Interface (CUI) was a project that came out of UC Santa Barbara around the same time the Arduino was being developed. It has a USB port, a PIC18F4550, and a prototyping area. It was designed to enable easy interfacing with the real would through many A/D inputs and general I/O ports. It supports both OSC and MIDI-over-USB natively. The biggest difference between the CUI and the Arduino is its USB support. The Arduino uses an FTDI chip to create a serial interface to its onboard AVR. The CUI’s PIC has native support for USB. That means you can have the CUI appear to be any USB HID device you want: keyboard, mouse, game controller, etc.

The Arduino has a friendly development environment and a large following though. CUI create [Dan Overholt] decided to add an ATmega168 to his board to get the best of both worlds, the CUIduino (scroll down). It can be programmed just like any other Arduino compatible device, but the having the CUI parent means your Arduino project can behave like a native USB HID gadget.

[Thanks Peter]

Clove 2 Glove For One Handed Input


[Christopher Mitchell] (previously on Hack a Day) has come up with a rather interesting input device. The Clove 2 glove is a Bluetooth data input interface. The goal is to be able to “type” without the use of a traditional keyboard. Key strokes are achieved through finger movements. Your computer simply sees this as a Bluetooth HID device and some software translates it for you.

While it may seem confusing, he’s designed it to be very similar to typing on a keyboard. Each finger movement or combination is a key stroke. Just like typing on a regular keyboard, there are modifying strokes such as ALT or shift that effect others. Most common used keys require the least combinations of finger movements.

Continue reading “Clove 2 Glove For One Handed Input”

DIY HID Ballast


HID lights have a major power consumption and lumen output advantage over halogen lights. Unfortunately the ballast component isn’t very cheap. [brian]’s been building his own ballasts for his mountain bike. We couldn’t find any more info on his design, but we did find some interesting stuff. This document lays out the requirements for a ballast. Here’s an older HID ballast design to get rolling. Keep in mind that the lamp requires high voltages – don’t play with it unless you know what you’re doing. If you’d rather use off the shelf components, check out the HID dive light we wrote up a while back. It uses a fairly inexpensive ballast/lamp combo.