Добро пожаловать, Гость
Логин: Пароль: Запомнить меня

ТЕМА: Thermostat for personal use

Thermostat for personal use 25 окт 2017 23:41 #1

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
Hello

I have completed a project debated on this forum with Soir's help and I want to thank him.
I saw that you are a community that is debating issues for improving your personal environment.
I dare to please you to help me in my next project.
It is a thermostat for the apartment gas boiler. Requirements are minimal.
I'll start from Soir's project that has some useful elements for me: Time/Date/ Temperature.
I need this thermostat to have the following options:
1. Hour
2. Date
3. Temperature
4. Daytime
5. Night time
6. Daytime temperature
7. Night temperature
8. Delay day
9. Delay night
... and the light mode option
I want to use Atmega8 and DS1B20.
Please, if you have free time, help me with this project.
Best regards
Florin NAE

Администратор запретил публиковать записи гостям.

Thermostat for personal use 26 окт 2017 08:07 #2

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
What is "Delay day" and "Delay night"?
Администратор запретил публиковать записи гостям.

Thermostat for personal use 26 окт 2017 13:05 #3

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
It is the temperature differential at which the boiler stops / starts.
If it is complicated with two day / night differential values, only the delay option can be made.



or



when the temperature drops below the set value (23-0.6C), the boiler starts and when it rises above the set value (23 + 0.9C) the boiler stops
I think this is a lot better
Последнее редактирование: 26 окт 2017 13:35 от FlorinNTh.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 26 окт 2017 16:02 #4

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
I want to use Atmega8 and DS1B20.
Correct DS18B20?

And RTC DS1307?
I think this is a lot better
Should there be two delays for the night and two delays for the day?
Последнее редактирование: 26 окт 2017 16:09 от Soir.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 26 окт 2017 17:36 #5

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
Correct:
Atmega8
DS18B20
RTC DS1307

No, one delay.
For delay I want the same as in the project here: Here

I also modified my simulation with a small addition to the main panel, if it is possible for Rel: ON to be framed.

Последнее редактирование: 26 окт 2017 19:35 от FlorinNTh.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 26 окт 2017 21:44 #6

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
if it is possible for Rel: ON to be framed.
It is a bad idea. But if you draw characters by pixels then I can do it.

Test firmware.
Now there are 3 control buttons. Select the menu by the SET button. It needs to be held down for more than 1.5 seconds.
If you need 4 buttons - inform me.
If you find any problems in the work of the device - inform me.
If the device does not work properly - inform me.

Attention. The project in Proteus is not a circuit.
Before making the circuit board, first show the complete wiring diagram to me.
Последнее редактирование: 27 окт 2017 08:29 от Soir.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 26 окт 2017 22:56 #7

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
The main screen is ok but does not find the options where you can set the desired temperature, day / night and other settings.
We found settings only for time and date and a c = 0s option



I need to set:
Day / night temperature
Time day / night
Delay
and I want the same light mode option to the '' Timer '' project

It would be ok if I had 4 buttons, menu, set, plus, minus



Press SET button = set date and time
Press the MENU button;
= day / night temperature setting screen
= daytime / nighttime setting screen
= delay setting screen
= screen light mode

Button +/-
setting time (00: 00-00: 24)
setting temperature (10.0C-40.0C example)
delay setting (0.1-2.0C)
Последнее редактирование: 26 окт 2017 23:13 от FlorinNTh.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 27 окт 2017 07:30 #8

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
FlorinNTh пишет:
I need to set:
All settings are available. Go to other menus holding the SET button for more than 1.5 seconds.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 27 окт 2017 08:04 #9

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
Sorry, I checked, yes, you're right. However, when you have time to enter and button 4 (Menu), it is more useful for settings.
Thank you
Администратор запретил публиковать записи гостям.

Thermostat for personal use 27 окт 2017 08:29 #10

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
4 buttons.

N.B.
Parameter: c = 0sec is the daily correction of the accuracy of the clock.
Вложения:
Администратор запретил публиковать записи гостям.

Thermostat for personal use 27 окт 2017 08:53 #11

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
It's ok. Thank you.
I have noticed a small problem, a delay character appears after a C character.
Today I put on the test board and if this little impediment persists, I'll let you know.
A good day
Администратор запретил публиковать записи гостям.

Thermostat for personal use 27 окт 2017 09:27 #12

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
FlorinNTh пишет:
a delay character appears after a C character.
Some displays (and Proteus) do not always support all characters.
In the new firmware this problem will not be. And the file LCDALPHA.DLL for Proteus.. Place it in the project folder or in the folder ...\MODELS\ of Proteus.
Вложения:
Администратор запретил публиковать записи гостям.
Спасибо сказали: FlorinNTh

Thermostat for personal use 27 окт 2017 14:36 #13

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
Hi
I assembled the test board on the test board, all the functions are ok, the only one that does not work is the clock setting. If you press the +/- button, it goes 7-8-7-8 instead of 7-8-9-10 example. Both versions have the same problem.
Proteus works normally

''Later edit''

I changed the DS1307 and it works ok.
Thank you

P.S. I design the PCB and come back
Последнее редактирование: 27 окт 2017 15:26 от FlorinNTh.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 28 окт 2017 09:37 #14

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
Good morning
I finished the PCB for the thermostat, I will check it, then post it on the forum.
A good day
Администратор запретил публиковать записи гостям.

Thermostat for personal use 28 окт 2017 10:14 #15

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
There are errors in the PCB.
Soir пишет:
Before making the circuit board, first show the complete wiring diagram to me.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 28 окт 2017 11:12 #16

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
I did not finish, so I posted. I do not have a complete diagram.
Please help me where there are errors.
Администратор запретил публиковать записи гостям.

Thermostat for personal use 28 окт 2017 12:26 #17

  • Soir
  • Soir аватар
  • на форуме
  • Moderator
  • Сообщений: 6494
  • Спасибо получено: 2235
FlorinNTh пишет:
I do not have a complete diagram.
You must draw. Without a complete diagram it is difficult to explain and it is possible to make mistakes.
Capacitors RS-GND and EN-GND must be removed. Pin 7 ATMEGA8 must be connected to +5V.
It is advisable to connect the capacitor 0,1uF +5V-GND as close as possible to the chip DS1307.

Maybe more ...
Администратор запретил публиковать записи гостям.

Thermostat for personal use 28 окт 2017 13:17 #18

  • FlorinNTh
  • FlorinNTh аватар
  • на форуме
  • Harness is online
  • Сообщений: 32
Soir пишет:
It is advisable to connect the capacitor 0,1uF +5V-GND as close as possible to the chip DS1307.
Can I add a 01uF capacitor to the DS1307 power supply?
Pin 7 I connect it to 5v directly or through a resistor?
I added the RS-GND and EN-GND capacitors because at Timer we had interference and we eliminated them with two 10nF capacitors. I did this preventively, now we've eliminated them.

Последнее редактирование: 28 окт 2017 15:28 от FlorinNTh.
Администратор запретил публиковать записи гостям.
Модераторы: wolf2000, Vakula, Айнцвайдрайченко