| Ligne 7 : |
Ligne 7 : |
| | * {{pl|2737|DINCASE-2R-BP3MOD}} : 2 relays backplane | | * {{pl|2737|DINCASE-2R-BP3MOD}} : 2 relays backplane |
| | * {{pl|151|TMP-DS18B20-WP}} : a DS18B20 OneWire temperature sensor. | | * {{pl|151|TMP-DS18B20-WP}} : a DS18B20 OneWire temperature sensor. |
| | + | |
| | + | A thermostat allows to define a temperature called the setpoint (eg: 25°C) and use an hysteresis range (EG: 2.5°C) to avoids continuous state change around the target temperature. |
| | + | |
| | + | [[Fichier:heater-hysteresis.jpg]] |
| | + | |
| | + | With the hysteresis, the heater starts heating from 25-2.5 = '''22.5°C''' and will stop heating when the temperature raised above 25+2.5 = '''27.5°C'''. The temperature will slowly decrease and the heater will start again when temperature falls under 22.5°C. |
| | | | |
| | [[Fichier:MyDin-3modules.jpg|640px]] | | [[Fichier:MyDin-3modules.jpg|640px]] |
| Ligne 14 : |
Ligne 20 : |
| | [[Fichier:MyDin-3modules-usage.jpg]] | | [[Fichier:MyDin-3modules-usage.jpg]] |
| | | | |
| − | # * DS18B20 is connected to 1Wire port
| + | * LED 1 reflect the Rel 1 state (so heating state). |
| − | # * Rel 1 control the Heater
| + | * LED 2 is lit while a FORCED forced is currently active |
| − | # * LED 1 reflect the Rel 1 state.
| + | * LED 3 will blink once to acknowledge T° increase. |
| − | #
| + | * LED 4 will blink once to acknowledge T° decrease. |
| − | # * Button 1 invert (force) the state of the relay.
| + | * BUTTON 1 reverse (force) the current state of the relay.<br />When the relay is ON then it switch it off.<br />When the relay is OFF then is switch it on. |
| − | # * Forced state is canceled with the thermostat state reach the forced state
| + | * BUTTON 2 cancel the forced state. |
| − | # * Forced state is canceled when the button 2 is pressed.
| + | * BUTTON 3 will decrease the setpoint T° of 1 degree. |
| − | # * LED2 is lit while a forced state do applies
| + | * BUTTON 4 will increase the setpoint T° of 1 degree. |
| − | # * button 3 will decrease the setpoint T°. Led 3 will blick once to acknowledge.
| + | |
| − | # * button 4 will increase the setpoint T°. Led 4 will blink once to acknowledge.
| + | Current temperature, setpoint temperature and relay state is displayed in the REPL session. |
| | + | |
| | + | {{underline|'''Important remark''':}}<br /> |
| | + | Forced state is canceled when the temperature reach the setpoint temperature corresponding the forced state. |
| | + | |
| | + | Let say that |