Thanx Pplus, I want to detect the presence of AC, but how do I check the digital input to the MCU? Am quite new to MCUs. But I want to connect 3 voltage sensors to the MCU, one to the normal utility, one to the generator and one to the load; so that when utility is lost, the MCU will start a genset engine through a solid state relay. When the gen develops voltage, the gen sensor will communicate it to the MCU and finally the MCU actuates a stepper motor on whose shaft is a circuit breaker actuator. The actuator switches the supply. All this will be factored into the MCUs firmware.
- - - Updated - - -
Thanx Pplus, I want to detect the presence of AC, but how do I check the digital input to the MCU? Am quite new to MCUs. But I want to connect 3 voltage sensors to the MCU, one to the normal utility, one to the generator and one to the load; so that when utility is lost, the MCU will start a genset engine through a solid state relay. When the gen develops voltage, the gen sensor will communicate it to the MCU and finally the MCU actuates a stepper motor on whose shaft is a circuit breaker actuator. The actuator switches the supply. All this will be factored into the MCUs firmware.