USB On-The-Go is a USB specification that allows a device to act either as a host (like a PC) or to act as a device (for example a storage device).
Questions tagged [usb-otg]
41 questions
10
votes
2 answers
Why do most USB OTG dual-role devices use micro-B connector instead of micro-AB
I mean, this is against the rules!
Most USB OTG devices claiming to be host capable (most Android smartphones and tablets) have a simple micro-B connector. Shouldn't they have a micro-AB connectors? Micro-B are supposed to be for devices unable to…

dim
- 15,845
- 3
- 39
- 84
10
votes
3 answers
Are Micro A USB plugs actually ever used?
Wikipedia states:
An OTG product must have a single Micro-AB receptacle and no other USB receptacles.
An OTG cable has a micro-A plug on one end, and a Micro-B plug on the other end
Micro-A is apparently similar to the standard Micro-B plug, but…

Timmmm
- 1,133
- 2
- 14
- 18
9
votes
3 answers
USB power in Parallel, increasing the maximum current using a Y splitter idea[POWER ONLY]
When you connect batteries or power sources of the same voltage, in series, the voltage adds together. When in parallel the capacity of the two add together.
Ive seen a few usb>sata cables in which there are two usb cables at one end. One for…

kris2340k
- 93
- 1
- 1
- 4
8
votes
1 answer
Can a USB device attempt to be bus-powered and then fall-back to self-powered?
The device has a battery, but it would be nice to be bus-powered when available. A computer will typically supply 500 mA, for instance, while a smartphone in OTG mode is only required to supply 8 mA.
Is it possible to do something like…

endolith
- 28,494
- 23
- 117
- 181
8
votes
2 answers
5V tolerance on VBUS sensing input
I am designing a device around the STM32L476. My device is primarily battery-powered, but has a USB port that, when plugged, I want to use as an alternative power source (through a 3.3V regulator) to limit battery drain. It is also possible that the…

dim
- 15,845
- 3
- 39
- 84
7
votes
2 answers
Why aren't PCB mounted male mini USB connector parts common?
I'm looking to build a USB device that plugs directly into a mini USB OTG port - similar to those USB flash drives that can plug directly into smartphones with OTG-enabled micro USB ports.
I was thinking that the easiest way to build something like…

tangrs
- 1,029
- 2
- 10
- 19
5
votes
1 answer
STM32 VCP - Receive data from PC
I am using STM32 HAL VCP firmware generated by CubeMX on STM32F4 discovery board. The Virtual COM Port works, I can transmit from the microcontroller to the PC as many messages I want. But in the other direction, from PC to microcontroller I can…

Milan Tenk
- 465
- 2
- 8
- 20
5
votes
3 answers
2.5mm Jack to USB data Cable
I was recently diagnosed with Type 1 diabetes. With the need to test my own blood upwards of 8 times a day I have a ton of data to keep track of. My testing unit has the ability to upload its data to a mobile (OTG) or PC (USB).
Sadly, the company…

square_eyes
- 185
- 2
- 7
4
votes
2 answers
USB OTG, some questions
I am attempting a project with USB OTG functionality. I've read quite a number of documents already but there is some contradicting information out there, so I want to find out if anyone can shed some light on a couple of things.
First some…

Merwe
- 77
- 2
2
votes
1 answer
USB OTG Cable Shielding
I just soldered a USB OTG cable to connect a keyboard (regular USB-A) to a Raspberry Pi Zero (micro-USB).
How to wire the VCC, GND, D- and D+ pins was obvious and the cable works. However both connectors have a pin that is connected to the…

Johannes
- 209
- 2
- 11
2
votes
1 answer
How to connect USB mini-b pins on a PCB?
I want to design a PCB which contains either PIC24FJ128GA010 or PIC24fj256gb110 (still haven't decided). Now the second contains a USB 2.0 on the go and the first one doesn't. I want to power the board through USB for prototyping purposes.
Through…

3bdalla
- 855
- 1
- 12
- 25
2
votes
1 answer
Pin of micro USB connector in Smartphone
The image below shows a Micro USB connector in a smartphone. I understand what the first 5 pins of the USB are i.e. USB_DM, USB_DP, USB_ID , VBUS and GND.
The pin S1 is connected to VBAT (battery voltage pin) through a load switch.
Can anyone…

Roy Miller
- 65
- 1
- 5
2
votes
0 answers
Getting more than 0.5W from USB OTG
Has anyone actually measured the maximum amount of power that can be drawn from a smartphone's (say Samsung S4) USB OTG in host mode?
I've read people suggest 100mA but can't find if anyone has actually tested it. I have seen it work with a…

as_yu_like_it
- 21
- 2
2
votes
2 answers
How can/does a mobile phone provide power to pen drive?
Mobile phones with USB OTG are not uncommon today. I am wondering that how can a battery operated device like mobile phone power a pen drive? From what I know, the power consumption of pen drive on 5V VBUS is around 100mA. The 5V can be derived from…

LoveEnigma
- 425
- 2
- 7
- 15
1
vote
1 answer
Powering a USB Host with MCP1253 Charge Pump
I'm a SW head trying to design a circuit that can switch 5V to a USB Port for embedded Host Operation and switch it off for USB Device operation. Microchip have a few schematics which show the use of their MCP1253 Charge pump for this.
Obviously…

jwhitmore
- 389
- 1
- 3
- 9