johnboiles / BaofengUV5R-TRRS

Tiny board that allows you to connect the Baofeng UV5R radio to a smartphone or other device that uses a TRRS connector for audio.
Other
375 stars 44 forks source link

Android? #14

Open cookins opened 6 years ago

cookins commented 6 years ago

hey! this board will work same for android?

cookins commented 6 years ago

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 commented 6 years ago

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.

johnboiles commented 6 years ago

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 notifications@github.com 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.

Manawyrm commented 5 years ago

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

kronicd commented 2 years ago

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?

cookins commented 2 years ago

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.

kronicd commented 2 years ago

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.

cookins commented 2 years ago

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.

kronicd commented 2 years ago

@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 commented 2 years ago

@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 :)

johnboiles commented 2 years ago

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

kronicd commented 2 years ago

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.

cookins commented 2 years ago

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

Our hero. Thanks for work.

johnboiles commented 2 years ago

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

kronicd commented 2 years ago

A pull request has been made to resolve this issue.