Using an Arduino to measure inductance

posted Jul 24th 2011 8:15am by
filed under: arduino hacks

Measuring an inductor is not something that most multi-meters can do. You usually need a high precision resistor (1% or better) in series with the inductor, a function generator to put a signal through the circuit, and an oscilloscope to measure the result. But what can you do if you don’t have these tools on hand? [Andrew Moser] has a method that lets you pull it off with an Arduino and an LM339 quad comparator.

The circuit works by feeding a signal in from the Arduino. This waveform is affected by the LC circuit, filtered by the comparator chip, then read back out the other side by the Arduino. That resulting signal is a square wave, which is an easy target for the Arduino to measure. That timing measured from the square wave can then be used to calculate the inductor’s value.

This is quite handy if you’re winding your own inductors. Now you can precisely tune that Joule Thief you’ve been working on.

[via Dangerous Prototypes and Adafruit]



10 Responses to Using an Arduino to measure inductance

  • Weasel says:

    Hahaha I was literally just about to look this up and it was in my RSS feed. I just need a few components.

  • NATO says:

    For the cost, this is fine, but don’t expect anything even comparable to a real LCR meter. If you want useful results, you need to be measuring the inductance at the frequency and current you’ll be using the inductor with. I assume that this project uses a frequency low enough that the parasitic capacitance won’t be an issue, but this also means that your mesurement results will be poor.

    This is a good way to get a ballpark figure for getting a ballpark figure for inductance, but if you want good results, get a real LCR meter.

  • grenadier says:

    Too bad inductance varies with frequency and current :p

  • Bogdan says:

    He says on the website: “if you’ve taken a statistics class – most capacitors with 10% tolerance will be well under 10%.”

    Things are actually a bit different. The bell curve may be narrow so that within 3% you get 99.x % of your parts, but where the peak of the bell is varies in time during production, so that the parts produced over a long time can be within say 10% tolerance.

    He is also forgetting to add out the other sources of errors which might bring it up to 15%.

    And, just like some previously seen arduino projects, he misses the already existent internal comparator…(in some other cases built in SPI interface, USART etc)

  • Moser says:

    Yes I agree with your comments, and you must keep in mind that this is for the individual who needs an idea of the inductor:

    If you require a very accurate measurement for a system running at a high frequency, then this method is definitely not for you.

    And yes this method uses low current to measure inductance, so saturation information will be unavailable.

    @NATO: this method uses less than 5$ of parts and a ‘real LCR meter’ typically costs 150$+. Yes you will get better results with an LCR meter that allows you to select measurement frequency.

  • Matt says:

    “He says on the website: “if you’ve taken a statistics class – most capacitors with 10% tolerance will be well under 10%.”

    Things are actually a bit different. The bell curve may be narrow so that within 3% you get 99.x % of your parts, but where the peak of the bell is varies in time during production, so that the parts produced over a long time can be within say 10% tolerance.”

    Actually there may be another reason why the statement isn’t true. The question you have to ask is where do they get +-5% capacitors from? How do they produce +-1% devices that makes them more accurate from the others? Explanation in this funny article (well worth a read) – http://www.edn.com/article/509250-7_solution.php

  • Moser says:

    I guess it wasn’t explained enough how this method isn’t going to give perfect results.

    No the <5$ (excluding micro) circuit will not give you better results compared to a real professional grade RLC meter

  • NATO says:

    Let’s just go ahead and admit that this is more or less useless, and has been done and published a thousand times over (here and elsewhere)…

  • Bogdan says:

    @Matt thanks for the info! Guess I am not the only one that didn’t realize it while trying to find 2% capacitors in 10% batch.

  • Leave a Reply

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks






         




    Hacks

    Resources