our project is to obtain temperature control by mixing cold water to hot water in a proper proportion , so that the water coming out from shower is at a safe and at a temperature required by the user. There are two separate containers for hot water and cold water. User will input the temperature limit by keyboard, LCD will display the choice of user. There will be 4 choices given to the user cold, moderate, hot, very hot. The temperature of the water in the hot water container is assumed that it is more than the temperature of very hot water condition. The whole process is controlled by PIC microcontroller. For the controlled flow of water we are using solenoid valves. to obtain this v r using a logic of giving opening time to the solenoid valve.. so v hav to find out exactly how much time the valves should be kept open? so plz give us a sollution?