Oven electric control project

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dimetrius
New user
Posts: 6
Joined: 07 Feb 2021, 07:52

Oven electric control project

#1 Post by dimetrius » 07 Feb 2021, 16:57

Hello everybody
I want to use espeasy esp32 in an electric oven control project.
After searching the forum, I did not find such a topic.

So there is:
1.esp 32 dev board
2.lcd 2004 i2c 2x16 (or 4x20)
3.max 6675 K-type
4.encoder without button (for temperature setpoint and timer)
5.additional button (turn on the screen backlight)
6.A buzzer for audio control
7.Relay 30A (Chinese Amp), will later be replaced by a contactor

Added such devices:
devices.jpg
devices.jpg (123.93 KiB) Viewed 10838 times
The following rules are written:

Code: Select all

on rotary#count do
LCDCMD,on
if [Switch#state]=1
LCD,1,1,Temperature:[sens#temp]{D}
LCD,2,1,Setup_Temp:[rotary#count]{D}
TaskValueSet,4,1,[Rotary#count]
Let,1,[Rotary#count]
timerset,1,5
timerset,2,4
else
LCD,2,1,Set_Timer:[Rotary#count]s.
TaskValueSet,4,2,[Rotary#count]
Let,2,[Rotary#count]
timerset,1,5
loopTimerSet,3,1,%v2%
endif
endon

on Rules#timer=1 do
LCDCMD,off
LCDCMD,clear
tone,18,5000,100
endon

on Rules#timer=2 do
config,task,setpoint,setlevel,[set#Temp]
rtttl,18,test:d=8,o=5,b=180,c6,b,c6,p,g,g-
endon

On Rules#Timer=3 Do
Let,3,[set#timer]-1
TaskValueSet,4,2,[int#3]
EndOn

on switch#state=0 do
LCD,1,1,Temperatura:[sens#temp]{D}
LCD,2,1,Timer:[set#timer]s.
timerset,1,5
endon

on set#timer=1 do
TaskValueSet,4,2,0
LoopTimerSet,3,0
rtttl,18,test:d=8,o=5,b=180,c6,b,c6,p,g,g-
endon
The structure is assembled on a breadboard.
now being tested.

I am ready to hear the opinion of advanced users, since I am new to espeasy. so far I only use precompiled versions of espeasy
I plan to add control for mqtt

Sorry for my google translation :)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Oven electric control project

#2 Post by TD-er » 07 Feb 2021, 20:29

dimetrius wrote: 07 Feb 2021, 16:57 [...]
7.Relay 30A (Chinese Amp), will later be replaced by a contactor
[...]
This raises a big red flag for me.

An oven typically may take quite some high current and Chinese relays and also those Solid State Relays often have also "Chinese specs", meaning you cannot trust the specs.

To use the more scientific notation for this:
High currents + unreliable specs => red flag!

So before we get any further, I would like to know what current you expect to handle and what relay you plan on using.

dimetrius
New user
Posts: 6
Joined: 07 Feb 2021, 07:52

Re: Oven electric control project

#3 Post by dimetrius » 08 Feb 2021, 07:23

This raises a big red flag for me.
I understand this perfectly well, in fact, a contactor of the https://il.farnell.com/abb/esb20-20/ins ... N-SHOPPING or https://il.farnell.com/abb/esb24-40/ins ... dp/2081164 type will be used
this relay :) is for testing only

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Oven electric control project

#4 Post by TD-er » 08 Feb 2021, 11:34

ABB stuff is OK :)

Those need (at least) 12V and it seems they are specified to be used on AC. No not sure what will happen to them if you operate them on 12V DC.
They might get a lot warmer and maybe also become magnetized after a while and thus refuse to switch off.
So you may need to look into those aspects.
Or use the cheap relay (or a solid state one, which is even easier to connect to an ESP as it is essentially like an LED) to switch the ABB relay.
Then you can use the 230V control voltage versions.

dimetrius
New user
Posts: 6
Joined: 07 Feb 2021, 07:52

Re: Oven electric control project

#5 Post by dimetrius » 08 Feb 2021, 11:43

TD-er wrote: 08 Feb 2021, 11:34
... use the cheap relay (or a solid state one, ... to switch the ABB relay.
that's exactly what i planned
What do you think about the rule code?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Oven electric control project

#6 Post by TD-er » 08 Feb 2021, 11:51

ow often will timer 2 be set?
The reason I ask is that it calls the setlevel command, which triggers a save call => Write to flash.

Maybe it is a better idea to set this timer to a longer period?

dimetrius
New user
Posts: 6
Joined: 07 Feb 2021, 07:52

Re: Oven electric control project

#7 Post by dimetrius » 08 Feb 2021, 12:01

TD-er wrote: 08 Feb 2021, 11:51 ow often will timer 2 be set?
I think that it will start (no more than twice during the entire baking time), it is only for the heating temperature setpoint
There is still a question, is it possible to display a flashing line on the display to indicate the heating / preheating mode?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Oven electric control project

#8 Post by TD-er » 08 Feb 2021, 12:38

You can set the desired temp as a variable and you know the state of the relay.
So you can set a loop timer to trigger writing something to your display.
Just keep in another variable the last state of your "flashing" (on/off) which you toggle on every run.

For example (pseudo code):

Code: Select all

on rules#timer=3 do
  if setTemp - temp > 5
   display,position,[int#1]
   let,1,![int#1]
  endif
endon
By the way, what I am missing in your rules is where you turn on the oven/heater.
Or does it have its own thermostat?

dimetrius
New user
Posts: 6
Joined: 07 Feb 2021, 07:52

Re: Oven electric control project

#9 Post by dimetrius » 08 Feb 2021, 13:35

TD-er wrote: 08 Feb 2021, 12:38 You can set the desired temp as a variable and you know the state of the relay...
that is, not using the "Regulator - Level Control" plugin, to avoid writing to flash memory?
TD-er wrote: 08 Feb 2021, 12:38 ...
Or does it have its own thermostat?
It also has its own mode selector such as
regul.jpg
regul.jpg (33.67 KiB) Viewed 10774 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Oven electric control project

#10 Post by TD-er » 08 Feb 2021, 14:39

dimetrius wrote: 08 Feb 2021, 13:35
TD-er wrote: 08 Feb 2021, 12:38 You can set the desired temp as a variable and you know the state of the relay...
that is, not using the "Regulator - Level Control" plugin, to avoid writing to flash memory?
TD-er wrote: 08 Feb 2021, 12:38 ...
Or does it have its own thermostat?
It also has its own mode selector such asregul.jpg
If you can avoid changing the level control plugin a lot then you can use it just fine.
I will have to look at that plugin to make the saving optional or at least make sure it doesn't wear out the flash like it does now if you change it often.

dimetrius
New user
Posts: 6
Joined: 07 Feb 2021, 07:52

Re: Oven electric control project

#11 Post by dimetrius » 08 Feb 2021, 15:24

Thank you for your time and a wonderful espeasy project.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests