I am trying to build my own IOT smart home and as a first step, I used the following components to build a module to control ligts and fans:
- Atmega 328P - to control the 8 module relays
- NodeMCU - for WiFi.
- 74HC595 Shift registers - to increase pins on Atmega328P.
- A capacitive touch sensor
- A 555 timer - to act as a watchdog reset (qty: 2, one for Atmega328P and one for NodeMCU)
- Two 7404 Hex inverters
- 8 Module relays - https://www.alibaba.com/product-detail/8-channel-relay-PLC-control-panel_60294976701.html
To power up the module, I am designing a power source and I am stuck at this step: I am unable to calculate the total power supply required for the whole module(above listed parts) to work. I am planning to use a single source of power supply, and from there power up all the components. This power supply would take 220V as input and should give out 5V/3.3 V as output. What should be the Ampere that the power supply should be able to provide?
I am new to electronics, Please help me understand the power requirements for the components especially how much Amps is required totally by each component and also how to build a power supply that would be able to power up all the components with safety controls. What safety features should I follow? Thanks for your help.
Edit: I am willing to learn as I have come this far by learning looking at blogs and videos. But for this power supply I am not able to find any resource to build. Thats why I have turned to stack exchange for help.