Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to supply Voltage to USB port?

Status
Not open for further replies.

sisso

Newbie level 4
Joined
Jun 6, 2011
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
Hello Guys,

Someone please tell me, is it possible to supply external voltage to USB port
and detect this through an application running on the system. or else convert
externally supplied voltage to data and input it to USB so that running application
would detect it.

Please tell me asap........
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,667
Helped
14,078
Reputation
28,413
Reaction score
12,742
Trophy points
1,393
Location
Bochum, Germany
Activity points
276,935
Can you please try to explain which USB port type at which system you are talking about?
Generally, you have host and device ports which have different roles regarding supply voltage. Also USB devices can be designed as bus-powered or self-powered.
 

sisso

Newbie level 4
Joined
Jun 6, 2011
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
I was referring about USB port of a PC/Laptop. I want to supply voltage from external voltage source to this port.
Is it possible that this voltage could be detected like an mouse click?
 

alexan_e

Administrator
Joined
Mar 16, 2008
Messages
11,895
Helped
2,020
Reputation
4,156
Reaction score
2,031
Trophy points
1,393
Location
Greece
Activity points
64,377
I'm not sure what you mean.
If you want to to provide an external power supply instead of the internal USB supply (for example to a 2.5" external HD)
check https://www.edaboard.com/thread196541.html#post824004

You cannot insert a voltage source in the PC USB port, you can only disconnect an external device from the positive supply of the USB plug (the internal one) and then connect an external 5v power supply to that device only , not the pc side

Alex
 
  • Like
Reactions: sisso

    sisso

    points: 2
    Helpful Answer Positive Rating

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,667
Helped
14,078
Reputation
28,413
Reaction score
12,742
Trophy points
1,393
Location
Bochum, Germany
Activity points
276,935
I was referring about USB port of a PC/Laptop. I want to supply voltage from external voltage source to this port.
Is it possible that this voltage could be detected like an mouse click?
So you are talking about a host port. VBUS is connected to the host power supply controller and must not be externally driven. The DC levels of data lines D+ and D- are used to signal device connects and are also not provided for other purposes. The USB host controller of course detects voltage changes, but you won't find an easy way to get this information, I assume. The most easy way to utilize an USB port as input is to connect a HID device interface, then you can acquire the intended information by standard API functions.
 
  • Like
Reactions: sisso

    sisso

    points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top