The powering supply voltage to a microcontroller is 5v if you use a 5v transformer if there is loss of power your output voltage will be drop in the rectifier and there will be change in voltage these can be overcome using a regulator it will give a constant output