Recently bought a yogurt maker. This is a simple device consisting of a body with a heating element and 7 jars, in which the preparation takes place.
The first batch of yogurt disappointed me a little, it was very thick, there was literally a spoon in it and it was too sour, in general, nothing close to the tasty yogurt from the store. Suspecting that the excessive acid of the yoghurt arose because of too high a temperature (to put it simply - the ferment “fermented”), I measured the temperature inside the heating body during the preparation of the yoghurt, and received - 46 ° C. The instructions for the preparation of starter yogurt indicated that the optimum cooking mode - 38-42 ° C.
Deciding to deal with the temperature regimes, I climbed inside the yogurt maker ....
Everything was very simple there, a light switch and a heating element along the plane of installation of yogurt jars, no hint of temperature and time adjustment.
')
I decided to make a yoghurt maker, with temperature and time adjustment, not to “disappear”, as it turned out later, there is more time control in models than mine, but there is no thermostat in any model.
So let's get started.Since the yogurt maker is still under warranty, we make the regulator outside, in a separate building. The heating element looks too fragile and can burn out, and telling the service center that my finishing work brings only good, thankless job.
We need to control the temperature and time in the cooking process.
The power of the heating element is not high 15W, BT137x triac without a radiator with an MOC3041 opto-thyristor (D1) will do. The ATTiny13A microcontroller (U2) was chosen as the “brain” of the design. Temperature sensor DS18B20 (U1).
Indicator of the work and settings is a switch-light on the yogurt maker.
The regulator circuit, designed in Proteus, looks like this:
Eight hours of hard work with a soldering iron and I assembled this scheme. For the compactness of the device, the installation is performed in an external installation outlet.
The power supply is taken from the charging for the phone and is divided into 3 parts; it did not fit entirely inside the case. BP_chast1 generator, BP_chast2 transformer, rectifier and BP_chast3 filter. The output voltage is 8V, which is obviously a lot for a controller with 2-5.5V power limits, therefore it is necessary to use a 5V stabilizer (L7805).
Separately on the board collected control triac. Socket from the player to connect the temperature sensor DS18B20. A button to control is installed nearby. The location for the controller is selected with the calculation for easy retrieval and programming.
Externally, it looks neat and compact.
The program works as follows.
To control the power on the load, the hardware PWM of the microcontroller was used, with the adjustment of the temperature work.
Once a minute, the temperature is measured, the value is compared, and the register adjustment (OCRA) of the microcontroller responsible for the PWM duty cycle is made.
// ------------------------------------------------ -----------------------------------------------
Temperature (); // Check temperature
if (Tds18b20> TempWork) if (OCR0A> = 10) OCR0A = OCR0A-10;
if (Tds18b20 == TempWork) if (Td> 5) if (OCR0A> = 5) OCR0A = OCR0A-5;
if (Tds18b20 == TempWork) if (Td <5) if (OCR0A <= 250) OCR0A = OCR0A + 5;
if (Tds18b20 <TempWork) if (OCR0A <= 245) OCR0A = OCR0A + 10;
// ------------------------------------------------ ---------------------------------------------
When the temperature on the sensor is greater than the specified one, the PWM value is reduced by 10 out of 255
When the temperature on the sensor is equal to the specified one, and the temperature fraction is greater than 0.5, the PWM value is reduced by 5 out of 255
When the temperature on the sensor is equal to the specified one, and the temperature fraction is less than 0.5, the PWM value is increased by 5 out of 255
When the temperature on the sensor is less than the specified one, the PWM value is increased by 10 out of 255
So we control the temperature and adjust it in the process.
For the operation of the yogurt maker in a specified time interval, a timer is configured inside the controller. When the set value is reached at 8 hours of operation, the controller disconnects the yogurt maker from the network.
About the operation of the regulator, at a given temperature, is indicated by the flashing of the indicator switch on the yogurt maker.
Different starter cultures (yoghurt, bifit, acidolact, etc.) require different modes of operation, for this there is the possibility of adjustment.
If you press and hold the button, the indicator light will flash:
1 time and release the button, the indicator flashes the current temperature in the yogurt maker (example: 22 ° C - flashes 22 times).
2 times and release the button, the indicator flashes the set temperature in the device's memory.
3 times and release the button, the indicator blinks the specified time in the device memory. Not blinked - continuous work.
4 times and release the button, then press again, the indicator will begin to flash again, how many times the indicator blinked before the button is released, this value of the set temperature will be recorded in the microcontroller's EEPROM.
5 times and release the button, then press again, the indicator will begin to flash again, how many times the indicator blinked until the button is released, this time value in hours will be recorded in the microcontroller's EEPROM. If, after five flashes, to release and no longer press the button, the regulator will operate continuously.
The set values ​​are stored in the controller's EEPROM.
Let's start cooking the "right" yogurt.Power cord yogurtnitsu plug into the outlet of the regulator, the regulator plug into the socket 220V.
The indicator of the switch will begin to flash, signaling a malfunction of the temperature sensor, plug in the connector on the regulator plug 3.5 with a sensor at the end. The indicator glows, not blinking, indicating the beginning of work. The temperature sensor lies between the jars of leaven diluted in milk.
To control the temperature, a household thermometer is placed in the body of the yogurt maker. When checking the temperature, the discrepancy between the two thermometers was 0.5 ° C, which is quite within the measurement error of a household thermometer.
The temperature is set to 38 degrees, the operating time is 8 hours.
At the end of the cycle, yogurt was no longer of such a “severe” density and the sour taste disappeared.
Enjoy your meal.This regulator can be used in any schemes with a resistive heating element with high inertia. For a powerful load, you must install a radiator on the triac.
Archive with the project in the last picture.