USB Light w/ .NET Code

We're developing an application which requires a small light to be controlled by a PC running Windows XP.  We're looking at our options in terms of connections and power supply.  Our first prototype was controlled via the serial port, but required a wall plug.  We're trying to reduce cost and outlet usage, so we need an alternate strategy.

What do I need to know in order to prototype a USB controlled light.  From my preliminary research, it looks like a USB 2.0 bus provides enough power to light up our light sufficiently.  What do I need to do to get a light controlled via USB and what requirements do I have in my software to do said controlling.

Thanks
LVL 3
a_goatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

passmarkCommented:
Controlling a serial port is easy, but Windows doesn't inculde any standard way of controlling USB devices. In most cases you'll need to write your own device driver.

This is what we did for our USB loop back plug,
http://www.passmark.com/products/usb2loopback.htm

But it depends on what control you need. If you just want to turn the light on or off, a simple physical switch will work.

If your prototype device works with a serial port then consider using the FTDI USB to serial converter chip. See,
http://www.ftdichip.com/Documents/ds232b14.pdf
It comes with its own device drivers and a very easy to use programming interface. To the end user it appears as a USB device but internally it couls still work as a serial device.

-----
David


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mysticaldanCommented:
Have u inquired abt a USB to Serial connector?? maybe that can solve your purpose. You will have to check the specs to see if the converter also has a pin which gives current which you can harness. Just an alternate thought if it can help you.

Dan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hardware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.