Link to home
Start Free TrialLog in
Avatar of Frosty555
Frosty555Flag for Canada

asked on

Programmable illuminated "Push Button"

This might be more in the "hobby electronics" category, but I'm wondering if anybody knows of a potential product or component that might work here:

I'm looking for a push button that I can fairly easily connect to a computer that can serve these functions:

   - Connect to the computer via some kind of standard interface (USB?)
   - Programmable API, driver or software to configure what happens when the button is pushed (e.g. execute a program?)
   - Programmable API, driver or software to configure when the switch is and is not illuminated (e.g. a program can send a "command" to the button to illuminate or not)

I know this is a pretty "generic" device... probably something closer to what Sparkfun or some other hobby electronics place would sell.

There's lots of pushbuttons out there, even illuminated pushbuttons, but making them talk to the COMPUTER without getting elbows deep into an Arduino or something is what I'm having trouble with.

Any ideas?
Avatar of aburr
aburr
Flag of United States of America image

Get an illuminated push button which has a separate lead to the lamp. Make a simple lamp driver with a single transistor and connect the base of the transistor. Connect the base to one of the programable wires in a usb connector. Another wire can be an input from the switch to the computer. (Make sure the voltages on the usb wires are reasonable.)
Avatar of Frosty555

ASKER

I'm not sure I'm following you. You are suggesting you can write a driver that talks to a USB device and the USB device interface can be a simple as one single transistor connected to the data line?

Do you have any further information or details? What language would you write the driver in? Are there any examples of this sort of thing being done?
You are suggesting you can write a driver that talks to a USB device and the USB device interface can be a simple as one single transistor connected to the data line?
yes

Do you have any further information or details?
not much


 What language would you write the driver in?
any

Are there any examples of this sort of thing being done?
yes but I do not have any handy


--
The usb output has two data lines (pin 2 and 3) Each has two states. Can you program the lines?

The usb device is a simple one transistor switch with the collector tied to one end of the bulb in your switch with the other end of the bulb tied to the +5 usb line (pin 1). The base goes to the data line (through a resistor). The emitter is tied to ground (pin4)
Can you design a simple transistor switch?
aburr,

I don't think this is going to work. Like I said I wanted to avoid creating this whole thing from scratch. I'm sure the transistor switch is fairly simple, but even writing a USB driver will prove to be overly challenging too - for one thing even after it is written it won't be signed by Microsoft, so installing it onto a system - which prohibit non-signed drivers and the only workaround being to disable it via a boot flag - is going to be difficult...

I need something higher level than what you are proposing here. Either a product that already does something like this, or ideas for what kinds of products I can cannibalize.
ASKER CERTIFIED SOLUTION
Avatar of Frosty555
Frosty555
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
found my own solution