

So our project is based upon using a solar panel as the main source, but in case it fails, we need the circuit to automatically switch to the government supply which we'll be converting into 12V DC. Can this be achieved directly and simply by a relay circuit like the one in the image? Or we need a sensor and a micro-controller like Arduino for the job? Also, are there any changes that I need to make in the circuit?
