Connecting an electric oven to…

Connecting an electric oven to an android using Wemos D1 mini

So, we connect the relay to the break of the wire supplying the burner (between the burner and the native burner power regulator). I did this just in case, for additional protection. Those. in order for our Wemos D1 mini to control the burner, we need to manually turn it on (set it to max fire). We throw wires from the Wemos D1 mini pins onto the control contacts (do not forget about the polarity), it remains only to file the sketch.

While I was soldering the pins, I remembered that I had several sensors lying around idle, left over from old projects. And again, why not?
I connected a BMP180 atmospheric pressure sensor to Wemos D1 mini (by the way, it also has a temperature sensor on board), and a DHT-21 temperature and humidity sensor. These are:

I will not describe the connection, there is a lot of information on the Internet. They are very popular.

%D0%B8%D1%81%D1%82%D0%BE%D1%80%D0%B8%D0%B8,%20%D1%83%D1%81%D1%82%D0%B0%D0% BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9%20%D1%86%D0%B8%D0%BA%D0% BB).%20%3Cbr%20/%3E%3Cb%3E192.168.0.100%3C/b%3E%20%E2%80%94%20%D1%8D%D1%82%D0%BE%20 %D0%BB%D0%BE%D0%BA%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9%20%D0%B0%D0%B4%D1%80 %D0%B5%D1%81%20%D0%BD%D0%B0%D1%88%D0%B5%D0%B3%D0%BE%20Wemos%20D1%20mini,%20%D0%BE%D0% BD%20%D0%BD%D0%B0%D0%B7%D0%BD%D0%B0%D1%87%D0%B0%D0%B5%D1%82%D1%81%D1%8F%20% D1%80%D0%BE%D1%83%D1%82%D0%B5%D1%80%D0%BE%D0%BC%20%D0%B8%20%D1%83%D0%B7%D0% BD%D0%B0%D1%82%D1%8C%20%D0%B5%D0%B3%D0%BE%20%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE% 20%D0%BF%D1%80%D0%B8%20%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0% BD%D0%B8%D0%B8%20Wemos%20D1%20mini%20%D0%BA%20%D0%BA%D0%BE%D0%BC%D0%BF%D1%8C%D1%8E%D1% 82%D0%B5%D1%80%D1%83%20%D0%B2%20%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80% D0%B5%20%D0%BF%D0%BE%D1%80%D1%82%D0%B0.%20%3Cbr%20/%3E%3Cb%3E192.168.0.100/set?climat%3C/ b%3E,%20%D0%BD%D0%B0%D0%BC%20%D0%B2%D0%B5%D1%80%D0%BD%D0%B https://jiji.ng/287-peanut-butter/creamy 5%D1%82%20%3Cb%3E751.26|21.69|49.16|23.68%3C/b%3E%20%E2%80%94%20%D0%BF%D0%BE%D0%BA%D0% B0%D0%B7%D0%B0%D0%BD%D0%B8%D1%8F%20%D0%B4%D0%B0%D1%82%D1%87%D0%B8%D0%BA%D0% BE%D0%B2.%20%3Cbr%20/%3E%3Cb%3E192.168.0.100/set?history%3C/b%3E%20%D0%BD%D0%B0%D0%BC%20% D0%B2%D0%B5%D1%80%D0%BD%D0%B5%D1%82%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D1%83% 20%D0%B4%D0%BB%D0%B8%D0%BD%D0%BE%D0%B9%20%D0%BF%D0%BE%D1%87%D1%82%D0%B8%20% D0%B2%204%20%D1%82%D1%8B%D1%81.%20%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE %D0%B2%20%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D0%BD%D0%BE%20%D0%B2%20%D1%82 %D0%B0%D0%BA%D0%BE%D0%BC%20%D0%B2%D0%B8%D0%B4%D0%B5:%20%3Cbr%20/%3E746.28|23.69|54.19 |26.14|133351518@746.21|25.09|52.78|25.34|132751517@%E2%80%A6%20%3Cbr%20/%3E%D0%AD%D1%82%D0%BE%20%D0%BF%D0 %BE%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%B8%D1%8F%20%D0%B4%D0%B0%D1%82%D1%87%D0 %B8%D0%BA%D0%BE%D0%B2%20%D1%81%20%D0%BE%D1%82%D0%BC%D0%B5%D1%82%D0%BA%D0%BE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0%BE%D0%B6%D0%BA%D0%BE%20%D0%BD%D0%B5%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB %D1%8C%D0%BD%D0%BE%20%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0%D0%B5%D1%82%20%D1 %81%20%D0%BF%D0%B0%D0%BC%D1%8F%D1%82%D1%8C%D1%8E%20%D0%BF%D1%80%D0%B8%20%D0 %BD%D0%B0%D1%80%D0%B0%D1%89%D0%B8%D0%B2%D0%B0%D0%BD%D0%B8%D0%B8%20%D1%81%D1 %82%D1%80%D0%BE%D0%BA,%20%D0%B8%20%D0%B2%D0%BE%D1%82%20%D1%8D%D1%82%D0%B8% 20%D0%BD%D1%83%D0%BB%D0%B8%20%D1%80%D0%B5%D1%88%D0%B0%D1%8E%D1%82%20%D1%8D% D1%82%D1%83%20%D0%BF%D1%80%D0%BE%D0%B1%D0%BB%D0%B5%D0%BC%D1%83.%3C/p%3E

So, everything is already working, we can receive information and issue commands. It remains only to choose a UI environment that will do this a little more elegantly than the lines in the browser. Well, here someone has a soul for what. You can make a local web page with Ajax requests. You can code a simple windows program in WPF. But of course, a smartphone will be the most convenient. Of course, I chose the latter, especially since I can code a little superficially in Jave for Android. Who can’t, you can use the amazing thing MIT App Inventor 2. This environment allows you to write programs for Android right on your knee, without knowing the language, just on algorithms. In my last review, I used it and talked about it in detail. Moreover, the result will visually differ little from the "adult" program written in Android Studio.
So, the program written in a couple of evenings looks like this:

On the main screen at the top there are buttons for selecting a burner. Since the relays are connected to the far left and near right, the buttons are located in that order. In addition, they serve as an indicator of the current mode (they change color from green to red depending on the installed power, white – if turned off). For each burner, all parameters (power, time, timer) are separate.
Below is the time elapsed since the burner was switched on. It is convenient to immediately see how long the dish is being prepared, without remembering when it was turned on, etc.
Even below the timer. Performs 4 functions:
– firstly, it is installed

A few words about user experience. Super, what can I say, even better than I thought at first. Firstly, the ability to set very precisely the strength of the fire, which will be maintained ideally. Ordinary regulators can’t do that. They have fewer gradations, plus each has its own spread. It’s not easy to guess. For dishes that boil well, this is important.
Secondly, time and timers. Honestly, personally, I’m too lazy to measure the cooking time every time, I have to do it by eye, trying. Plus, I often put it, read an interesting review on Mysku and forgot. And the timer will always remind and turn off the fire. Plus, sometimes you need to cook a dish for several hours. You can put and go to the store without worrying that you will be late.
There is no discomfort from getting the phone to turn on the burner, you quickly get used to it. This is not often done.

Well, of course, I also had the idea to try using a food temperature sensor. We lower it into a saucepan with dumplings and monitor the temperature of the water, as soon as the temperature approaches 95-99 degrees, we put the power on a low fire, the dumplings do not run away anywhere. Profit. Maybe I’ll try it somehow. It seems that such sensors would come across for sale.
Ask what is not clear, I will gladly answer. Thank you for your attention.
This is how the cat looked at me while I was doing all this:

Bir Cevap Yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir