USB port to Relay, how to?

This is a group to discuss all details on home automation, home security technology and related technologies.

USB port to Relay, how to?

Postby sgear on Thu Jun 28, 2007 3:55 pm

Hi
I am try to find sample how I can connect USB port to Relay

I did find Parallel port to Relay but then I need to connect battery
http://www.rentron.com/pc-relay.htm

Please let me know if you know about sample like this with USB
and the Relay is power up from the USB

dont know mutch about this , just try this for fun and hobby

Regards
Sigster
Regards
Sig
sgear
 
Posts: 1
Joined: Thu Jun 28, 2007 3:47 pm

Re: USB port to Relay, how to?

Postby Tomi Engdahl on Thu Mar 05, 2009 1:34 pm

I did find Parallel port to Relay but then I need to connect battery
http://www.rentron.com/pc-relay.htm


This one is actually serial port relay circuit.

Image
Image source: http://www.rentron.com/pc-relay.htm

This circuit needs well regulated +5V power to operate. It can come from external power supply or from
inside PC. You can get +5V power from PC from the following ports on PC case:
- joystick port (up to several hundred mA)
- USB port (up to 100 mA just wiring + and ground wires).
- mouse/keyboard connector (up to 200-300 mA I think)

Please let me know if you know about sample like this with USB
and the Relay is power up from the USB


You can connect serial port driven relay controlling circuit to USB port with USB-RS-232 adapter.

Image
Image source: http://www.ftdichip.com/

You can get power to your circuit from another USB port with a custom cable you make, one that
connects +5V (pin 1 in USB connector, typically red wire inside USB cable) and ground
(pin 4 in USB connector, typically black wire inside US cable) to your circuit needing that power.


[img]http://www.geocities.com/k7hkl_arv/PC_USB_Connectors_Pinout.png/img]
Image source: http://www.geocities.com/k7hkl_arv/PC_U ... Pinout.png

Image
Image source: http://www.riccibitti.com/pc_therm/USB_A_pinout.jpg

Image
Image source: http://www.interfacebus.com/usb-cable-diagram.gif


Other ideas could be to use some of the adapter cables and/or modules from FTDI http://www.ftdichip.com/
They have for example this cable http://www.ftdichip.com/Products/Evalua ... L-232R.htm
that can give out from the same connector serial data (TTL level) and +5V out from the same output
connector that can plug to your own circuits.

Image
Image source: http://www.ftdichip.com/
Tomi Engdahl
Site Admin
 
Posts: 1839
Joined: Mon Oct 20, 2003 6:15 pm
Location: Espoo, Finland


Return to Home Automation

Who is online

Users browsing this forum: No registered users and 13 guests

cron