Temperature alarm for boiling milk

Anyone who has ever boiled milk on the stove knows, that it has a nasty habit of overflowing. That is why I created the temperature alarm for boiling milk to be used my mother. It continuously measures the temperature of the milk and sounds an alarm when the temperature is over the preset alarm value.
Temperature alarm uses an Atmel attiny841 microcontroller, DS18B20 high temperature waterproof temperature sensor from adafruit, 2×16 HD44780 LCD and a buzzer to do its job.Temperature alarm for boiling milk
I’ve designed the pcb in KiCAD, etched the pcb at home and soldered it together. The circuit is fairly simple so it fits nicely on a single sided pcb. The attiny841 is programmed using my avr-usb-programmer.
The case is made from 4mm plywood and the buttons are small pieces of wooden rod glued to a square piece of plywood so they can not fall out.

How it works

Measuring temperatureTemperature alarm for boiling-milk

DS18B20 is a very simple 1-wire interface temperature sensor, that returns its output nicely in degrees Celsius, so all we have to do is request a conversion, wait for the result, read the output and display it.
I found a nice library by Jacajack that does all the heavy lifting for me, and all I have to do is call the function.
I’m reading the temperature approximately every half a second, triggered by a timer. For the sensor to work this fast I have to set lower resolution, but as I’m only displaying temperature to one decimal place, it is good enough.
Hardware interface to the temperature probe is also simple, just supply 5V and GND and connect signal to a MCU pin with a 4k7Ohms pull up. There is a mistake in my schematics and board, and I had to hack the pull up, but luckily the 5V was right next to the signal so I was easily able to solder an 0805 resistor in.
I’m using the computer fan connector, because it was the only keyed connector I had at home.
For more detail: Temperature alarm for boiling milk


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top