First, we estimate the frequency by utilizing Arduino and by using a few mathematical calculations we can determine the inductance or capacitance.
We are going to use an LC circuit frequency response formula.
f=1/(2*time) where time is output of pulseIn() function
then we have LC circuit Frequency:
f=1/2*Pi* (square root of LC)
by solving the above equations we get inductance as follows
L=1/(4* pi* pi* f* f* c)
We have a frequency that can be turned into inductance by utilizing the above formula.
We have used Arduino for further operation. The LC circuit contains an Inductor and a capacitor. We have used an operational amplifier ( 741 ) to convert sinusoidal resonance frequency to a digital or square wave. We have used a 3v battery connected in reverse polarity to get the correct output frequency.
Another we have used the push button to change the operation mode (either we are measuring inductance or capacitance). LCD is used for display purposes.