The digital stabilizer will switch from one voltage to another automatically using relays,autoisolators,Tip 41(transistor) and microcontroller(16F877). The outputs of the transformer to be used are as follows: 140v,160v,190v,210v and 230v. Any time there is a low voltage,it can switch to a convenient voltage. if the voltage is exceeding 230V,the stabilizer should return back to a safe voltage. The voltage should not exceed 230V. This is actually a project work that will involve programming of the microcontroller. I used 6 relays,6 optoisolator, 6 diode and 6 Tip 41(transistor). But what i need now is a good circuit diagram about the connection. I'm using port B and C of the microcontroller for digital display(7 segment), port D for the autoisolator. Then, 2 pins for the analog to digital conversion. I have done a pcb for the relays,optoisolators and the Tip 41 connection. I need a circuit about the connection. Thanks to you all.