microcontroller based circuit