Search found 5 matches

by Ciceron
Fri Sep 29, 2023 12:43 am
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 3268

Re: Problem with mils not working with max6675 library.

Interesting. The data output has become clearly more correct. If previously information was displayed mainly in integers 80,81,82, etc., now 113.50 113.00 113.25 113.25 113.50 112.50 112.00 but for some reason a bug remains - at one point the readings are not readable. Log 65.25 65.25 65.25 65.25 65...
by Ciceron
Fri Sep 29, 2023 12:02 am
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 3268

Re: Problem with mils not working with max6675 library.

Here's my sketch, maybe I'm missing something? maybe you want to change the way you write your code. I would do something like this. //update the display if (millis() - timer_display > PR_DISPLAY) { timer_display += PR_DISPLAY; //advance to the next update point //update the display update_display(...
by Ciceron
Fri Sep 29, 2023 12:00 am
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 3268

Re: Problem with mils not working with max6675 library.

in setup() add timer = millis(); you forgot to initialize the variable. And use \[code\] blocks to enclose the code in posts here, that makes it much more readable. (global) variables that are uninitialised takes an undefined value, not necessary 0 (zero). imagine that it is 0xffffff, then that loo...
by Ciceron
Thu Sep 28, 2023 12:11 am
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 3268

Re: Problem with mils not working with max6675 library.

The code that I presented works but the sensor readings are not menud. are read only once at startup. I use a standard K type thermocouple. I also know that it is not read quickly. The problem is that it is not read when calling millis, but only when delay. Yes, I know about the problem of reading t...
by Ciceron
Wed Sep 27, 2023 1:37 am
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 3268

Problem with mils not working with max6675 library.

Hi all. I encountered a problem on the bluepill board, the max6675 library with a mils delay refuses to work correctly. For the library itself to work, a delay of 250 or more is required, but since the sketch uses a PID, such delays lead to unstable operation. When using classic milis processing if ...

Go to advanced search