LM35 thermometer based on Attiny26

There will be never enough of thermometers as we know. There are tons of projects with different sensors and displays. You can choose the one which suits your needs best. SO here is another simple to built thermometer by using LM35 temperature sensor. Temperature sensor gives 10mV per ºC. This means that at 25ºC the output will be 250mV. If you connect this sensor directly to 5V referenced MCU with 10-bit ADC accuracy, you get 4.9mV step or 0.49ºC resolution. In order to increase resolution there is an operation amplifier used which adds gain of 11 to sensor signal. Gain increases resolution by order of magnitude – to 0.0445ºC. Attiny26 reads temperature value and displays it on 4-digit 7-segment LED display. LED display is common anode where each anode is driven with transistor key. Microcontroller simply scans through digits at 60fps rate to make impression that all digits are light at once. Power supply is provided by using 7805 voltage regulator which drops voltage from 9V to 5v. For longer battery life there could be switched DC/DC converter used. Continue reading

Really simple Attiny26 based digital thermometer

Since most of microcontrollers already have ADC built in you don’t need digital temperature sensors in order to measure temperature. Such sensor can be well known LM35 precision device which outputs linear 10mV per Celsius. If using analog sensor for controlling, you practically don’t need a microcontroller to get desired results. Anyway if you need to display temperature value properly you might need an MCU for this. Jerson have published his small design where he interfaces LM35 temperature sensor to Attiny26 microcontroller and displays it on four 7 segment LED display. It would work if sensor were connected to ADC directly, but with 10mV step per Celsius you would lose a resolution as ADC accepts much wider range of analog signals than sensor produces. To solve this problem he used OPA344 based amplifier that rises sensor voltage to appropriate level and thus have decent resolution of 0.0445 Celsius. Continue reading