You don't need a bridge rectifier, a single diode for half wave rectification would be plenty for this project. You can bump the smoothing capacitor up to something like 220uF 25v or even higher... they're not much bigger in volume.
I'd encourage you to find a buzzer that works at lower levels like 5v because you're wasting a lot of current on the resistors limiting current to leds, you could make it much more efficient with a lower voltage.
You don't need a bridge rectifier, a single diode for half wave rectification would be plenty for this project. You can bump the smoothing capacitor up to something like 220uF 25v or even higher... they're not much bigger in volume.
I will give that a try to see however I may keep the rectifier as I could still see the LED flickering on my LED Lamp circuit I made before. I just try it and see what it looks like.
I have a few other caps to try. I will measure the ripple and see what it looks like.I'd encourage you to find a buzzer that works at lower levels like 5v because you're wasting a lot of current on the resistors limiting current to leds, you could make it much more efficient with a lower voltage.
I could run it on 5V yes as I actually have a spare 6V buzzer! I will make a new version that runs on 5-6V and see what the current difference is.
ZD1 should be to the left of D1. I can't see how it would work at all as drawn.
Current flows to the left through the cap: ZD1 sources it from neutral, D1 blocks negative voltage from the load and prevents discharging of storage capacitor.
Current flows to the right through the cap: ZD1 limits voltage, D1 provides current to the load and storage capacitor.
As for simulation, I use LTspice. It will run on Windows, it will run on Linux with wine. It's reasonably easy to operate and you draw the schematic graphically.
I think Kicad was supposed to have some simulation functions too? Never used it.
So I re-built this circuit today to work on 5V. I first used a 5V USB power bank to create the circuit. It is working great like this.
I lowered the LED resistors to 330R as they were too dim to see properly at 5V with 470R.
The power LED uses 10mA. The buzzer and warning LED use approx 15mA. (25mA total approx).
I changed the C2 capacitor to 100µF which gives me approx 0.09V ripple with no load.
So I re-designed the power supply with the suggestions made in mind and this is great, and has 5.09V with no load!
However when I connect my circuit to it, it drops to 4.25V and this is causing the circuit to not work properly. Why such a huge drop in Voltage?
Output is less than nominal ZD1 voltage because of forward loss in D1. A higher zener will compensate for that.
Another thing is that the 330nF cap is essentially a current source. Its right side is more or less at 0V all the time, its left side varies ~650Vpp → there is 650V·330nF of charge injected into the load per mains cycle (20ms). Or 650V·330nF·50Hz of average current. So the cap needs to be sized for the expected load current.
Load voltage is less important, it will work about the same as long as it's much less than mains voltage.
if it works from USb why not power it from a random charger from the junk pile?
What do I need to look for in the capacitor datasheet to see if it it can handle the load current?
What do I need to look for in the capacitor datasheet to see if it it can handle the load current?I only mean that capacitance must be sufficient.
The caps have some maximum current ratings too, but they are many amps, no problem.
Why would you go with a capacitive dropper circuit though? They're used inside PIR relays and smoke alarms because they are dirt cheap, but they have terrible efficiency (and power factor, though I guess the effect is negligible).
I wouldn't make a project like this in a work setting and leave it connected to the mains 24/7 unsupervised. If you use an off the shelf adapter, the isolation is taken care of by an approved device. I wouldn't automatically assume that means you're free from liability, but a DIY mains connected device would certainly seem to open you to liability on multiple fronts.
I have been having a look at LEDs to find some lower current ones as suggested, I think this would be a great idea. Although almost all of the LEDs I can get are nominal current 10mA, max current 20mA.
I have found some 3mm LEDs that are 5mA nominal current, max current 10mA but these would be too small for my project and it would look a bit odd. 5mm Seems to be the size I need.
Am I looking at the right thing here?