Author Topic: to ignite a led with usb port  (Read 2233 times)

0 Members and 1 Guest are viewing this topic.

Offline jhonilsonTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Helpful? 0
to ignite a led with usb port
« on: March 03, 2008, 08:05:42 PM »
  Hi, I want to make a lamp similar to some webcam, is to say, i want to ignite some led with the usb port, but i think that it will need some resistors. I think that if i connect a resistor (330 ohm for example) with a led (ultra brilliant) perhaps the usb port died because is too corrent for it.
  Anybody can help me about that?? I visited usb.org but in the datasheet not speak about the current only voltages.
Thanks

Offline ed1380

  • Supreme Robot
  • *****
  • Posts: 1,478
  • Helpful? 3
Re: to ignite a led with usb port
« Reply #1 on: March 03, 2008, 08:10:35 PM »
usb ports handle 500ma. do you want the led to turn on always or be program activated?

heres a site to help you calculate the resistor needed http://led.linear1.org/1led.wiz
Problems making the $50 robot circuit board?
click here. http://www.societyofrobots.com/robotforum/index.php?topic=3292.msg25198#msg25198

Offline jhonilsonTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Helpful? 0
Re: to ignite a led with usb port
« Reply #2 on: March 03, 2008, 08:17:45 PM »
  Thank you so much for you answer. 500 mA is fine for me. The leds use 25 to 30 mA aproximately. Yes i would want to control when turn on the leds. i am thinking to make a software with visual basic, but may be any software.
 Gracias

Offline ed1380

  • Supreme Robot
  • *****
  • Posts: 1,478
  • Helpful? 3
Re: to ignite a led with usb port
« Reply #3 on: March 03, 2008, 08:56:47 PM »
with USB you'll need a translator. too complicated for me to help you with.

but there is this http://www.codeproject.com/KB/cs/csppleds.aspx
Problems making the $50 robot circuit board?
click here. http://www.societyofrobots.com/robotforum/index.php?topic=3292.msg25198#msg25198

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: to ignite a led with usb port
« Reply #4 on: March 03, 2008, 09:00:01 PM »
with USB you'll need a translator. too complicated for me to help you with.

but there is this http://www.codeproject.com/KB/cs/csppleds.aspx

get a USB to serial converter
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline jhonilsonTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Helpful? 0
Re: to ignite a led with usb port
« Reply #5 on: March 04, 2008, 11:13:01 AM »
  Thank Ed1380 i saw the same webpage yesterday and other nice website but i not found many details about how controlling the usb port really.
 Airman00  i think that the port converter i will help too much because i will need to control the usb port anyway i think and that is the real problem.

  Thank you so much

Offline ed1380

  • Supreme Robot
  • *****
  • Posts: 1,478
  • Helpful? 3
Re: to ignite a led with usb port
« Reply #6 on: March 04, 2008, 03:55:11 PM »
you could try this and modify the code to do a constant on or off to power the leds intead of the pwm for the servo's
http://www.societyofrobots.com/member_tutorials/node/25
Problems making the $50 robot circuit board?
click here. http://www.societyofrobots.com/robotforum/index.php?topic=3292.msg25198#msg25198