The blog of a dedicated radio amateur and electronics enthusiast

"Having fun on the air and in the workshop - communicating and creating"

06 October 2019

Digital Temperature Sensor with OLED Display

Temperature Sensor - MCU board & OLED display
Serial terminal window showing count & raw adc samples
I was working on this project in April but forgot to post it until now when I was thinking about a future project using this microcontroller unit ( MCU ) board and OLED display; but more about that later.
This digital "thermometer" uses the temperature sensor and 2 Analogue to Digital Converter ( ADC ) channels, integrated on the MCU board. I am using one ADC in averaging mode for temperature. Raw temperature data are sampled every 1.875s and the parsed result of the average of a count of 8 consecutive samples is displayed. Voltage is sampled by the second ADC in basic mode every 1.875s and displayed. This is not the voltage of the batteries shown in the image but actually the supply voltage to the MCU and OLED display. I also send the count number and raw ADC measurements using a serial interface to a pc running a terminal program.
The display shows what the device is, the version of the TEMPSENS-OLED firmware installed, temperature ( in degrees C & F ) with resolution 0.01 degrees, and "battery" voltage with resolution 0.001V. Of course I can change any of the above settings and parameters in my firmware.
In my recent projects I have only learnt the basics, ( such as displaying plain text ), of using an OLED display, and not attempted any scrolling, graphics or animation.
For the next project I am considering using the MCU and OLED display with a GPS receiver module. These are available on a well known online shopping site for as little as 4.26GBP including antenna. I shall also be buying a slightly larger 64 x 128px two colour OLED display to show altitude and position; the latter with possibly 1cm accuracy !
( Click on images to zoom in ).