Alright, power supply and AC relay module is progressing:
I checked which one of the AC input leads is the phase and put the switch on that one. All connectors on the phase are isolated with shrink tube. There are holes in the side of the lid on the right for the AC cables, that connect to AC power and the relais inside. On the other side I will fix AC outlets and screw them onto a panel.
I will also connect 8 LEDs to show the status of the AC outlets. I am planning on finishing that today.
I am also working on the circuit drawings.
Power supply unit with one example Relay-circuit:
The jumper between the 3 pins at the top is used to supply both the signal and the relais from one VCC pin. I am planning to disconnect it though to drive the optocoupler and the relais from their own designated 5V to improve isolation to the PI.
Pi unit:
A few important questions on the Pi:
- does the single wire interface for the DS18B20 require pin 4 or will every GPIO pin work ?
- I am running out of designated GPIO pins. Can I also use the pins marked with a question mark as GPIO ?
That's the SPI pins (BCM 10,9 and 11), some UART pins (BCM 14, 15, 24, 26 and 28) and the PWM communication pins (20 and 21).
- I am currently thinking about using a designated 5 V 3A Step down for the Relais and one 5V 3A step down for the rest
(PI Zero 1.3, Ethernet adapter (300 mA), pH circuit, EC circuit, PWM circuit (PCA9685), ADC (ADS1015), 2 barometric pressure sensors (BMP280), Air quality module (SCD30 CO2 sensor))
Do you recon that will be too much draw on the 5V 3A supply ? I'll probably try and find a current draw for all circuits mentioned.
All in all I probably should have used a 12V relay board, that would have made it much easier ^^