making IRDroid for the phone - HTC Sensation

hi, I'm trying to make a IRDroid remote controller for the phone (see http://www.irdroid.com/), but the IRDroid kit needs a 6v battery, so I decided to use the phone's OTG 5v supply, but the problem is I have to connect the left channel of the headphone jack to the ground of the phone's OTG.
will it damage the phone?
ps: the OTG's Ground and the stereo's Ground pins are shorted (about a half of ohm resistance between them).

Related

Solving usb port mistery

Hello everyone! My name is Patryk Andrzejewski (don't try to read my name if you're not polish), and this is my first thread on XDA.
I am studing electronics on university of technology so i'm pretty well with all kind of electronic stuff.
What i'm trying to do is "x-ray" the usb port in our TG01.
My basic targets is to find way to charge the device while using USB HUB or while listening music. If it's even possible to do.
Right now I know how to connect TG01 to amplifier by 3.5mm plug. Generaly most amplifiers have high impedance input while tg01 expect low impedance earphones to switch usb port to audio output. So what we need to do is take two resistors with the same resistance around 10k Ohm and connect them both between ground and both signal channels in male 3.5mm plug of the amplifier. This should do the trick. You can experiment with resistance but it should be as high as possible to not interfere in sound quality, but if it be to big output won't swich or sound would chop on high volume.
Basic usb cable have four wires plus ground. While micro usb plug have five pins. This extra pin is used to tell device what cable is connected, hub earphones charger or pc. It can be done by two ways, in each cable this extra pin is shorted to diferent other pins. Or it's connected by resistor to ground or Vcc.
What i need to do is determine how it is in our devices and if it would be done make a cable what will allow to charge while using usb to other purposes.
I can also help with porting microusb-3.5mm cables from other devices to TG01, just what i need is this cable, it's schematic, connection route with insides picture or small donation to buy it for tests.
Or eventualy I can make solution how to do it yourself.
Right now I waiting for a pack with new empty microusb male and female plugs to do some tests.
If someone have some experience with this please share.
Also it would be great if someone will port me on to usb switch driver.
Feel free to talk to me on priv.
Thread will be updated...
Hi @patryk,
Welcome to the TG01 Forum.... especially on this particular topic - if you can find a way to get multiple function via the uUSB port simultaneously, that will be great
There have been various attempts at this before, but in practice the only route seems to be using Bluetoth for audio while either charging or using the port in host mode.
I did a piece on Brighthand a while ago on connecting an external hard drive; there have also been discussions on MoDaCo and later on XDA (down the Accessories thread.... one is here and I think there may be some earlier than that). There is a link in the XDA post to a Freescale Smiconductor chip schematic. This is supposed to be able to (externally) support multi-function usage - ntended to be used by 3rd Party manufacturers in eg. a car kit, but as yet I am not aware of any such accessories having been released. If/when available would be suitable for any of the modern crop of uUSB based evices, though I think many car makers have opted for Bluetooth connectivity instead of the older style fixed car kits with cables.
Acording to pdf from your link I'm right, its all about one resistor. It's entire possibly to do this.
Tomorrow morning tests...
Thanks
oh I cant wait so:
rid_f: >220 kOhms
rid_a: 122-126 kOhms <-- this is what we're interest in
rid_b: 67-69 kOhms
rid_c: 36-37 kOhms
rid_g: 1 kOhm
These res val has small tolerance and ar not typical.
rid_a resistance is used to switch to charge device from charger and use usb for earphones or hub!
earphones - yes, but headset - not sure I must check first where mic is connected
here it is Dummy cable schematic:
Here are some related illustrations:
Schematic of the uUSB standard audio accessory control:
View attachment 505996
Picture of the supplied Toshiba earphone adaptor pcb:
View attachment 505997
The mic is connected to pins 1 and 2 (White and bare Cu)
I have made up several 3.5mm audio adapters using Neutrik 3.5mm jacks with 10k resistors fitted from D+ and D- to 0V common:
View attachment 506008
This ensures it will switch to audio out when connecting to external speakers with or without a ground-loop isolator transformer where typically the external device will have too low an impedance for the TG01 to recognise.
Shorting out D+ (Pin 2) and D- (Pin 3) causes the TG01 to go into Charging mode.
An R from ID (Pin 4) to 0V (Pin 5) causes the TG01 to go into Host mode.
I check all of these Rid's and it seems they don't work on Tg01. No matter how i try there is working only charging or earphones never both same time.
As you say device can be forced to charge when resistor < 200 ohm is connected between D+ and D- and they are floating.
There also must be other way to do this by the driver of usb charging becouse pc link charges only when TG is on.
In TG mic an switch of headset are connected to ID pin. So this first schematic of yours is about Toshiba accesory ?
Technicaly charging while using audio out is possible becouse VBUS pin is free in headset.
I'll do some other tests tomorrow..
Hi!
Any news since February?
I will find answers on many questions by reading this document
djtonka said:
I will find answer on many question by reading this document
Click to expand...
Click to collapse
It is a good document, but iunfortunately leaves many questions unanswerable.
In Section 6.4 it shows a schematic of an Accessory Charger Adapter which is essentially what we need to achieve simultaneous charging and audio out (or other functions). It does not however give enough detail to implement. I have previously identified a Freescale chip which has been designe dto do this job, but hae been unable to identify any source from which to obtain one. In essence this is aimed at the peripheral manufacturers' -who might wish to design and market eg. a hands free car kit to which you could connect a microUSB On The Go spec device. However so far as I can discover there are no manufactureres who have as yet brought any related device to market. If anyone happens to have found anything somewhere across the globe - please shout !
Regards,
Kevin

Hardwiring microUSB into a Car

I'm looking to mount my phone to the "A" pillar in my car, but I don't want cords running all over the place. I'm looking at doing an install similar to what people do with radar detectors by hooking into the fuse box inside the car (with an adapter like the one found here). This would be just for power. I understand how to wire it up theoretically (don't need to hook up the data wires, just the power and ground). I'm just looking for a mentor to make sure I do it right.
Has anyone ever done something like this using an adapter like the one I've mentioned? And what size fuse did you use for the install so you don't hurt the phone?
On a side note, I'm driving a 2006 VW Jetta, if that helps in any way.
mgs991099a said:
I'm looking to mount my phone to the "A" pillar in my car, but I don't want cords running all over the place. I'm looking at doing an install similar to what people do with radar detectors by hooking into the fuse box inside the car (with an adapter like the one found here). This would be just for power. I understand how to wire it up theoretically (don't need to hook up the data wires, just the power and ground). I'm just looking for a mentor to make sure I do it right.
Has anyone ever done something like this using an adapter like the one I've mentioned? And what size fuse did you use for the install so you don't hurt the phone?
On a side note, I'm driving a 2006 VW Jetta, if that helps in any way.
Click to expand...
Click to collapse
When I bought my car it had some hard wired cable like that, plugged an old phone in to be safe and it didn't charge properly. I scrapped the idea and just got a car deck with double usb and ran the usb to my arm console.
j.kelly said:
When I bought my car it had some hard wired cable like that, plugged an old phone in to be safe and it didn't charge properly. I scrapped the idea and just got a car deck with double usb and ran the usb to my arm console.
Click to expand...
Click to collapse
I'm trying to not have cables running everywhere like I currently do. I've already got an aftermarket XM radio next to my radio which uses up a cigarette light adapter already.
mgs991099a said:
I'm trying to not have cables running everywhere like I currently do. I've already got an aftermarket XM radio next to my radio which uses up a cigarette light adapter already.
Click to expand...
Click to collapse
What exactly do you need help with? - There are 4 wires in the usb cord. Use red for positive wire but DO NOT connect directly to 12v. USB is 5v so connecting to anything higher WILL fry your phone. You will need to get something that converts 12VDC to 5VDC. Red wire is 5v positive and black is your negative (ground). If you wanna do it cheap and easy, go buy a usb cigarette adapter, take it apart, then take the wires going to the metal connectors and connect them to your power and ground. then just plug in your usb cord and hide the whole thing in the dash.
Hope this helps.
djspreewell17 said:
What exactly do you need help with? - There are 4 wires in the usb cord. Use red for positive wire but DO NOT connect directly to 12v. USB is 5v so connecting to anything higher WILL fry your phone. You will need to get something that converts 12VDC to 5VDC. Red wire is 5v positive and black is your negative (ground). If you wanna do it cheap and easy, go buy a usb cigarette adapter, take it apart, then take the wires going to the metal connectors and connect them to your power and ground. then just plug in your usb cord and hide the whole thing in the dash.
Hope this helps.
Click to expand...
Click to collapse
Yeah, I started looking into it and realized that 5V /= 12V. I'm currently looking at using an old cigarette lighter adapters internals and wiring them into one of those fuse adapters (it'll convert the 12V down to 5V), then take the wires and hook them into a USB cable. I've got to do some measurements and all, so I'll respond back with some pictures of when I start the project. Should cost less than $20 and about an hour of time.
Website showing detail
Alright, I have finally done the project (just have to hook it up). This website shows all of the details. I did use an add-a-fuse instead, but it is essentially the same idea. I will be adding it into my car later today.

[Q] Philips AS111 force to charge

Hi all,
I have a Philips AS111 docking station/bluetooth speaker/charger. Worked perfectly for my SGS2, however, since I bought a new phone (Sony Xperia Z1 Compact) I'm experiencing some problems.
I bought an micro usb to magnetic connector adapter to be able to connect my phone to the dock without having to open the flaps all the time. I took it apart and it basicly splits the first and fifth pin of the micro USB connector to the pins in the magnetic connector. Unfortunately I may not link to external images...
Unfortunately, my phone does not charge when using the adapter in combination with the Philips dock. It does when using the original Sony USB charger and the adapter, so the adapter is fine.
I measured the voltage on the two pins, and it's 0V. I even tried to fool the dock by putting a 1.5kOhm resistor over several lines. Only when I put a 1.5kOhm resistor between 5V and the connector housing, the dock responded by turning on Bluetooth. Voltage went crazy, flipping between 0 and 3V, but phone still doesn't charge.
I think the sollution is to fool the dock by putting a certain resistor between certain lines or by shorting certain lines. Does anyone have a clue how to fool the dock to think there is a device connected, so it opens the +5V line?
Thank you very much!
Nobody into usb connection protocols? :crying:
Finally got it working. Eventually I needed to connect two wires together inside the device. One of them being 'CLAS1' and the other was Ground. Both could be found on the connector going to the micro usb plug of the device. Unfortunately I can not post a link to the photo I made of it.
mblox said:
Finally got it working. Eventually I needed to connect two wires together inside the device. One of them being 'CLAS1' and the other was Ground. Both could be found on the connector going to the micro usb plug of the device. Unfortunately I can not post a link to the photo I made of it.
Click to expand...
Click to collapse
Hello!
I've just bought an AS111. Charges perfectly my SGS4 but it doesn't do a thing when I try connecting my SGN3 (the one with the micro-usb 3 connector) to the Philips dock. I know that the micro-usb 3 is backwards compatible but I do believe that the AS111's dock outputs too little power - or something like that, I am no expert.
I was wondering that maybe your experience could be of help to me. What do you think? If so, could you please guide me through the stuff you did to the dock? Thank you!

Samsung Multimedia Dock - Pinout Guidance Required

Hello,
So I have the following Samsung Multimedia Dock, which was working fine since a year or more. It was used pretty much regularly with Galaxy SIV (either with stock or extended battery ). I guess after prolong usage and atmosphere condition the solder point on the micro USB connector internally got dry and got detached. Hence it stopped working.
Hence when opening it to have a look inside, I lost the sequence of 8 wires connected to the micro USB connector on both sides (4 on each side). The pins on the micro USB connector are marked numerically 1-8 , however I cannot see the same number on the main PCB, so I am at a loss to understand how to get them solded again , in which order and sequence.
It is I guess a 11 pin micro USB connector because the dock had HDMI, Audio Out, and USB in (OTG) connections and power charging all at the same time.
Case cracked open and the main PCB and micro USB connector are apart.
Close up of the PCB
PCB and microUSB
MicroUSB connector call it side A (4 small pin out number from 1-4)
MicroUSB connector call it side B (4 small pin out number from 5-8) (I was able to see which wires were connected on this side so I marked this side with a blue marker and did the same with the 4 wires loosely held on this side after detachment)
PCB wires close up. Total eight wires. Starting from right the order is Black->Yellow->Green->Red->Yellow->Black->Red->Green, each of the wire needs to go to a pin 1-8 on the micro USB connector.
I know there are no published schematics for this PCB and 11 pin Samsung connector, however I am relying on the electronic expertise of the gurus around to help and guide me.
Thanks for your guidance.

Tf300t keyboard dock mod USB connection

Hi all,
I am trying to mod my old tf300t and keyboard dock into a dex dock for my note 9. Im not worried about the tablet portion as i can get a lcd controller for the panel. However ive been soldering and desoldering for the last 3 days. I am trying to leverage the docks kb controller and add a usb connection or modify the dock port into a usb.
I have looked at the various pinouts but cannot get the keyboard working.
I dont care about audio or sd card or the extra usb port.
Any help or pointers would be great.
Here is a mockup of the pinouts i have soldered based on the pinouts i found
Ive been trying to test it on an old s7edge incase i wire something wrong. It detects a regular keyboard but when i try this nothing...if i use the wall charger i see that the dock is charging but still nothing at the dock connector. Ive been trying with a usb 2.0 cable. Connected to the d+ d- vcc ( all 3) and multiple grounds and i pinned the sense pin to ground as well.
I have also tried to open the charge cable and solder the usb to the data pins on that both with and without ground. And use a 5v plug and the original asus plug.
The dock port is basically garbage at this point so if i plan to use that i need to use the 2 20 wire connectors and map the individual wires .
I have managed to get the s7edge to detect that something is connected. However i then resoldered the pins to try more as it wasnt working. So i need to go back to the beginning to try again. I believe my issue was due to the otg aspect of the usb. Im using an adapter for the phone but i also tried to wire the connector the same way. Ill take some pictures of it later if i can get it working
So not sure if anyone is following this thread but i have made progress.
I have totally butchered the original 40 pin connector and now am tapping into the 40 individual wires that connect the main board to the connector pcb. I can get my s7edge to detect that the usb connector is attached but it keeps telling me that a high power usb device is attached and that it needs an external power source.... so today i busted out the multimeter and i believe i connected one of the usb host vcc connections to the other vcc connections so i separated this. I also believe that the s7edge has some usbotg voltage issues so im going to test it with an old macbook pro with windows to see what it picks it up as. When i get some more time i will try to trace the other wires there might be something else needed
Maybe
Nice job, I'm not particularly knowlegdable in electronics but I remember there is a battery portion in the dock? Maybe it causes some error during otg?

Categories

Resources