• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Measure Voltage using Audio Input of android phone

Raman1729

Lurker
Hi,

I am a beginner to the world of android programming. So I need some guidelines on my first project.

I want to make a simple app which can measure voltage in the audio input of
an android phone. For instance, lets say we give a 0.1 V through one of the channels of the the 3.5mm audio port. Then the app should display 0.1 v on the screen. If my project description is not clear, please let me know.

Before even thinking about how to implement, I would like to know
if its feasible or not ? Is it possible for us to access the audio port of the phone to get the input voltage?
I have seen some utube videos where ppl transmit the data wireless by measuring it outside the phone.
But, I want to phone's hardware to do the voltage measurement.

If you can give some suggestions, it will be really helpful.
 
Raman1729 said:
Before even thinking about how to implement, I would like to know if its feasible or not ? Is it possible for us to access the audio port of the phone to get the input voltage?

Yes, you could obtain a headphone splitter to break out the audio signals and connect an arbitrary voltage source to the mic+ signal. But without external protective circuitry it sounds like an excellent way to nuke your android device. At a minimum a voltage divider and zener waveform clipper would be a simple protective circuit.

Headphone jack:
dY6LR.png


For software you could experiment with an android digital signal processing library such as TarsosDSP. The Oscilloscope.java class would provide samples from the microphone audio input.

Sent with Forum Fiend 2
 
Last edited:
So you mean it is possible to measure voltage using headphone jack.
I think I can deal with the hardware. But I am more worried about the android programming part.
ZERO background in android programming. Is there anyone in the community who have done a similar projects ?
 
Hello Ramman1729 .
I am dealing with the same problem. I also want to measure different voltages which will not be over the maximum input voltage of the android's phone audio input. Have you found any solution? Can this be done with software developed for the android phone? I am searching all over the Internet but I haven't yet reached to a conclusion.
I would be great full for your help.
 
Back
Top Bottom