Search found 74 matches

by igorka
20 Jun 2023, 20:27
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

Hello chromo23 ! Unfortunately, I am now sorely lacking free time for hobbies. In addition, my prototype heater with a PID controller is not available to me... I also have a bad trait, namely, while I'm actively doing something, I remember everything, it's worth taking a break and you need to rememb...
by igorka
14 May 2023, 12:45
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

Nice Idea, i will try this soon... I took the liberty to remove the unnecessary declaring of variables as TD-er suggested and did some formatting. (You wouldn’t even need to declare variables with 0 at boot, but i guess you know that...) Hi, the topic has stalled. To be honest, I myself have lost i...
by igorka
03 Feb 2023, 08:10
Forum: Introduce yourself
Topic: Hello, I'm from Russia,
Replies: 8
Views: 3164

Re: Hello, I'm from Russia,

Screenshot_1.png
Screenshot_1.png (5.38 KiB) Viewed 1888 times
by igorka
31 Jan 2023, 08:55
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

The principles of regulation systems, their differences and features are simply described. With an emphasis on the PID controller. There is a link to the original source (Italian). https://arduino.ru/forum/pesochnitsa-razdel-dlya-novichkov/etyudy-dlya-pesochnitsy-teoriya-upravleniya-i-regulyatory#co...
by igorka
26 Jan 2023, 14:45
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

:idea: Made some changes to the code: On System#Boot Do Let,1,27 //scaling I Let,2,0 //working variable "Bresenham's" Let,3,100 //discreteness "Bresenham's" Let,4,5 //P_gain Let,5,1 //I_gain Let,6,0 //D_gain Let,7,1 //Gain_scaling Let,8,0 //Feedback Let,9,280 //Setpoint Let,10,0 ...
by igorka
26 Jan 2023, 14:01
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

TD-er wrote: 26 Jan 2023, 09:56 Just added an GitHub Issue for it, to keep track of the links and ideas
https://github.com/letscontrolit/ESPEasy/issues/4482
It's good, but I didn't use his examples. I just gave a link to this guy's site, as he does smart things and is passionate about it.
by igorka
26 Jan 2023, 09:32
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

Do you have a good source of information on how to tune the PID controller? In a previous job, I have been working a lot with PID controllers to fine-tune motor controllers on CNC 3D measurement machines (so called geometric metrology). However, I always found this tuning to be quite a lot of work ...
by igorka
26 Jan 2023, 08:37
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

Nice Idea, i will try this soon... I took the liberty to remove the unnecessary declaring of variables as TD-er suggested and did some formatting. (You wouldn’t even need to declare variables with 0 at boot, but i guess you know that...) Greetings! If my code is useful to someone, I will only be ha...
by igorka
24 Jan 2023, 13:45
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

There is still an mismatch in endif's in your code This happened due to the fact that there was an error in the notepad, and there was code with comments :oops: :roll: . On ESP the code is flooded without error. Thank you for bringing this to our attention! In the first message removed unnecessary ...
by igorka
24 Jan 2023, 12:27
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

Re: PID control thermostat.

Photo to understand the work of the "Bresenham's" algorithm:
25% power.
25% power.
output_25.png (28.02 KiB) Viewed 4450 times
50% power.
50% power.
output_50.png (20.73 KiB) Viewed 4450 times
75% power.
75% power.
output_75.png (26.38 KiB) Viewed 4450 times
99% power.
99% power.
output_99.png (23.91 KiB) Viewed 4450 times
At 50% (function call 1 time per second), 1 second on - one second off. And so on.
by igorka
24 Jan 2023, 12:09
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4455

PID control thermostat.

For a long time I had a desire to make a regulator working according to the Proportional Integral Differential regulation law, abbreviated as PID. I will not describe here how it is better than the classic relay with hysteresis, whoever is interested will find the answers himself. The only thing wor...
by igorka
22 Jan 2023, 19:55
Forum: ESP Easy: Software
Topic: Mathematical operations with variables and their result.
Replies: 6
Views: 1190

Re: Mathematical operations with variables and their result.

An 'endif' is missing from your 'on rules#timer=1 do' rule, not sure where it should go, but that is a very likely cause for erratic code behavior. Finding such errors is much easier when using systematic indenting of your code. You are absolutely right, missed 'endif' :!: Thanks for the tip ;) . I...
by igorka
22 Jan 2023, 11:51
Forum: ESP Easy: Software
Topic: Mathematical operations with variables and their result.
Replies: 6
Views: 1190

Re: Mathematical operations with variables and their result.

There was a following problem and lack of its decision. So I'm asking for advice and help. It is worth mentioning that the code contains and repeats "redundant-superfluous" lines of code, this is done in order to deliberately exclude the influence of commas in numbers. I assigned values to...
by igorka
19 Jan 2023, 16:38
Forum: ESP Easy: Software
Topic: Mathematical operations with variables and their result.
Replies: 6
Views: 1190

Re: Mathematical operations with variables and their result.

Thank you. There is good news. :) The recording works as it should: let,1,26.6 let,1,[var#1]*10 // let,1,266//result // let,1,[var#1]/10 // let,1,26.6//result This entry works too: let,1,26.6 let,1,[var#1#F] let,1,26//result This entry works too: let,1,26.6 let,1,[var#1#D.1]*10 let,1,266//result
by igorka
19 Jan 2023, 15:49
Forum: ESP Easy: Software
Topic: Mathematical operations with variables and their result.
Replies: 6
Views: 1190

Mathematical operations with variables and their result.

Until recently, I had no need for calculations and therefore did not know that an unpleasant surprise awaited me :( . Next, I will give examples of what you need to pay attention to and whether such calculation logic will suit you. I do not rule out that for many this will not be a problem, but ever...
by igorka
15 Jan 2023, 14:50
Forum: ESP Easy: Hardware
Topic: New (old) project...
Replies: 143
Views: 12378

Re: New (old) project...

Indeed there is no %i1% notation and to be honest, I don't know why not.... It would make sense to use an integer value for indexing like this: [var#%i1%] instead of [var#%v1%] But that's about the only really use case I can think of where the [int#X] notation cannot be used and integers are needed...
by igorka
12 Jan 2023, 18:22
Forum: ESP Easy: General Discussion
Topic: inconsistency RTD, Rule- problem
Replies: 13
Views: 1557

Re: inconsistency RTD, Rule- problem

Maybe it's funny... The fact is that in the "C" programming language, it is considered a correct entry: x+=y; x=x+y. And that's why I make a lot of mistakes... It is also more usual to give names to variables, this also forces you to change the usual approach for writing code. Thanks for t...
by igorka
12 Jan 2023, 14:00
Forum: ESP Easy: General Discussion
Topic: inconsistency RTD, Rule- problem
Replies: 13
Views: 1557

Re: inconsistency RTD, Rule- problem

Assume you have something already in [int#1] The "let" command does all computation things you throw at it. The % is the "modulo" operator. let,1,[int#1]%2 if [int#1]=0 logentry,"even" else logentry,"odd" endif I know that I'm asking a question in the wrong t...
by igorka
07 Jan 2023, 21:59
Forum: ESP Easy: General Discussion
Topic: ESP Easy and an NTC - Possible?
Replies: 49
Views: 12036

Re: ESP Easy and an NTC - Possible?

What do you mean with „is just a tip“? Sorry, I meant something else. Google translit translated it wrong. I wrote that the ADC input does not receive a useful signal - interference. And if this is true, then after you connect the ADC pin to the GND bus, the value should be 0. Just make the wire as...
by igorka
07 Jan 2023, 13:12
Forum: ESP Easy: General Discussion
Topic: ESP Easy and an NTC - Possible?
Replies: 49
Views: 12036

Re: ESP Easy and an NTC - Possible?

Try to close the ADC output to GND, the value should be 0. It seems that the ADC value is just a tip.
by igorka
24 Dec 2022, 18:50
Forum: ESP Easy: Hardware
Topic: New (old) project...
Replies: 143
Views: 12378

Re: New (old) project...

You're probably right. But 512 kb will be available for the file system.
https://ultran.ru/sites/default/files/e ... asheet.pdf
by igorka
24 Dec 2022, 17:46
Forum: ESP Easy: Hardware
Topic: New (old) project...
Replies: 143
Views: 12378

Re: New (old) project...

M*I*B wrote: 24 Dec 2022, 17:07 Does anyone know this version here? Can it be that it is a ESP-07 with 1Mb?
This is an ESP-07 module, unfortunately it has only 512kb of flash.
by igorka
11 Dec 2022, 18:36
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

In this particular case, the solution with this plugin is completely suitable for me. But let me express my opinion or even wishes. It would be very convenient to be able to (command) save user variables "Let" in flash. After all, there is certainly a need to work - to operate not only wit...
by igorka
08 Dec 2022, 10:36
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

Thanks! I will definitely do it later.
by igorka
08 Dec 2022, 10:15
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

There is a problem with setting the value using the configuration command. The picture shows the settings of my plugin: 1.png I enter the command config,task,thermostat,28.00,temperature: 2.png The value does not change. As it was 24, so it became, the temperature is also maintained at 24 degrees. A...
by igorka
08 Dec 2022, 09:22
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

I will be grateful and grateful to you if you create an assembly for me. But after all, the plugin can be used without a display? I don't have it and I just don't need it in this product.
by igorka
08 Dec 2022, 09:05
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

Can you elaborate? I don’t understand what you mean. It's very simple. I use the ESP-01S module, with an expansion board for it (relay module). By default, the relay is controlled by GPIO.0, and the circuit design of the relay module is such that in order to turn on the relay, on the GPIO.0 you nee...
by igorka
07 Dec 2022, 18:56
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

Thanks. I will definitely try to test this plugin!
Another question: I have reverse control, logical zero is included, logical unit is disabled. Is it possible to set these parameters in this plugin? Or will I have to do an inversion at the output through the rules?
by igorka
07 Dec 2022, 18:26
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

That's not correct (I corrected it in my sample code), should be: I have corrected according to your example. Now everything is correct. Not sure what you mean with "re-recording" ? This is the right question! I mistakenly assumed that after the power was turned off, the contents of the v...
by igorka
07 Dec 2022, 16:32
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

That should be something like this: Thanks! That's exactly what I wanted. So I made a re-write protection if the value has not changed: On heater#ustlow do logentry,"MQTT import ustlow: %eventvalue1%" if [telephone#low] = %eventvalue1% tone,3,150,100 else TaskValueSet 3,1,[floor#temperatu...
by igorka
07 Dec 2022, 12:56
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

Please excuse me, I didn't understand you well (Google translit). Or I don't speak well... I need to set thresholds for turning on and off the thermostat from the application in the phone, using the mqtt protocol. To do this, I created a dummy device where two variables are low and high, how can I s...
by igorka
07 Dec 2022, 11:16
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

You should have a look at P109 Thank you friend! To be honest, for my solution of my problem, this approach is redundant. It's more visual and informative with the display, but I don't need it, the mqtt app on the MQTT Dash phone is enough. It is very simple and probably this is its minus, at the s...
by igorka
02 Dec 2022, 19:43
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 31706

Re: Rules in ESPeasy

You can also store the set value in a dummy, which will be kept even after a reboot or crash. As long as you don't have a power cycle... but then you probably also would have lost the settings on your thermostat, so your wife will probably accept that as an excuse :) You can explain in more detail ...
by igorka
10 Nov 2022, 11:56
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

Anyway, let's not make things more complicated. Just keep in mind that color mixing with light differs from color mixing with paint. :) Of course we won’t, because you explained everything to me very sensibly! Thank you for your help! Also, I don't fully understand the color codes if you put it thi...
by igorka
10 Nov 2022, 06:26
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

As you can see, the result is the same. Does it work if you use "on Led#Hu do" ? Hooray works!!! You're a magician.Very complex code, I would never have thought of that. Screenshot_3.png I looked at the NeoPixel library and there in my opinion there is a convenient option for recording co...
by igorka
09 Nov 2022, 17:20
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

You'll have to use my other example in that post using "on Led do" On Led do logentry,"MQTT import Hue: [Led#Hu], Sat [Led#saturat], Val [Led#val]" NeoPixelAllHSV,[Led#Hu],[Led#saturat],[Led#val] endon Screenshot_1.png On Led#All do logentry,"MQTT import Hue: %eventvalue1%,...
by igorka
09 Nov 2022, 16:55
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

Thank you, I am grateful to you for your help and time spent on me! But unfortunately your code examples don't work either, at least for me. :( Such a rule: On System#Boot do NeoPixelAllHSV,0,0,0 endon On Led do logentry,"MQTT import Hue: [Led#Hu], Sat [Led#saturat], Val [Led#val]" NeoPixe...
by igorka
09 Nov 2022, 15:41
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

I'm sorry, I wrote some nonsense with a bunch of mistakes, it's a rush and a low level of knowledge in programming.Maybe delete my previous post?I created three variables to control the RGB tape, let,1; let,2; let,3.I need the Mqtt protocol to send values and save them to the variables let,1; let,2;...
by igorka
09 Nov 2022, 12:58
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

let,3,[int#1]+[int#2] // perform calculations let,1,[int#1]+1 Thanks for the help!Honestly, I only noticed that you replied... Fortunately for myself, I was able to find an answer on the forum, and only then read your message. Excuse me, but I have a question again... My goal is to try to control t...
by igorka
08 Nov 2022, 09:54
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

TD-er wrote: 08 Nov 2022, 09:32 Can also test it on any NodeMCU board.
If you don't mind, check on ESP8266.After all, I have problems with this particular controller.
Thanks!
by igorka
08 Nov 2022, 08:24
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

This is good news for anyone who uses ESP Easy, but bad news specifically for me. For reference, which ESP controller card are you using and which pins are connected to the I2C bus?
by igorka
07 Nov 2022, 16:54
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

Thanks for the answer above! Questions again ... How to perform integer calculations (mathematical operations with variables)? On System#Boot do loopTimerSet,1,1 let,1,1 let,2,1 let,3,0 endon on Rules#Timer=1 do [int#3]=[int#1]+[int#2] endon And such a record does not work either... [int#1]+1 What ...
by igorka
07 Nov 2022, 10:43
Forum: ESP Easy: General Discussion
Topic: simplified rules Neopixel
Replies: 19
Views: 3108

Re: simplified rules Neopixel

I'm starting to get acquainted with NeoPixel (WS2818B)...As always, there are more questions than answers. Why does such a record work incorrectly? On System#Boot do let,1,120 let,2,100 NeoPixelAllHSV,let1,let2,10 endon I want to try such a code example as for Arduino, but I don't have enough mind y...
by igorka
06 Nov 2022, 10:51
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

In the photo, there is a signal from the output 32K of the DS3231 module.Based on this, I am more and more inclined that the problems are in the firmware or ESP-01S.
32kHz.png
32kHz.png (37.4 KiB) Viewed 5550 times
Do not pay attention that the signal is bipolar, the oscilloscope input is closed.I forgot to turn it off...
by igorka
02 Nov 2022, 17:42
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

Sorry for the question. I wanted to know if you managed to start the DS3231 correctly?
by igorka
01 Nov 2022, 13:19
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

For example a loose ground? No pull-up resistors on the SDA/SCL lines? No, that's out of the question.Everything is on soldering, there is good contact everywhere.This is a photo of a mock-up for experiments.I specially assigned SDA and SCL to the RX, TX contacts so that external components on the ...
by igorka
01 Nov 2022, 08:28
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

If you uncheck the "Enable Serial port" option on the Tools/Advanced page, you can use those pins. Yes, yes, you're right.I did it earlier and wrote about it, this is my mistake :cry: . Можете ли вы попробовать это? Unfortunately, this did not help, the RTC does not work, perhaps this pro...
by igorka
31 Oct 2022, 19:17
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

Unfortunately, the result is negative.Similarly, when scanning the I2C bus, two addresses 0x57 and 0x68 (DS3231) are read.I set the system time with the Datetime command,2020-10-10,10:00:00, it is worth turning off the power and turning it on again, the time is not read from the RTC, ExtRTC: Cannot ...
by igorka
31 Oct 2022, 15:24
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

TD-er wrote: 31 Oct 2022, 15:15 Just any 1M build?
mega_ESP8266_1M.bin
Can you explain in private messages how to download from github?
by igorka
31 Oct 2022, 14:54
Forum: ESP Easy: Software
Topic: External Time Source -DS3231 need help
Replies: 67
Views: 14493

Re: External Time Source -DS3231 need help

I guess I'm too stupid.I can't figure out how to download the firmware file :cry:.If it's not difficult for you, give a direct link to the file for the ESP-01S board (ESP_Easy_mega_XXXXXX_ESP8266_1M.bin).