Temperature sensor interfacing with pic microcontroller

In: Project Code: PE000010
Share

In this project we will interface lm35 temperature sensor with PIC16F877A 8-bit microcontroller. If you are new to PIC microcontroller programming we suggest you to execute the basic led blinking project before trying this project.

The setup requirement for this project is as given below:



course thumb

Project Content


Online courses related to this project


Course description

Learn firmware development theory, applications, get practical skills from online tests, projects and earn certificate for software jobs



Course description

Learn to develop embedded systems, interfacing electronic peripherals through real time projects and get required practical skills for software jobs

Required hardware and software


The required hardware and software for this project is as below:

  • PIC Development board hosting PIC16F877A microcontroller
  • MPLAB IDE from Microchip
  • PICKIT3 Programmer, connecting cable from PICKIT3 to your computer.
  • Power supply for the development board
  • LM35 temperature sensor

  • Schematic diagram


    The schematic diagram for this project is as shown below:

    Required Components

    Writing numerical digits on SSDs


    The connections to be made to write a numerical digit is as shown below.

    Connections to display digits using SSDs

    SSD pins Microcontroller PORT, Pin
    Power supply SSD0 PORTB, RB4
    Power supply SSD1 PORTC, RC5
    Power supply SSD2 PORTD, RD3
    Power supply SSD3 PORTD, RD2
    Segment A PORTD, RD4
    Segment B PORTD, RD5
    Segment C PORTD, RD6
    Segment D PORTD, RD7
    Segment E PORTB, RB0
    Segment F PORTB, RB1
    Segment G PORTB, RB2
    Segment DEC PORTB, RB3

    To write a numerical digit on any of the seven segment display you need to set the power supply pin of the SSD and required segments for the numerical digit. For example to write 8 on SSD0 you need to set RB4 pin to provide power supply to the SSD and set RD4,RD5,RD6,RD7,RB0,RB1,RB2 pins to write 8 on the SSD.

    Prepare source code, Compiling source code, creating binary


    Prepare source code

    To Read Full Article

    Start any course from the following

    Share