BaofengUV5R-TRRS icon indicating copy to clipboard operation
BaofengUV5R-TRRS copied to clipboard

Android?

Open cookins opened this issue 6 years ago • 15 comments

hey! this board will work same for android?

cookins avatar May 03 '18 15:05 cookins

Just tried this scheme. My android even can't see headphones plugged in... But PC seeing and even able to send some sounds with VOX...

cookins avatar May 04 '18 00:05 cookins

other smartphone works fine (except sometimes its turn on google voice search accidently..)). on main phone, Xiaomi brand, appears need some software that force phone to think that that something plugged in audio jack.

cookins avatar May 05 '18 14:05 cookins

I haven’t tested with android but I think it should work! Older android phones had a different TRRS pin out than iPhone but I think they’re the same now

On May 5, 2018, at 07:21, cookins [email protected] wrote:

other smartphone works fine (except sometimes its turn on google voice search accidently..)). on main phone, Xiaomi brand, appears need some software that force phone to think that that something plugged in audio jack.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

johnboiles avatar May 05 '18 20:05 johnboiles

Works fine on my nexus 5 and iPhone 8 (with the lightning adapter). Nice one, thanks for publishing! :)

Manawyrm avatar Nov 15 '18 21:11 Manawyrm

It works great on my Pixel 4A. It doesn't work reliably on a Xiaomi Mi A1.

@cookins, which software did you use to get it working on the Xiaomi?

kronicd avatar Jun 01 '22 12:06 kronicd

It works great on my Pixel 4A. It doesn't work reliably on a Xiaomi Mi A1.

@cookins, which software did you use to get it working on the Xiaomi?

APRSdroid. But some phones just got issues with board scheme, seems.

cookins avatar Jun 01 '22 12:06 cookins

It looks like adding a 100ohm resistor between segment 3 and 4 on the phone side might improve detection.

https://source.android.com/devices/accessories/headset/jack-headset-spec

I'll play with this on the weekend.

kronicd avatar Jun 01 '22 12:06 kronicd

It looks like adding a 100ohm resistor between segment 3 and 4 on the phone side might improve detection.

https://source.android.com/devices/accessories/headset/jack-headset-spec

I'll play with this on the weekend.

Hope you will comment it back. So I can do same.

cookins avatar Jun 01 '22 12:06 cookins

@cookins I tested using a 10KΩ resistor on the end of a cable between GND and MIC. The detection works perfectly.

I measured the resistance between GND and MIC on my Mi In-Ear Headphones Pro HD and found they are 8.5KΩ in one direction and 5.5KΩ in the other. I'm hoping that doesn't matter.

Another project identified that some phones require a 100ohm resistor between LFT and GND.

I'm going to try replacing R2 and R3 with 8.2KΩ resistors and adding a 100Ω resistor between LFT and GND.

I'll then test across a variety of mobiles. I don't have an iPhone with a headphone jack though, so if anyone has an old iPhone available to test this change with that would be great.

kronicd avatar Jun 02 '22 00:06 kronicd

@johnboiles is there free or free for academic/non-commercial use software you'd recommend for editing the board files?

It'll help me sort things for a pull request later :)

kronicd avatar Jun 02 '22 03:06 kronicd

Yeah it's ~Cadsoft~ Autodesk Eagle! That's free for non commercial use still even after the Autodesk acquisition.

I would love a pull request on this. Thanks for digging into it yall

johnboiles avatar Jun 02 '22 05:06 johnboiles

Adding a 100Ω resistor from LFT to GND appears to have resolved all detection issues.

No other changes were needed.

Screenshot_20220606-080444

A through hole component fits well and shouldn't cause any issues with heat shrink. For safety I'd recommend wrapping some kapton tape to insulate against shorts before heat shrinking.

I'll work on a pull request to update the PCB for a more long term solution.

If people could test this in the meantime that would be great.

kronicd avatar Jun 06 '22 00:06 kronicd

Adding a 100Ω resistor from LFT to GND appears to have resolved all detection issues.

Our hero. Thanks for work.

cookins avatar Jun 06 '22 00:06 cookins

Thanks for figuring this out @kronicd! Maybe about time for a design rev! I've been having great luck getting fully assembled boards from JLCPCB, maybe could make this project as easy as a jlcpcb order

johnboiles avatar Jun 06 '22 03:06 johnboiles

A pull request has been made to resolve this issue.

kronicd avatar Jun 09 '22 05:06 kronicd