Answer:
As we are converting 220V AC into a 5V DC, first we need a step-down transformer to reduce such high voltage. Here we have used 9-0-9 1A step-down transformer, which convert 220V AC to 9V AC. In transformer there are primary and secondary coils which step up or step down the voltage according to the no of turn in the coils.
Selection of proper transformer is very important. Current rating depends upon the Current requirement of Load circuit (circuit which will use the generate DC). The voltage rating should be more than the required voltage. Means if we need 5V DC, transformer should at least have a rating of 7V, because voltage regulator IC 7805 at least need 2V more i.e. 7V to provide a 5V voltage.