<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Impedance Measurement and an Experimental LCR Meter</title><link>/products/raspberry-pi/raspberrypi_projects/b/blog/posts/impedance-measurement-and-an-experimental-lcr-meter</link><description>Table of Contents

 Introduction 
 High-Level View 
 Principle of Operation 
 Circuit Diagram 
 DSP Block Diagram 
 Building It 
 Programming It 
 Using It 
 Calculations 
 Results 

 Result A – 10 ohm DUT 
 Result B: 10 ohm and 220nF in Parallel 
 Result</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Impedance Measurement and an Experimental LCR Meter</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/impedance-measurement-and-an-experimental-lcr-meter</link><pubDate>Mon, 27 Jun 2022 17:31:26 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:544722c3-eb45-4ae5-9a52-dcd9eadf55d8</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;test comment&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=23556&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Impedance Measurement and an Experimental LCR Meter</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/impedance-measurement-and-an-experimental-lcr-meter</link><pubDate>Mon, 09 May 2022 02:18:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:544722c3-eb45-4ae5-9a52-dcd9eadf55d8</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I tried getting higher-res measurements, I think this method works!&lt;/p&gt;
&lt;p&gt;Basically, the Pi instructs the DSP to hold a measurement, and then the integer portion is subtracted. That leaves the fraction portion, which gets boosted by X10 or X100 and the best value is read. I don&amp;#39;t think the DSP likes me making so many changes on the fly, otherwise I would have tried something more complicated. As it is, the measurement fails on average 1-in-10 times, and I don&amp;#39;t know why. It works 100% of the time after the DSP is loaded. I could load the DSP for each measurement, but then I can&amp;#39;t easily speed up measurements : ( Anyway, that&amp;#39;s a different problem to resolve! (I believe it&amp;nbsp;will be resolvable, I need to put some thought into it still).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="462" src="/resized-image/__size/1532x924/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-544722c3-eb45-4ae5-9a52-dcd9eadf55d8/higher_2D00_res_2D00_method.png" width="766" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With this high-res scheme, the measurements are looking very sensible for capacitance, whereas inductance still looks wrong at the 100uH level, I&amp;#39;ve not tried higher inductance.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;measured the 2.2uF and 10uF capacitors (with nothing in parallel) with&amp;nbsp;an EUCOL U2832 meter, and it reported:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;2.2uf Capacitor:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Z: 76.6 ohm&lt;/p&gt;
&lt;p&gt;Cp: 2.067 uF&lt;/p&gt;
&lt;p&gt;Rp: 880 ohm&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;10uF Capacitor:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Z: 17.08 ohm&lt;/p&gt;
&lt;p&gt;Cp: 9.28 uF&lt;/p&gt;
&lt;p&gt;Rp: 175 ohm&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And this is what this project reports for the two capacitors, but with 10 ohm in parallel, so that I can get it into a range I can measure:&lt;/p&gt;
&lt;p&gt;2.2uF Capacitor // 10 ohm:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="320" src="/resized-image/__size/1294x640/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-544722c3-eb45-4ae5-9a52-dcd9eadf55d8/2_2D00_2u_2D00_cap.png" width="647" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;10 uF Capacitor // 10 ohm:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="317" src="/resized-image/__size/1274x634/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-544722c3-eb45-4ae5-9a52-dcd9eadf55d8/10u_2D00_cap.png" width="637" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think this is as good as I can hope with the current hardware, the results are pretty accurate!, and the measurements are stable (except when it fails 1-in-10 times or so).&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=23556&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Impedance Measurement and an Experimental LCR Meter</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/impedance-measurement-and-an-experimental-lcr-meter</link><pubDate>Sun, 08 May 2022 19:06:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:544722c3-eb45-4ae5-9a52-dcd9eadf55d8</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;To test if the values are realistic or not, I had a shot at creating the &lt;a href="https://github.com/shabaz123/waveminer/blob/main/lcr-test-ltspice.asc"&gt;simulation of the potential divider with LTSpice&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="393" src="/resized-image/__size/1534x786/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-544722c3-eb45-4ae5-9a52-dcd9eadf55d8/lcr_2D00_ltsim.png" width="767" /&gt;&lt;/p&gt;
&lt;p&gt;This should hopefully solve any glaring errors, but it doesn&amp;#39;t simulate everything, i.e. phase offsets and scaling etc. Based on this I think the parallel calculation is ok, so perhaps the wild discrepancy with inductance is because the measurement is too small with the component values, and that is introducing the large error. Or the way I&amp;#39;m getting rid of the of the phase offset is wrong.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=23556&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Impedance Measurement and an Experimental LCR Meter</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/impedance-measurement-and-an-experimental-lcr-meter</link><pubDate>Sun, 08 May 2022 15:08:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:544722c3-eb45-4ae5-9a52-dcd9eadf55d8</guid><dc:creator>michaelkellett</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Interesting stuff.&lt;/p&gt;
&lt;p&gt;A long time ago I did a lot of work with DSPs (programmed in assembler at first and then C).&lt;/p&gt;
&lt;p&gt;The AD block diagram tool looks OK but it would be nice to able to get right into the chip when you want to.&lt;/p&gt;
&lt;p&gt;The little board is enticlngly cheap..&lt;/p&gt;
&lt;p&gt;In the last few years all the projects that have needed DSP have been OK on an ARM or else needed an FPGA.&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=23556&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Impedance Measurement and an Experimental LCR Meter</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/impedance-measurement-and-an-experimental-lcr-meter</link><pubDate>Sun, 08 May 2022 12:47:51 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:544722c3-eb45-4ae5-9a52-dcd9eadf55d8</guid><dc:creator>scottiebabe</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Fun little project. Just a few observations:&lt;/p&gt;
&lt;p&gt;Z = R + jX =&amp;gt; so |Z| &amp;gt; { R, X } in some of your examples |Z| &amp;lt; R (or X)&lt;/p&gt;
&lt;p&gt;The impedance you calculate is the series combination of a resistor and a reactive component. If you want to measure components in parallel you will need to apply a series to parallel impedance conversion.&lt;/p&gt;
&lt;p&gt;I wish the laser marking of chips always looked this good:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-544722c3-eb45-4ae5-9a52-dcd9eadf55d8/pastedimage1652013992200v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It almost looks too good to be true! Nice photography skills [emoticon:c4563cd7d5574777a71c318021cbbcc8]&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=23556&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>