BotronikS - Final code for all types of Arduino and PC users: -- HOME -- email: botronik@gmail.com |
TER1-DS18: Thermostat for sensor DS18B20 (-50/+120 Cels.) with 2 outputs (heating + cooling) |
||
connections (click to enlarge) |
Use accessories: | |
DisplayTube TM1637 4digit | ||
RelayShield1-4Rel | ||
PushButtons | ||
7Segment TM1637 display: (link) 1--2--3 | ||
DS18B20 temp. sensor: (link) 1--2--3 | ||
RelayModule 2way: (link) 1--2--3 | ||
Push Button: (link) 1--2--3 | ||
FREE HexCode! For price of ArduinoIDE soure code please contact us. | ||
Download the HEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader) | ||
1. ATmega328-16MHz (MINI,NANO,UNO...): HexCode-m328 - Free Final! | ||
2. AtMega2560 (Mega(ATMEGA2560)........): HexCode-m2560 - Free Final! | ||
User guide manual: |
After applying the power (or a reset), the display shows (----) for about 3 sec. During that time: |
Do action1: DEFAULT settings: Press both buttons (PB1+PB2) and when the screen turns off release. Be sure to do it (only once) after uploading the hex code in Arduino! |
Do action2: PRESET settings: Press the PB1 button and when the screen turns off release: |
P10: Display brightness intensity (0-7) |
P12: The lower limit for settings value SV1 (range -50/+120 default=-50.0) - Defining settings range limits |
P14: The upper limit for settings value SV1 (range -50/+120 default=120.0) - Defining settings range limits |
Additional preset values have no function in this project! |
Settings (in working mode): |
SET values: Press the PB1 or PB2 button (until the display goes off then release). The set values that can be changed on the buttons (PB1/PB2=+/-) are displayed. After 2 seconds of inactivity, the value on the display is stored. |
SET Temperature (SV1): Press the PB1 button (until the display goes off then release). |
SET Hysteresis (SV2): Press the PB2 button (until the display goes off then release). |
Status of outputs: |
Out1: If the measuring temperature is equal to or higher than the set value (SV1) then: Out1=0. When the temperature drops below the set temperature for the set hysteresis value (SV2) then: Out1=1 - (eg. heating function). |
Out2: Inverse of Out1 (eg. cooling function). |
Rest of outputs are not in use. |