Hello guys,
I'm doing a simple project for autonomous heating.
This is my connection scheme:
Sorry for image, but I'm writing from phone, and can't do better.
P1, P2, P3 are a signals which indicate if Floor 1, Floor 2 or Floor 3 needs heat.
Boiler signal indicates if PELLET Boiler is working well or not.
R1 turn on the pellet boiler, R2 turn on gas boiler.
So, Arduino will manage four mode of operation:
-
Automatic mode: if P1 and P2 and P3 are off, turn off R1 and R2. Else (at least one of three is on):
-
If Boiler is on, turn on R1
-
If Boiler is off, turn on R2
-
Only Pellet boiler: turn on R1
-
Only GAS boiler: turn on R2
-
Summer: turn off R1 and R2
It's very simple, but I have two questions:
- I connected signals P1, P2, P3, and Boiler, like a normal on/off switches, following this discussion Detecting Multiple Switches/Buttons - General Electronics - Arduino Forum. Is something wrong?
- I would like to add a momentary switch for manually changing of mode of operation. How can I connect it? And what's the best way for coding it?
Thank you so much and merry merry christmas