HOME Technical Tips  


OLED display, 128x64, 0.96", SSD1306, I2C with PIC12F629 and DS18B20 sensor. Oled is driven by software (bit banging) I2C. Code includes functions for reading the sensor.
Temperature range is -55 to 100 centigrade.
470 ohm resistors are for attenuating 5V output of the pic to 3.3V input of the OLED.

thermo 629


OLED display, 128x64, 0.96", SSD1306, I2C with PIC16F628A. Oled is driven by software (bit banging) I2C. Setting the room temperature by 2 buttons.
Output transistor is to drive a relay or directly 24VDC input to a central heating boiler. Hysteresis is 0.5 degree. Reading the temperature is every second.

thermo thermo

Circuit Description
See also Technical Tips

Pushbuttons are momentary N.O.
DS18B20 can be any type of casing.
OLED module is I2C interface, 4 pins connector. Driver SSD1306. From ebay: https://www.ebay.co.uk/itm/0-96-I2C-IIC-Serial-128X64-White-OLED-LCD-LED-Display-Module-for-Arduino-UK/192294699203?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649


Thermometer based on PIC16F876A and DS18B20 digital sensor. Included C code and circuit diagram. Displays -55 to 125 centigrade. The temperature is read every 1 second. The math is using integers to calculate the degrees and the tenths of degrees are calculated separately.
Output at pin 3 can be used for driving a relay that is on when temperature is higher than alarm setting. It can be used as a thermostat or an alarm for over temperature. To set the alarm press SET for 2 seconds, then press DEGREE to set the alarm, then press SET again. 
The OLED module is a 0.96" 128 X 64 pixel driven by I2C interface and using SSD1306 driver IC. The OLED display uses low power LEDs and suitable for battery operated. Power can be reduced farther by reducing contrast.

You are free to use the circuit diagram and the software with no limitations.


Circuit Description
See also Technical Tips

OLED Thermometer
Pushbuttons are NO
DS18B20 can be any type.
OLED module can be bought from ebay: https://www.ebay.co.uk/itm/0-96-I2C-IIC-Serial-128X64-White-OLED-LCD-LED-Display-Module-for-Arduino-UK/192294699203?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649


Comments and questions

Copy the number from the picture It stops net-robots from adding comments.

Be the first to add a comment.

iconFlag Countermoty22.co.uk  2008-2022