Comments on: How to Make an Arduino Capacitance Meter http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/ Raspberry Pi, Arduino, and DIY Electronics Projects and Tutorials Tue, 17 Apr 2018 20:46:10 +0000 hourly 1 By: Kane thomas-mason http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-22313 Thu, 15 Mar 2018 13:04:22 +0000 http://www.circuitbasics.com/?p=841#comment-22313 what are the variables IN_STRAY_CAP_TO_GND and IN_CAP_TO_GND used for in the last example?

]]>
By: arjit http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-20074 Sun, 11 Feb 2018 19:04:10 +0000 http://www.circuitbasics.com/?p=841#comment-20074 What code need to change to view its data on serial monitor instead lcd ???????

]]>
By: sai http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-17061 Fri, 05 Jan 2018 07:24:46 +0000 http://www.circuitbasics.com/?p=841#comment-17061 i am using Arduino observe capacitance of f300 capacitance level. is it possible

]]>
By: saiteja http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-17059 Fri, 05 Jan 2018 07:12:59 +0000 http://www.circuitbasics.com/?p=841#comment-17059 wt is the maximum capacitance that arduino can observe

]]>
By: Sanhita Ray http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-16044 Tue, 26 Dec 2017 11:54:19 +0000 http://www.circuitbasics.com/?p=841#comment-16044 I need to simultaneously measure capacitance and resistance using two seperate interdigitated electrode complexes.. tutorial on this will be much appreciated!!

]]>
By: Mmb http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-9621 Mon, 09 Oct 2017 13:25:42 +0000 http://www.circuitbasics.com/?p=841#comment-9621 See file:///storage/emulated/0/wvs/c-messung.html

]]>
By: Mmb http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-9620 Mon, 09 Oct 2017 13:23:49 +0000 http://www.circuitbasics.com/?p=841#comment-9620 I made a print for a charge/discharge cycle and put some extra lines in the setup function.
Have a look at file:///storage/emulated/0/wvs/c-messung.html wher you will find the print and a commented sketch for download

]]>
By: chandra http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-9193 Wed, 04 Oct 2017 18:56:16 +0000 http://www.circuitbasics.com/?p=841#comment-9193 the answer comes out to be double of the capacitor in last one..pls rectify it

]]>
By: Daniel http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-5688 Tue, 08 Aug 2017 17:49:38 +0000 http://www.circuitbasics.com/?p=841#comment-5688 A potential dumb question: can I use these circuits to measure capacitance of an air conditioner capacitor? Will it not blow my Arduino? You know, I mean the large, heavy ones rated 450VAC 50uF.(like the CBB65A-1)

]]>
By: Bogiva http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-3043 Mon, 08 May 2017 14:51:10 +0000 http://www.circuitbasics.com/?p=841#comment-3043 Hey, can u explain how the number 3 code works to measure capacitance? i believe it does not use the time constant method like the first two am i correct?

]]>
By: Harry http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2437 Tue, 04 Apr 2017 20:16:45 +0000 http://www.circuitbasics.com/?p=841#comment-2437 Do you have a commented code for the last one? Many thanks in advance

]]>
By: Rofiq http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2351 Mon, 27 Mar 2017 18:27:54 +0000 http://www.circuitbasics.com/?p=841#comment-2351 sir i want ask again about proces charge and discharge capacitor for dc input in third coding..thanks sir

]]>
By: Rofiq http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2338 Sun, 26 Mar 2017 17:09:28 +0000 http://www.circuitbasics.com/?p=841#comment-2338 Sir..I want to ask about the discharge time on the third program, the formula discharge time from where? And whats the meaning 1000L * 5 in coding. Thanks sir

]]>
By: numan http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2278 Tue, 14 Mar 2017 12:07:53 +0000 http://www.circuitbasics.com/?p=841#comment-2278 resistance

]]>
By: numan http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2277 Tue, 14 Mar 2017 12:02:32 +0000 http://www.circuitbasics.com/?p=841#comment-2277 what is the value of 1st 2resestanc in circuit

]]>
By: same http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2260 Fri, 10 Mar 2017 01:16:48 +0000 http://www.circuitbasics.com/?p=841#comment-2260 have since had access to the full listning via desktop machine ^^ I usually shh to raspberryPi from where I use vncserver to programm the arduino, just from with the ipad. Somehow I understand when you may not care for ther ipad 🙂 although kind of a link to the full code wouldn’t be so wrong. Anyway, great ressource here, big thanks!

]]>
By: stefan http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2224 Tue, 07 Mar 2017 09:23:48 +0000 http://www.circuitbasics.com/?p=841#comment-2224 hello 🙂 !
discovered your site recently, and am eager to follow som tuts. Started with this, but duh, browsing on raspberry there is no code, and on ipad there are only some 10 lines of code, scrolling works only sideways… How do I get the full listnings? I suppose I don’t get something very obvious here 😛

]]>
By: Circuit Basics http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2215 Sun, 05 Mar 2017 11:16:26 +0000 http://www.circuitbasics.com/?p=841#comment-2215 Could you try updating your version of the IDE and see if that works?

]]>
By: Circuit Basics http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2214 Sun, 05 Mar 2017 10:29:50 +0000 http://www.circuitbasics.com/?p=841#comment-2214 Which circuit are you using to measure it? Also, what is the tolerance of the capacitor you’re measuring? Some capacitors can vary up to 20% of their stated value.

]]>
By: Circuit Basics http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2213 Sun, 05 Mar 2017 10:24:00 +0000 http://www.circuitbasics.com/?p=841#comment-2213 Hi Sanhita, yes it works!

]]>
By: Circuit Basics http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2212 Sun, 05 Mar 2017 10:22:47 +0000 http://www.circuitbasics.com/?p=841#comment-2212 See this thread on the Arduino.cc website: https://forum.arduino.cc/index.php?topic=80357.0

]]>
By: Circuit Basics http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2211 Sun, 05 Mar 2017 10:17:13 +0000 http://www.circuitbasics.com/?p=841#comment-2211 648 is 63.2% of 1024… 1024 is the ADC reading for full voltage.

]]>
By: Sanhita Ray http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2186 Wed, 01 Mar 2017 18:25:15 +0000 http://www.circuitbasics.com/?p=841#comment-2186 hi! did the third version code part work? any corrections needed?? i am an extreme beginner and need to make my sensor work reaaaaally fast!! thanks a lot in advance. and truly a million thanks to the developers!!!!

]]>
By: Ciprian (@ElectronicaXAB3) http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-2049 Fri, 20 Jan 2017 18:42:19 +0000 http://www.circuitbasics.com/?p=841#comment-2049 I’ve always wondered how do you measure capacitors. I’ve seen miscellaneous components testers on ebay, I even bought one, but never knew how it worked. I will try this one

]]>
By: jorge http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-1722 Sun, 02 Oct 2016 21:19:44 +0000 http://www.circuitbasics.com/?p=841#comment-1722 Regards, very interesting site, projects are very well explained thanks for the contributions and please keep adelate, wish them well and hope new tutorials

]]>
By: zubair http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-1555 Mon, 15 Aug 2016 18:47:04 +0000 http://www.circuitbasics.com/?p=841#comment-1555 I’m not getting exact value like 10uf capacitor shows 13uf. why?

]]>
By: Nologinguy http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-1543 Fri, 12 Aug 2016 11:39:22 +0000 http://www.circuitbasics.com/?p=841#comment-1543 what about super capacitors? 2.7V / 100 F. How to measure C?

]]>
By: Garoh Seven http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-1463 Fri, 29 Jul 2016 16:18:42 +0000 http://www.circuitbasics.com/?p=841#comment-1463 Hey, Thanks a lot for sharing this! In the code used for the “Two pin capacitance meter”, why did you initially set the pin mode of the “IN_PIN” as an output within the “void setup”?

]]>
By: Makerspace Forsyth http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-1438 Tue, 19 Jul 2016 13:50:08 +0000 http://www.circuitbasics.com/?p=841#comment-1438 Totally awesome. I’ll have to try this capacitance meter on the caps I pull out of the monitor I’m repairing.

]]>
By: Larry Reader http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-1198 Fri, 06 May 2016 01:49:18 +0000 http://www.circuitbasics.com/?p=841#comment-1198 Hey, Thanks a million Farads! Just what I needed. I was fighting with something like the first version when the effective range I needed worked with version 3, and so simple (the hardware anyway).

]]>
By: Rodrigo Ilton Caruso Stellzer http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-864 Sun, 20 Dec 2015 15:51:21 +0000 http://www.circuitbasics.com/?p=841#comment-864 Hi, can you share the modified project? Can it test a wide range with a single project and Math? Sorry if I misunderstood, I just want to test some capacitors from a old monitor to know what to change and I suck at electronics. I have arduinos and stuff laying around and it would cost me nothing, way cheaper to me than the capacimeter.

]]>
By: Vincent http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-819 Mon, 30 Nov 2015 22:20:48 +0000 http://www.circuitbasics.com/?p=841#comment-819 648 is 2/3 of 1024. 1024 being the highest value for the 10 bits ADC

]]>
By: Denny Lin http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-643 Thu, 16 Jul 2015 21:47:41 +0000 http://www.circuitbasics.com/?p=841#comment-643 Thanks for posting this! I found a kludgy way to compensate for the errors in sketch 3. I did try sketch 1 to figure out what the readings were for large capacitors (I had 6800uF, 2200uF, and 1000uF capacitors on hand). So I tried to put in two calibrations, one for values less than 1500uF, and one for values greater than or equal to 1500uF (this split point was based on what I observed with the capacitors I had on hand). For values less than 1500uF, the readings produced by sketch 3 were at about 1.18 times what my Beckman Industrial DM27XL (which can only read up to 20uF) reported, so I just multiplied the capacitance value by 84.75% (which is 1 / 1.18) of what sketch 3 was producing. For values greater than or equal to 1500uF, the readings from sketch 3 were about 1.67 times greater than the readings from sketch 1, so I multiplied the capacitance value read from sketch 3 by 60% (which is 1 / 1.67). The 6800uF capacitor reading oscillated between 7051uF (which is consistent with the sketch 1 reading) and “infnf” (infinity nf?). I also created a correction variable of type float, declared at the start of the loop() function, and assigned the correction factors depending on the capacitance value read. I made the following changes to the code within the if (capacitance > 1000.0) if block starting at line 74:

if (capacitance > 1000.0)
{
lcd.setCursor(0,1);
if (capacitance < 1500000.0)
correction = 0.8475; // Multiply by correction factor 0.8475 for capacitors below 1500uF. Calibrated against Beckman Industrial DM27XL on 10uF capacitor. 7/16/15 DL
else correction = 0.60; // Multiply by correction factor 0.60 for capacitors at or above 1500uF. Calibrated against the Arduino.cc capacitance meter on 2200uF capacitor. 7/16/15 DL
lcd.print(capacitance / 1000.0 * correction, 2);
lcd.print(F("uF "));
lcd.print(val);
lcd.print("mS");
}

Obviously, using this method you could add many more split points given an accurate capacitor meter to calibrate the output from sketch 3.

I also modified the code from sketch 1 a little, so that my LCD screen would display something (rather than a blank screen) while it was figuring out the values of large capacitors. I noticed that it is best to wait for several readings from sketch 1 because it tends to "converge" on the correct value after some time (could take several minutes before you get a reading for large value capacitors). In the setup() function, I added lcd.print("Testing cap…"); right after line 17. I took out all delay() function calls; within the loop() function, after microFarads has been calculated, I cleared the screen using lcd.clear(); which removed the "Testing cap…" text; after the lines that display the elapsed time in " mS", I removed the delay(2000); function call, the lcd.clear(); and the delay(500); function calls. The next if block contains display of capacitance in microFarads and nanoFarads; I issued a call to lcd.setCursor(0, 2); so that the measured capacitance would appear on row 2 of my LCD; I removed both delay(2000); calls. Finally, I removed the lcd.clear(); function call on line 47 of sketch 1. These changes allowed me to get faster feedback that the Arduino was working, and I could see both the elapsed time (on row 1) and the capacitance value (on row 2) on my LCD.

Denny

]]>
By: abdul hamid http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-602 Thu, 18 Jun 2015 17:19:00 +0000 http://www.circuitbasics.com/?p=841#comment-602 how calculate equivalent series resistance (ESR) capacitor with arduino uno and simple circuit ??

]]>
By: Javier Baez http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-552 Sun, 07 Jun 2015 20:01:28 +0000 http://www.circuitbasics.com/?p=841#comment-552 I didn´t understand the two last codes in the part of the following:

1. F was not declared in this scope
2. INPUT_PULLUP was not declared in this scope

With these errors, I cannot upload the code.

Could you fix for me?

Thank you for your fast response and beforehand let me say you: thanks a lot.

]]>
By: Osqui http://www.circuitbasics.com/how-to-make-an-arduino-capacitance-meter/#comment-179 Tue, 14 Apr 2015 16:12:47 +0000 http://www.circuitbasics.com/?p=841#comment-179 Why 648 in this line??: while(analogRead(analogPin) < 648){ }

]]>