control usb led

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • askalottaqs
    New Member
    • Jun 2007
    • 75

    control usb led

    hello everyone!

    is it possible to control the led (on/off) when attached through the usb port through python?

    I need to write a little code to play around with the lights, i really have no clue where to start addressing the issue, and would love any kind of guidance.

    Thanks a lot
  • askalottaqs
    New Member
    • Jun 2007
    • 75

    #2
    ok so far ive reached the fact that usb gets continuous power from the computer, even when turned off, therefore i cant really control the input of electricity to it. what i can actually do is add a controller which ill send the command to, and from there it will switch it on or off. the only problem is that i have no clue how to build a controller, or which to buy that i would actually be able to control. I'm sorry about how wide this information is but i just dont have a clue where to start with this.

    thanks again

    Isam

    Comment

    • kudos
      Recognized Expert New Member
      • Jul 2006
      • 127

      #3
      if it is any comfort, what you are trying to accomplish is quite vague too me as well...

      1. you have somekind of usb device, with somekind of lamp? And somehow you want to turn this lamp on and off? and you want to do this from a high-level language like python?

      -kudos


      Originally posted by askalottaqs
      ok so far ive reached the fact that usb gets continuous power from the computer, even when turned off, therefore i cant really control the input of electricity to it. what i can actually do is add a controller which ill send the command to, and from there it will switch it on or off. the only problem is that i have no clue how to build a controller, or which to buy that i would actually be able to control. I'm sorry about how wide this information is but i just dont have a clue where to start with this.

      thanks again

      Isam

      Comment

      • Jory R Ferrell
        New Member
        • Jul 2011
        • 62

        #4
        You can buy an Arduino prototyping circuit board built for this very sort of application.

        Arduino webpage: http://www.arduino.cc/

        Youtube tutorial for arduino and led's: http://www.youtube.com/watch?v=pMV2isNm8JU (If this link doesn't work for whatever reason, just look up: How-to Tuesday: Arduino 101 the LED)

        Comment

        Working...