One Micro USB Jack (of all trades)

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
Jman11
Posts: 23
Joined: Sat May 14, 2016 3:05 am
Has thanked: 3 times
Been thanked: 4 times

One Micro USB Jack (of all trades)

Post by Jman11 » Tue Jun 07, 2016 6:21 pm

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

Image

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

User avatar
Kilren
Posts: 574
Joined: Wed May 11, 2016 4:40 pm
Location: Washington, USA
Has thanked: 35 times
Been thanked: 84 times

Re: One Micro USB Jack (of all trades)

Post by Kilren » Tue Jun 07, 2016 9:48 pm

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.

User avatar
Felix
Posts: 44
Joined: Wed May 11, 2016 7:17 am
Location: Antwerp, Belgium
Has thanked: 3 times
Been thanked: 12 times

Re: One Micro USB Jack (of all trades)

Post by Felix » Wed Jun 08, 2016 5:54 am

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.

vishald
Posts: 11
Joined: Wed Jun 01, 2016 2:41 am

Re: One Micro USB Jack (of all trades)

Post by vishald » Wed Jun 08, 2016 6:24 am

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.

User avatar
Kilren
Posts: 574
Joined: Wed May 11, 2016 4:40 pm
Location: Washington, USA
Has thanked: 35 times
Been thanked: 84 times

Re: One Micro USB Jack (of all trades)

Post by Kilren » Wed Jun 08, 2016 8:13 am

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

Jman11
Posts: 23
Joined: Sat May 14, 2016 3:05 am
Has thanked: 3 times
Been thanked: 4 times

Re: One Micro USB Jack (of all trades)

Post by Jman11 » Wed Jun 08, 2016 10:41 am

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.

vishald
Posts: 11
Joined: Wed Jun 01, 2016 2:41 am

Re: One Micro USB Jack (of all trades)

Post by vishald » Wed Jun 08, 2016 2:44 pm

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.

Jman11
Posts: 23
Joined: Sat May 14, 2016 3:05 am
Has thanked: 3 times
Been thanked: 4 times

Re: One Micro USB Jack (of all trades)

Post by Jman11 » Wed Jun 08, 2016 2:59 pm

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.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest