# USB Lamp, controlled by linux driver

I want to build a simple USB lamp (maybe colored LED lamp) which will be controlled by PC. So, actually, i want to get practice in linux kernel modules development, but i need to get appropriate schematic. It is clear for me that basically i want to switch on and switch off this lamp from userspace utility, which will manipulate with device through the driver. Further, maybe, i will add lamp color changing using principles from this article http://www.diylife.com/2008/01/25/make-a-usb-color-changing-light/

But now i want to understand one thing, as i said before, i want to build a scheme with lamp and without microcontroller, which will connects to PC through the USB interface. And i want to manipulate (switch on switch off and further maybe color changing) this lamp directly using usb data channel. Is it possible? Can anybody helps me to find appropriate schematic? Thanks.

• You can always buy an off the shelf USB-based lamp driver device, which will internally incorporate a microcontroller. USB is not a simple protocol like parallel ports, where individual lines can get pulled high or low by software. There is an USB enumeration step which requires intelligence (code) on the part of a microcontroller. – Anindo Ghosh May 2 '13 at 9:39

If you are still curious, Google for /sys/bus/usb/devices/.../power/control and /sys/bus/usb/devices/.../power/level