I am using an espresso machine in highly adverse mains conditions - voltage fluctuates wildly and is often far too low. The heater (1400W 220V) works OK, but the main problem is with the pump which greatly suffers when the voltage dives too low. Mostly the supply voltage is around 170 to 180, if I am lucky 200, but sometimes goes as low as 130V. Maximum I have seen is 230V (only late at night!).
The solution I want to use is to drive the pump from a 12V battery and inverter, while the rest of the machine runs directly off the mains. Thus, I need a circuit in the machine to replace the pump which creates a small signal to switch the relay on a completely separate 220V AC circuit driven from the battery and inverter. The pump is an Ulka EP5 48W 230V vibration pump (standard in most espresso machines).
Could someone kindly help me with a simple solution?
(Although the inverter is nominally 2000W, the battery is not able to supply enough energy for running the machine completely from the inverter, the battery would run down too fast).
Another constraint is that access to electronics parts where I am is very limited. No US or European parts are available, only Chinese, Japanese or Korean, and even then rather specialised or high-tech parts are rather unlikely to be available. I do have a few parts in my spare parts box; including for example an opto HCPL817, an NPN transistor BC338, and various SSD's. I plan to get a standard 12V DC relay, something along the lines of Golden Relays GH-1C-12L.
What about, for example, connecting the 2 inputs of the HCPL817 to the connectors where the pump normally goes, via 10k Ohm resistors on each input pin? Maybe also a capacitor across the input pins? At 230V input RMS current should be about 12mA, peak 16mA. At 130V RMS 6.5mA peak 9.2mA which should be enough to drive the opto. Is that sufficient protection against reverse voltage (absolute max reverse input voltage 6V) or do I need additional diodes?
On the output side, I would drive the relay coil from the 12V battery, with the BC338 on the output of the opto. Relay needs about 33mA.
Many thanks in advance for any assistance.
(Sorry about the crappy circuit diagram, I have no simple way of drawing it - a recommendation for a very simple free circuit drawing program, someone?)

The solution I want to use is to drive the pump from a 12V battery and inverter, while the rest of the machine runs directly off the mains. Thus, I need a circuit in the machine to replace the pump which creates a small signal to switch the relay on a completely separate 220V AC circuit driven from the battery and inverter. The pump is an Ulka EP5 48W 230V vibration pump (standard in most espresso machines).
Could someone kindly help me with a simple solution?
(Although the inverter is nominally 2000W, the battery is not able to supply enough energy for running the machine completely from the inverter, the battery would run down too fast).
Another constraint is that access to electronics parts where I am is very limited. No US or European parts are available, only Chinese, Japanese or Korean, and even then rather specialised or high-tech parts are rather unlikely to be available. I do have a few parts in my spare parts box; including for example an opto HCPL817, an NPN transistor BC338, and various SSD's. I plan to get a standard 12V DC relay, something along the lines of Golden Relays GH-1C-12L.
What about, for example, connecting the 2 inputs of the HCPL817 to the connectors where the pump normally goes, via 10k Ohm resistors on each input pin? Maybe also a capacitor across the input pins? At 230V input RMS current should be about 12mA, peak 16mA. At 130V RMS 6.5mA peak 9.2mA which should be enough to drive the opto. Is that sufficient protection against reverse voltage (absolute max reverse input voltage 6V) or do I need additional diodes?
On the output side, I would drive the relay coil from the 12V battery, with the BC338 on the output of the opto. Relay needs about 33mA.
Many thanks in advance for any assistance.
(Sorry about the crappy circuit diagram, I have no simple way of drawing it - a recommendation for a very simple free circuit drawing program, someone?)

Attachments
-
107.2 KB Views: 0
-
267.8 KB Views: 1
-
246.5 KB Views: 2