LM75 Temperature Sensor with 7 segment display output

[An old project I moved from my previous website]

This is a test project built hastily on a solder less breadboard. It uses a LM75 to read the current temperature via I2C and displays the result on three 7 segment displays. It uses a PIC16F628 with an internal 4 Mhz clock.

The program was created using JAL

Note the LM75 is a surface mount device, so I had to solder wires onto it to use it on the solderless breadboard.

LM75 Temperature Sensor on breadboard
LM75 Temperature Sensor on breadboard

Sorry for the bad quality photo. The stuff on the left is a 5V voltage regulator and not shown on the schematic below.

LM75 Temperature Sensor Schematic
LM75 Temperature Sensor Schematic

Component List

Part     Value          Device      Package  Library        Sheet

D1                      7SEG-CA     7SEG-13  special        1
D2                      7SEG-CA     7SEG-13  special        1
D3                      7SEG-CA     7SEG-13  special        1
IC1      PIC16F628      PIC16F628   DIL18    microchip      1
IC2      LM75           LM75        SOP-8    andre_lm75     1
Q1       BC557C         BC557C      TO92-EBC transistor-pnp 1
Q2       BC557C         BC557C      TO92-EBC transistor-pnp 1
Q3       BC557C         BC557C      TO92-EBC transistor-pnp 1
R1       12K            R-EU_0207/7 0207/7   rcl            1
R2       12K            R-EU_0207/7 0207/7   rcl            1
R3       1K             R-EU_0207/7 0207/7   rcl            1
R4       1K             R-EU_0207/7 0207/7   rcl            1
R5       1K             R-EU_0207/7 0207/7   rcl            1
R7       220            R-EU_0207/7 0207/7   rcl            1
R8       220            R-EU_0207/7 0207/7   rcl            1
R9       220            R-EU_0207/7 0207/7   rcl            1
R10      220            R-EU_0207/7 0207/7   rcl            1
R11      220            R-EU_0207/7 0207/7   rcl            1
R12      220            R-EU_0207/7 0207/7   rcl            1
R13      220            R-EU_0207/7 0207/7   rcl            1
R14      220            R-EU_0207/7 0207/7   rcl            1

In case you are like me and couldn’t find the pinouts for the sevent segment display, here they are:

7 Segment Display Pinout
7 Segment Display Pinout

Download the project here: [download id=”1″ format=”1″]

28 thoughts on “LM75 Temperature Sensor with 7 segment display output”

  1. I am trying to recreate your project as you have graciously laid out for a novice such as myself. The difference that I have made, is that I am trying to increase the scale of the LEDs to 4″ requiring 3.3v max on each segment. Any ideas on the pitfalls that I may encounter? BTW, Great looking website!

  2. I have to admit, its been a long time since I tinkered with this stuff, but I expect that with the correct value resistors you can limit the voltage to 3.3v.

  3. Hi, i have reproduced your project. And i was so amazed it worked great. The only problem is the LM75 chip that seems to come only on SOP package. Isn’t there any adapter or converter to DIP or something?. Anyways, you are awesome.

  4. Newby here again. To program the PIC I am using a PICkit2 and a small bred board. Is there a guide how to wire the bred board as an interface between the PICkit 2 and the 16F628?

  5. This project is quite simple as the author has wrote in the previous site on 100acre.org . I had no problem at all in order to make it work, once again great job for beginners on electronics like myself. To me the hardest part was to solder wires to the LM75, but i am already contacting a taiwan supply company that makes SOP to DIP adaptors (www.cpu.com.tw) to bypass that problem. Except that, i believe everything else works fine to me. By the way, does your voltage regulator is a LM7805?, i use one, but checking on national.com, its already discontinued. Good luck Brian.

  6. Please I’d like to get the same project in PicBasic language because I have pic develpoment board simulator and I’m good in v.b, basic so I’ll be most great full if you kindlly help please.

  7. Can you explain on how to go about loading the JAL source code, as well as the compiled hex file on the PIC16F628; I’m a novice in PIC programming, but I’ll sure do well with a little help from you…

  8. can you send me your
    jlib libraries i have not found on the Internet.
    i wos new on the JAL World or cant you me say how find the jlib libraries
    thank you

    Thomas S. from Germany

  9. hello everybody:
    I need to change the application output to :
    X.X(two 7 segment displays).
    and i also need the range of the input levels will be: from 0.4ma -20ma (0.4=0.0,20=9.9)
    thank you

  10. Hi,
    Can you explain me, how can i change the application for output to two 7 segment displays?
    I need the range of the input levels will be from 0.4ma -20ma & the range of output levels will be from 0.0 – 9.9 (0.4mA=0.0, 20mA=9.9)
    Thank you…

  11. Hi, i am actually a novice at this. I was wondering if you can recommend me a PIC with a built in I2C so that i need not bit-bang it. Thank you.

  12. Hy! I have N75 temperature sensor instead of LM75.is there any need to make changes in source code and hex file?

  13. Hi,
    I have made your temperaturesensor circuit with the LM75. The cable between the sensor and the 7-segment display is 20 centimeters.
    My circuit works ok but in my room it is actually 22°C and my sensorcircuit says it 26,5°C. What do i have to adjust in the circuit (resistors? or maybe software programme?) to make it more accurate so i also measure the correct 22°C on my 7-segment display instead of 26°C ?
    Hoping to hear something from you.
    Best Regards,
    John

  14. quite an intresting project, good work! I wander if you can sugest me a circuit that can detect temperatures up to 300′ C. Want to build a preheating plate for BGA reballing. Hope to hear from you and good luck for future projects.

  15. Hello Andere,

    First and for most I would like to thank you for yourI had already started building a temperature sensor using a “Common cathode” seven segment display and LM35DZ precision integrated-circuit temperature sensors. Now that I have come across your project, I am tempted to utilize your circuit. My question is I see that you are using PNP transistors so that means your 7-segment display must be Common anode and the 7-segment display I have is Common Cathode, would that matter ? And will LM35DZ work with your circuit ? Please get back to me quick.

    Thank you

  16. Hi,

    im going to do this project in assembly language using MPLAB. So is it possible if you could attach the .asm file as well? Your help would be much appreciated 🙂

Leave a Reply