Piotr Jankowski
Published © Apache-2.0

How to Measure Capacitance Using the $20 Oscilloscope

Simple technique to estimate (but the precision is not bad anyway) the capacitance using the oscilloscope.

BeginnerShowcase (no instructions)30 minutes718
How to Measure Capacitance Using the $20 Oscilloscope

Things used in this project

Hardware components

OMNIScope two channels Oscilloscope
×1
Resistor as precise as possible
×1
Raspberry Pi
×1
Diymat Universal Zero Plus Hat
×1

Story

Read more

Schematics

Test stand schematics

Code

Square signal generator setup

Python
import spidev
from  UniversalZeroPlus import UZP

uzp0 = UZP(SPIspeed = 16000000)
ports0 = [uzp0.PWM19]
freq = 100
uzp0.SafeMode(1)
uzp0.PWMInit(ports0)
uzp0.PWMFrequencyDuty(ports0, frequency = freq, duty = 50)
uzp0.PWMStart(ports0)

Credits

Piotr Jankowski

Piotr Jankowski

1 project • 0 followers

Comments