#012 Capacitorial - Graphing Capacitor Discharge
Use an Arduino to charge a capacitor and graph the discharge with Processing.
Here’s a quick video of the circuit in action:
Notes
The circuit uses a digital output pin to charge the capacitor. When the pin is brought low, the LED will be powered by the capacitor discharge (through a current-limiting resistor). A diode prevents the discharge from being fed back into the digital output pin.
The voltage at the positive terminal of the capacitor is read with an analog input pin, with the value echoed to the Arduino serial port.
Grapher (a simple Processing sketch) reads the data from the serial port and plots the value over time, with some coloration effects thrown in for good measure. In other words, we’re using Arduino and Processing as a basic oscilloscope! And it kind of works, mainly because the frequency is so low.
Varying the capacitance
Varying the capacitance will affect the storage potential and discharge rate.
47uF
At 47uF, the capacitor is given enough time to fully charge (note the plateau), and discharge is very rapid.