Computing: Free Pascal Programming

Capacitor charge and discharge.


Charge et décharge de condensateurs (version française de cette page)
Download Condensateurs desktop application (Windows 64bit) Download Condensateurs source code (Lazarus/Free Pascal)

Description: Electronics related application, studying the voltage and the current as a function of time during charge/discharge of a capacitor. To do the calculations:

The program calculates Umax, Imax and the time constant τ, choosing the units in a way that their values may be represented "as small numbers with just 3 fractional digits". The u(t) or i(t) curve is drawn from t = 0 to t = 5τ, where the capacitor may be considered completely charged/discharged.
Help with the physics of capacitor circuits as well as with the usage of the application (in French as the application itself) is included.

To do: Display of both curves on the same graph in the case of a discharge.

Free Pascal features: Using bitmap canvas to draw mathematics function graphs. Displaying help using a TMemo object on a second form; filling a TMemo object from a text file.

Screenshots:

Electronics calculations and graphs: Charge of a capacitor
 
Electronics calculations and graphs: Discharge of a capacitor
 

If you like this application, please, support me and this website by signing my guestbook.