| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| arduino:capmeter [2023/03/12 09:02] – tony | arduino:capmeter [2026/10/20 08:39] (current) – tony |
|---|
| The second method, for larger capacitors 1nF to at least 10µF, is to charge up the capacitor under test through the Arduino's output's pull-up resistor and evaluate the time to charge it. And thereby calculate the capacitor's capacity. Again this needs calibration, but has the advantage of not needing additional components. | The second method, for larger capacitors 1nF to at least 10µF, is to charge up the capacitor under test through the Arduino's output's pull-up resistor and evaluate the time to charge it. And thereby calculate the capacitor's capacity. Again this needs calibration, but has the advantage of not needing additional components. |
| |
| {{:arduino:capmeter:cap_meter.png?600|Arduino capacitance meter circuit}} | <HTML> |
| | <div class="shadows" style="text-align:center; margin-left: auto; margin-right: auto; "> |
| | <a href="/dokuwiki/_media/arduino/capmeter/cap_meter.png" class="media"><img src="/dokuwiki/_media/arduino/capmeter/cap_meter.png" width="70%" class="media" title="Capacitance meter circuit" alt="Capacitance meter circuit schematic" /></a> |
| | <div class="container"> |
| | Capacitance meter circuit schematic |
| | </div> |
| | </div> |
| | </HTML> |
| |
| ===== Parts list ===== | ===== Parts list ===== |
| * [[https://docs.arduino.cc/retired/boards/arduino-duemilanove|Arduino Duemilanove]] (essentially the UNO with a different USB interface). | * [[https://docs.arduino.cc/retired/boards/arduino-duemilanove|Arduino Duemilanove]] (essentially the Uno with a different USB interface). |
| * [[:electronic:lcd:vlgem1021|LCD]], VLGEM1021-09 from a Siemens optiPoint 500 economy phone. | * [[:electronic:lcd:vlgem1021|LCD]], VLGEM1021-09 from a Siemens optiPoint 500 economy phone. |
| * 20k pot | * 20k pot |
| |
| Here is my initial program cobbled together from Jonathan's code and a driver for a serial LCD (not elegant!) :\\ | Here is my initial program cobbled together from Jonathan's code and a driver for a serial LCD (not elegant!) :\\ |
| {{:arduino:capmeter:v1.00:measurecapacitor_uno_ks0073a.ino|Capacitor meter code for Arduino UNO and KS0073 display.}} | {{:arduino:capmeter:v1.00:measurecapacitor_uno_ks0073a.ino|Capacitor meter code for Arduino Uno and KS0073 display.}} |
| |
| The meter is auto-ranging from a few pF to about 100µF. I've made the output routine a little more complicated than really needed by displaying values in micro Farads from 0.1µF to 100µF, nano Farads from 1nF to 100nF, and pico Farads from 1pF to 1000pF. | The meter is auto-ranging from a few pF to about 100µF. I've made the output routine a little more complicated than really needed by displaying values in micro Farads from 0.1µF to 100µF, nano Farads from 1nF to 100nF, and pico Farads from 1pF to 1000pF. |