Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

usb to serial cable help

Status
Not open for further replies.

aruna1

Member level 1
Joined
Jun 18, 2009
Messages
40
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,603
hl 340 usb to serial

guys i have this USB to serial cable HL-340.can someone tell me how to get 5v from this serial port of this cable ?
thaks
 

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
881
Helped
122
Reputation
244
Reaction score
86
Trophy points
1,308
Activity points
7,374

    aruna1

    Points: 2
    Helpful Answer Positive Rating

banjo

Advanced Member level 2
Joined
Dec 24, 2005
Messages
651
Helped
127
Reputation
254
Reaction score
8
Trophy points
1,298
Activity points
8,070
hl 340 cable

5V is already available at the USB connector. I would suggest disassembly of the USB converter and tapping the +5V line as at enters the device. Either that or splicing into the cable ahead of the converter.
 

aruna1

Member level 1
Joined
Jun 18, 2009
Messages
40
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,603
usb to com port cable hl 340

banjo said:
5V is already available at the USB connector. I would suggest disassembly of the USB converter and tapping the +5V line as at enters the device. Either that or splicing into the cable ahead of the converter.
bit rusty work
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,300
Helped
14,233
Reputation
28,727
Reaction score
12,925
Trophy points
1,393
Location
Bochum, Germany
Activity points
279,672
usb to serial cable 5v

bit rusty work
Obviously.

An USB-to-RS232 adapter isn't designed to get 5V out of it, although the voltage is present at the USB connector. You could also ask: How how to get 5v from my USB mouse or my USB memory stick?

Actually, the 5V USB bus voltage is converted to +/-10V inside the adapter and used to drive the RS232 lines. Typically, you are able to sink a few mA from the RS232 interface, if this is enough for your purposes, you can connect a low power voltage regulator and get 5V. The technique has been used e.g. for some microcontroller Dev. Kits with low current consumption.

Otherwise, cut the cable, disassemble the adapter (I fear, it's molded) or design an USB T-connector to connect VBUS.
 

banjo

Advanced Member level 2
Joined
Dec 24, 2005
Messages
651
Helped
127
Reputation
254
Reaction score
8
Trophy points
1,298
Activity points
8,070
While it is possible to pull some power from the RS232 lines, there are a couple of serious limitations.
First, remember that the efficiency will be lower than tapping the source voltage directly. (There is no free lunch, you always get out less than you put in.)
Second, some software is required. This tapping a control line as a power source, assumes that you have a driver that sets the control lines to the required state. If the control lines are not at the proper state , or other code using this serial port changes the state, you will lose your power source.
Lets say you are using this device with a serial port terminal program that gives you lots of control. It won't be a big deal, as you can set the required control lines high with the terminal program. However, if you want to use this power source with a third party application that you have no control over, it may not work. That third party app, may reset the port on startup and turn off your power source.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top