Page 1 of 1
One Micro USB Jack (of all trades)
Posted: Tue Jun 07, 2016 6:21 pm
by Jman11
So this post is part question part confirmation.
To go with my build i bought this (A female micro usb port)
http://www.banggood.com/CJMCU-Micro-USB ... 86085.html
MicroUsb has 2 ports for data, 2 ports for power just like any other USB.
Would it be possible to connect the D+, D- ports to the raspberry so it can work as a data port
Using popcorns idea
http://www.sudomod.com/forum/viewtopic.php?f=23&t=435
Then plug the VCC and GND plugs into the Powerboost (Charger) and make it also work as a charging port.
The goal is to make it almost like a smart phone where if i plugged it into my computer it could charge and transfer data but it can also just charge on its own when plugged into the wall.
It makes sense to me in my head but im not the most qualified in dealing with electronics. Any feedback would be great!
----------
Anyways ill probably try it anyways and ill let people know how it goes
Re: One Micro USB Jack (of all trades)
Posted: Tue Jun 07, 2016 9:48 pm
by Kilren
I don't know how valid this problem is, but the problem I see with it is that the +/- is going to the PB1000C right? I'm pretty sure that is a one-way connection (it doesn't return power back to the USB when the battery is discharging right? If that is the case, then the micro USB would only work if the peripheral was externally powered.
Hopefully I am wrong, because I wanted to do something similar but sort of disregarded it.
Re: One Micro USB Jack (of all trades)
Posted: Wed Jun 08, 2016 5:54 am
by Felix
It could work but you'll need some power switches to switch what it needs to do, the micro-b connector has 5 connections where the data and power comes in/out but the id one is to see if there's an otg is connected (in the otg cable the id and ground are connected to each other).
So in regular mode it should only charge the battery, but if an otg cable connects to it it will signal the rp0 or something else to switch the power switch to the state of powering external. The only thing I doubt is that the data connections need to be disconnected on the micro-b port or not.
Re: One Micro USB Jack (of all trades)
Posted: Wed Jun 08, 2016 6:24 am
by vishald
It is possible and will work perfectly.
The first goldcard flash for the HTC One X worked on this way.
In that time you had to create your own cable, one usb-micro where power is stripped, one femal usb for usb-stick/card-reader and one male for the power outlet.
Re: One Micro USB Jack (of all trades)
Posted: Wed Jun 08, 2016 8:13 am
by Kilren
vishald wrote:It is possible and will work perfectly.
The first goldcard flash for the HTC One X worked on this way.
In that time you had to create your own cable, one usb-micro where power is stripped, one femal usb for usb-stick/card-reader and one male for the power outlet.
Can you site a source of this? A picture perhaps? Thanks man
Re: One Micro USB Jack (of all trades)
Posted: Wed Jun 08, 2016 10:41 am
by Jman11
So what everyone is saying is that hooking the power straight to the battery charger, and hooking the data straight to the pi will not work?
If there is a problem id guess itd be with the power but wouldnt the port be powered when you plug the cable into a computer? The computer would supply the power.
Im just not sure how to wire this otherwise if my first idea wont work.
Re: One Micro USB Jack (of all trades)
Posted: Wed Jun 08, 2016 2:44 pm
by vishald
I have never done this for Pi0 but the idea will be the same
Connecting would be exactly as you stated. The only difference will be, power is directly to powerbooster. You don't need to have power connected to the Pi0 usb for data transfer. The host as in your computer already has power

. If you want to connect a usb-storage or a keyboard on that port, it won't work. But if you already had the option as an extra usb-port for connecting other things, than that will be obviously powered.
Re: One Micro USB Jack (of all trades)
Posted: Wed Jun 08, 2016 2:59 pm
by Jman11
vishald wrote:I have never done this for Pi0 but the idea will be the same
Connecting would be exactly as you stated. The only difference will be, power is directly to powerbooster. You don't need to have power connected to the Pi0 usb for data transfer. The host as in your computer already has power

. If you want to connect a usb-storage or a keyboard on that port, it won't work. But if you already had the option as an extra usb-port for connecting other things, than that will be obviously powered.
Literally exactly what I planned to do! Thank you. Yea I was gonna have a secondary Usb-A port for stuff such as a keyboard and what not.