As you can see from the figure...
So i have two Switches. Close switch S1 gives me 230 Volt AC, whereas closing switch S2 gives me 5 Volt DC.. I have two appliances one works on 230 V AC(A1) and the other works on 5 V DC.. all the elements have a common ground or neutral.
the truth table is given ..
Is there any circuit that does not require costly components to achieve this?
It has two switches, controlled by the act of electromagnetic field, you supply the relay with 230v AC and branch two terminals to switch 1. From the same source use an AC/DC converter and branch its two terminals (+5|-5V).
At the end the output would be for switch 1 230V AC and for switch 2 two terminals as +/-5V
The action of the inner field could be understood from its datasheet