Projects   /   LCD & Display Projects   /   PIC16F877A

Digital Speedometer and Odometer Circuit using PIC Microcontroller

Measuring the speed/rpm of a Vehicle or a motor has always been a fascinating project for us to try.

Published
Updated

At a glance

CategoryLCD & Display Projects
PIC modelPIC16F877A
IncludesCircuit diagram · Proteus · Download files
Reading time~3 min

Summary of Digital Speedometer and Odometer Circuit using PIC Microcontroller

This project builds a digital speedometer and odometer using a PIC16F877A microcontroller, a Hall effect sensor with a magnet to detect rotations, and a 16x2 LCD to display speed and distance. It uses interrupts and timers to count pulses and compute RPM, speed, and distance. Simulation in Proteus verifies LCD behavior; during simulation the Hall sensor may be replaced by a logic switch to trigger interrupts and observe updates.

Parts used in the Digital Speedometer and Odometer Circuit using PIC Microcontroller:

  • PIC16F877A microcontroller
  • Hall effect sensor
  • Magnet (mounted on rotating object)
  • 16x2 LCD display
  • Proteus software for simulation
  • Logic state device/button (for simulation trigger)
  • Supporting passive components (wires, resistors, power supply)

speedometer-and-odometer-circuit-using-PIC

Digital Speedometer and Odometer Circuit using PIC Microcontroller

Measuring the speed/rpm of a Vehicle or a motor has always been a fascinating project for us to try. So, in this project we are going to build one using the Industrial ready PIC microcontrollers. We will use a piece of magnet and a Hall Sensor to measure the speed. There are other ways/sensors to measure the speed but, using a hall sensor is cheap and also can be used on any type of motor/Vehicle. By doing this project we will also enhance our skills in learning PIC16F877A since the project involves the use of Interrupts and Timers. At, the end of this project you will be able to calculate the speed and distances covered by any rotating object and display them on a 16x2 LCD screen. Lets start with this Digital Speedometer and Odometer Circuit with PIC

Simulation:

The Simulation for this project is done using Proteus. Since the project involves moving objects it is not possible to demonstrate the complete project using simulation but the working of the LCD can be verified. Simply load the hex file to the Simulation and simulate it. You will be able to notice the LCD working as shown below.

speedometer-and-odometer-circuit-using-PIC-simulation

To check of the speedometer and odometer are working I have replaced the Hall sensor with a Logic state device. During the simulation you can click on the logic state button to trigger the Interrupt and check if the speed and distance covered is getting updated as shown above.

for more detail: Digital Speedometer and Odometer Circuit using PIC Microcontroller

  • What microcontroller is used in the project?
    The project uses the PIC16F877A microcontroller.
  • How is speed measured in this project?
    Speed is measured by detecting rotations with a magnet and a Hall effect sensor and counting pulses via interrupts and timers.
  • Can the project display speed and distance on a screen?
    Yes, speed and distance are displayed on a 16x2 LCD.
  • How is the Hall sensor simulated in Proteus?
    In simulation the Hall sensor can be replaced by a logic state device or button to trigger interrupts.
  • Does the project use interrupts and timers?
    Yes, the project uses interrupts and timers to count pulses and compute speed and distance.
  • Is full mechanical motion demonstrated in Proteus simulation?
    No, complete moving-object behavior cannot be fully demonstrated in simulation; only LCD operation and pulse triggers are verified.
  • What is required to verify the LCD operation in simulation?
    Load the compiled hex file into Proteus and run the simulation to observe the LCD output.
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...

Programmers & ICSP · PIC16F877A

EPE PIC/LCD Demo using PIC16F877 with Proteus Simulation

IntroductionThe EPE PIC/LCD Demo is a classic microcontroller project that demonstrates how a PIC16F877 can fully control a PG12864F graphical LCD.Designed as...

Motors & Robotics · PIC16F877A

Efficient Sun-Following Robot: A Solar Tracker with Microcontroller Control

Abstract The impending global challenge of dwindling non-renewable fuel resources underscores the urgency of transitioning towards renewable energy alternatives like solar power....

LCD & Display Projects

Leveraging Blockout Banners for Effective Electronics and Tech Product Displays

Blockout banners have become a popular and effective tool for displaying electronics and tech products in various settings, from trade shows and...

LCD & Display Projects · PIC18F4520

Interfacing PIC18F4520 microcontroller with an HD44780 LCD

Introduction Being able to display data from a microcontroller visually has many advantages. It allows for menus, status indicators, and instructions to...

LCD & Display Projects

Video Project Development in the Midst of an Impromptu Online Semester

Receiving robot parts in the mail was an unexpected conclusion to the Winter 2020 semester for students. However, when faced with a...

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