← ProblemsCircuits / Combinational Logic / Basic Gates
Thermostat
64%basicsDesign the control logic for a heating/cooling thermostat with a fan:
- In heating mode (
mode= 1), turn on theheaterwhen it is too cold (too_cold= 1). Never use the air conditioner in this mode. - In cooling mode (
mode= 0), turn on the air conditionerairconwhen it is too hot (too_hot= 1). Never use the heater in this mode. - The
fanmust run whenever the heater or the air conditioner is on, and also whenever the user requests it directly withfan_on= 1.