简体   繁体   中英

How to zoom and focus Android camera using audio jack?

音频插孔 对焦控制相机

I want to control zoom or focus of my Android phone's camera using audio jack. It is common to use audio jack to take picture or probably we may call it as shutter. It is done by connecting the mic port and the ground as shown in the picture 2 (I took it from here . It is not Android, but probably the same idea is possible with Android). Is it possible to do zoom or focus using the audio jack? Say, like we manipulate or rearrange it something like explained in picture 1? Picture 1 taken from here .

The Android specification for the audio Jack, this gives you the input/key events that can be generated by the audio jack. Your camera application should listen for these events and do the appropriate action.

How to create hardware to generate the events is here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM