Hi guys,
I need help figuring out some logic, so heres what i need to happen.
There are 3 modes of operation, the others arent important and the moment and i will just need help with the auto mode.
I need to controll 3 a/c units via 2 x averaging temp sensors. When inside temps hit 35 ac 1 will begin functioning, if room temps hit 37.5 then ac 1 & 2 will function and if room temps hit 40 then ac 1,2 and 3 will function.
On top of this i need the order of the ac's switching on to change once every week, for example week one the order the ac will turn on will be 1,2 then 3, week two will shuffle the order to be 2,3,1 and in week three it will work 3,1,2. this pattern will then repat itself.
I am having trouble soughting out a logic that can know wen temp is within the right range to turn the right ac's on whilst also having the order of the ac alternate weekly.
Help is appreciated.