Learn   /   Beginner Tutorials   /   PIC16F876A

Homemade temperature LED display for PC using PIC16F876

Since I started my watercooling prejoect, I have been verry interested in how well it perform, the only way is to measure all temperatures before and after, The motherboard temperature sensors is useless unacurate, so I'm using LM50B

Published
Updated

At a glance

CategoryBeginner Tutorials
PIC modelPIC16F876A
Reading time~3 min

Summary of Homemade temperature LED display for PC using PIC16F876

This project creates a custom water-cooling monitoring system using an LM50B sensor for 1°C accuracy, replacing inaccurate motherboard sensors. A PIC16F876 microcontroller processes four analog inputs to drive up to eight common-cathode LED displays, allowing real-time temperature tracking of the CPU, chipset, graphics card, and hard drives. The circuit features input protection resistors and utilizes a stable 2.56V reference voltage generated by either a precision regulator or an LM317 setup, powered directly from a hard drive connector.

Parts used in the Homemade Temperature LED Display:

  • LM50B temperature sensor
  • PIC16F876 microcontroller
  • Common cathode LED displays (2 to 8 digits)
  • N-FET transistors (e.g., IRF530) or NPN transistors
  • 1k resistors for base inputs and sensor protection
  • 2.56V reference voltage regulator (precision or LM317 configured)
  • Hard drive power connector (5V supply)

temperature LED display
By using this LM50B sensor I get 1 C of real accuracy
I use a PIC16F876 to drive a four two digits LED displays, the PIC16 has 4 analog inputs with 10 bits resolution,
now I can display 4 temperatures at the same time to monitor performance 🙂
I monitor CPU, Chipset, GFX card, Harddisks.

Here is the schematic good old handdrawn original..
Here is the schematic Re-Drawn Maybe you like this better 🙂 OK, comments for the circuit:
You can use any number of LED displays: 2, 4, 6, or all 8, depending on how many temperatures you want to display,
LED display type must me common cathode, FET can be any N-FET type you have, I have used IRF530 I had on stock,
NPN transistors can also be used if you dont have fets, then remember to mount a 1k resistor on each base inpus.
Each sensor input connector is protected using a 1k resistor, so you can connect sensors with power on,
nothing will burn if you connect it wrong.
Only calibration requred is the refference voltage, it need to be exactly 2.5600 volt, I have used a super stable regulator,
but an LM317 can also be used to make 2.56 volt with if that is what you have. DOWNLOAD The HEX file for the PIC16F876.
The 5 volt supply is taken from a free harddrive power connector, no need to regulate it, 4.8 to 5.2 will work fine.
This complete circuit with 8 all digits consume about 100mA. Good Luck.

For more detail: Homemade temperature LED display for PC using PIC16F876

  • Why is the motherboard temperature sensor considered useless?
    The article states that motherboard temperature sensors are inaccurate compared to the custom solution.
  • What level of accuracy does the LM50B sensor provide?
    The LM50B sensor delivers 1 degree Celsius of real accuracy.
  • How many temperatures can be monitored simultaneously with this setup?
    The system monitors four temperatures at the same time using four analog inputs on the PIC16F876.
  • Which type of LED display is required for this circuit?
    The design requires common cathode LED displays.
  • Can I use NPN transistors instead of FETs?
    Yes, NPN transistors can be used if you do not have FETs, provided you mount a 1k resistor on each base input.
  • How is the sensor input protected against incorrect connections?
    Each sensor input connector is protected using a 1k resistor to prevent damage even if connected incorrectly while powered on.
  • What is the exact reference voltage required for calibration?
    The reference voltage must be exactly 2.5600 volts for proper calibration.
  • Where does the 5 volt supply come from?
    The 5 volt supply is taken from a free hard drive power connector without needing regulation.
Development Boards & Kits · PIC16F876A

Ultrasonic Range Finder Circuit AD605 PIC16F876

Ultrasonic distance measurement, detection circuit pic16f876 microcontroller and ad605 (Dual Low Noise Variable Gain Amplifier singlesupply) integrated circuit diagrams used are C...

Sensors & Temperature · PIC16F876A

Interfacing Temperature Sensor with Microchip PIC16F876A

The tutorial aims at providing the necessary information for interfacing an analog type temperature sensor with a Microchip PIC Microcontroller. PIC (Peripheral...

Beginner Tutorials · PIC16F876A

Homemade Scope Clock DG7 tube and PIC16F876

Powersupply and CRT deflection and microcontroller test circuit. I was lucky to purcase two used but working DG7 tubes and a transformator...

Beginner Tutorials · PIC16F877A

PIC16F877 Driving LCD in 4-Bit Mode using PIC16F877 with Proteus Simulation

Introduction This microcontroller project shows how a PIC16F877 can drive an LCD display using 4-bit mode inside a Proteus simulation.The project demonstrates...

Beginner Tutorials · PIC18F4550

PICDEM FS USB CDC Evaluation Board using PIC18F4550 with Proteus Simulation

Introduction The PICDEM FS USB CDC Evaluation Board is a practical microcontroller project built around the PIC18F4550, designed to demonstrate USB communication...

Beginner Tutorials

PIC12CE518 I2C EEPROM using PIC12CE518 with Proteus Simulation

Introduction This microcontroller project demonstrates how to write and read data using the internal I2C EEPROM of the PIC12CE518 and visualize the...

Ibrar Ayyub

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...