Easiest way to do this? USB to control three relays.

Discussion in 'General Electronics Chat' started by RyanD, Jan 18, 2010.

  1. RyanD

    Thread Starter Member

    Jan 14, 2010
    30
    0
    I have these lights that are controlled by some buttons using some relays. I want to remove the buttons and instead control it via my computer. What's the best way(circuit/ic) to convert my usb data into something that I can use to control the lights?
     
  2. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    Get a usb arduino.
     
  3. RyanD

    Thread Starter Member

    Jan 14, 2010
    30
    0
    Yeah, I didn't want to spend that much for something so simple, I was hoping there was an easier(cheaper) way.
     
  4. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    get a serial arduino and use the rs232 port, cost of a bare bones board kit about 15 bucks. This assumes your computer has a rs232 port.
     
  5. KMoffett

    AAC Fanatic!

    Dec 19, 2007
    2,576
    231
  6. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    easiest way to do it is to get a FT232BM USB to serial converter IC. You do not need a uc or an "Arduino"...... If all you are doing is toggling an output on or off, use some of the RS232 control pins for controlling the outputs.....
     
  7. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    Some of the converters come in cell phone cables which can be had for just a couple of bucks. They have been used to connect usb ports to serial arduinos: http://www.uchobby.com/index.php/2009/10/04/diy-usb-to-serial-cable-for-3/ BMorse and I hae differed befor on how much smarts to have on the end of the cable, I like more, he is willing to make do with less.

    Taking his approach you may not need anything if you already have a rs232 port.
     
Loading...