Given an inductor of an unknown (though magnitude-estimatable) value, and a resistor of precisely known resistance, how can one calculate the inductance of the inductor?
Tools I have at my disposal:
- Oscilloscope (both digital and analogue)
- Signal generator (can make any waveform up to around 20KHz)
- DMM
Some things I have noticed during my experimentations:
- If I apply a sine wave I see a phase shift.
- If I vary the frequency I see different levels of attenuation.
- If I apply a square wave I see sharp peaks at the rising edge and sharp troughs at the falling edge.
Ultimately I'd like something I can sample in some way with a microcontroller - be that with analogue inputs, the use of timers / input capture / output compare, etc, or whatever other means, to then calculate the inductance in use.
I know how to do phase measurement of digital signals, but can this be adapted to measuring the phase of a sine wave?
Alternatively, could I use an LC circuit and use the resonant frequency of that combination in some way?