A Smack to Wake Digital Contact Thermometer with 140 Days Battery Life

Srinivasan (Neutrino) has built a digital contact thermometer with display and runs on a coin cell. It has an operating span of 140 days.
Contact Thermometer showing temperature in centigrade scale

Srinivasan M (Neutrino) is so fond of DIY electronics. His latest build is a cool one. A “smack to wake” digital contact thermometer with an OLED display and runs on a single coin cell. You turn on the device by giving it a gentle smack against your palm, reminiscent of how you would shake a Mercury thermometer. This is accomplished by integrating a Piezo-electric sensor. The temperature sensor used is a metal capsulated DS18B20 with 1-wire interface. The device has to run on a single CR2032 cell. This means every component must draw the least possible current from the battery. For this reason, Srinivasan carefully selected the components and optimized the configuration and code to use minimum current. The end result was an operating time of around 140 days on a coin cell. Impressive!

The microcontroller used in the project is the ATTiny85 in an SMD package. Interestingly, this tiny controller had everything to implement this project, including an I2C interface and analog input pin. Arduino IDE was used to develop and flash the firmware on the MCU. The entire circuit consumes an average of 3mA when working at 1MHz clock and only 58uA during deep sleep. The device enters into sleep mode after it is active for while.

How you turn on the device
Inside the thermometer
3D printable enclosure

Everything was nicely arranged on a piece of perfboard. Srinivasan designed a 3D printable enclosure for this. I especially like the design of it. Very clever indeed. Have a look at a few pictures of the completed build. He has also released a complete video tutorial giving a walkthrough the build process.

Tutorial video

All of the design files and source code used to build this project are available for you to freely download. See his previous interesting builds by visiting his YouTube channel and the links below.

[All images were provided by Srinivasan]


  1. Instructables Tutorialhttps://www.instructables.com/Contact-Digital-Thermometer-With-Deep-Sleep-Attiny/
  2. Hackster.io Tutorialhttps://www.hackster.io/Neutrino-1/contact-digital-thermometer-with-deep-sleep-attiny85-8c93f8
  3. Githubhttps://github.com/Neutrino-1/digital_thermometer
  4. YouTube Videohttps://youtu.be/o19y9fz3n2o
  5. Srinivasan’s Instagramhttps://www.instagram.com/srinivasan2020/
Share to your friends
Vishnu Mohanan

Vishnu Mohanan

Founder and CEO at CIRCUITSTATE Electronics

Articles: 88


  1. This article explains about digital thermometer which is used to measure temperature. Mercury thermometers are a little bit complex in reading, so nowadays digital thermometers are in use.
    It gives quick and accurate results of temperature using the LCD display. It is simple in operation, lightweight, and compact. The digital thermometer is used in medical applications, home applications, laboratories, and food production and preparation. According to your application, you can buy a digital thermometer that is a contact or contact-free thermometer. The thermometer must be put close to the object whose temperature needs to be determined. The sensors then determine the precise temperature of that object based on the change in resistance brought on by the temperature change. To discover more about digital Thermometer you can visit robu.in

Leave a Reply

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.