i want to do a project regarding creating electrical energy from renewable energy.since renewable energy does not provide a constant input, i use a battery as a back up supply.so if the input higher than the desired voltage level, the voltage should be supply to the battery. on the other hand, when the input is lower, the battery will back up the supply in order to maintain the output level. the desired voltage level is around 200-400V and the battery is 400V. so, the problem is which semiconductor is the best switch to control the flow of the voltage ( in and out of the battery)?