Solar based Dam control using 8051 microcontroller