ATMEGA328P based voltage controller