Capacitive Dropper Calculator for Current and Capacitance

Modified on 2021/10/25 07:53 by CaptainBoing — Categorized as: design, electronics, hardware, methodology

Often times you need a small amount of power derived from a mains source - perhaps just a few tens of milli-amps to drive a micro-controller. In such cases, it can be difficult to justify the expense and size of a switched mode PSU module let alone a transformer-based linear PSU. Very often, a resistor is used to reduce voltages to working levels, but with mains, there is a lot to "shave off" and resistors are quite inefficient for such an application. Simply "burning off" the excess, they generate a lot of heat which needs to be vented and this leads to large bulky resistors... back to square one.

A better way (with caveats - we will approach in a moment) is to use a capacitive dropper circuit - that link provides all the information you could want to understand & design such a circuit. It uses the phenomenon of reactance of a capacitor to pass only a portion of the available power, so it looks a bit like a resistor to the supply but you get none of the downsides of actually using a resistor. When deriving power from mains in this manner the capacitor needs to be rated at 400V (Peak mains in UK can be 350V) and it should be "X" type for safety.

A few years back I had a need to provide a great many lighting controllers that fitted inside a ceiling rose and controlled the light on the pendant below. A PSU module would have added considerably to the project cost ignoring the confines of the ceiling rose. A capacitive dropper was designed on the controller board, fitting perfectly in the space available and provided the 75mA required.

Caveats
Before you rush off thinking capacitive droppers are a miracle answer to small mains powered PSUs, you should consider the following. They are often viewed with disdain or at least a sideways glance and a disapproving "hmmmmm" from electronics engineers, but done properly (and that means safely, clearly marked and using something else if you can) and treated with respect they are fine, but:

The calculation behind all this is fairly simple, based on the electrical principles staple for reactance(X) of a capacitor(c);
Image
Below is a tiddly trinket (I used MMBasic but it is simple enough to transcribe into just about any language) to take the required values and quickly determine either the current you can get from a dropper circuit based on the value of its capacitor or the capacitance required to supply a given current. It isn't rocket-science but it takes the grunt out of one more chore.

The Code
	Dim Float C,V,F,A,x
	Dim y$

	'defaults, change them if you need to
	V=240
	F=50

	Print "***************************************************"
	Print "* Capacitive dropper Current/Capacitor calculator *"
	Print "***************************************************"

	Do
		Print: Print "Which do you wish to calculate:"
		Print "The Current available in a circuit[A]"
		Print "or"
		Print "The Capacitance required to deliver a given current[C]"
		Input y$
		y$=Ucase$(y$)
	Loop Until y$="A" or y$="C"

	Print "Enter Supply Voltage (Vrms): [";V;"]";
	Input"", x
	If x Then V=x
	Print "Enter Supply Frequency (Hz): [";F;"]";
	Input"", x
	If x Then F=x

	If y$="A" Then
		Input "Enter Capacitor Value  (nF): ",C
		c=c/1e9' coz nF

		A=2*Pi*C*V*F*1000

		Print "Available Current is       : ";STR$(A, 1, 5);"mA"

	Else
		Input "Enter Desired Current  (mA): ",A
		a=a/1e3' coz mA

		C=(1/(2*Pi*V*F))*A*1e9

		Print "Required Capacitance is    : ";Str$(C,1,3);"nF"

	EndIf