This post provides the ADC code using PIC16F877 microcontroller. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the ‘Downloads‘ section at the bottom of this page. It is assumed that you know how to interface LCD with PIC16F877 microcontroller. If you don’t then please read this […]
Projects
PIC16F877 stop watch code and Proteus simulation
This PIC16F877 microcontroller tutorial answers the question, ” How to implement a stop watch using PIC16F877 ? ” Using PIC16 simulator (Proteus) you can verify this stop watch code and change it according to your needs. Using three push buttons (As shown in figure below) you can adjust time as you desire. Then after setting […]
PIC16F877 up down counter code and Proteus simulation
This PIC16F877 microcontroller tutorial answers the question, ” How to implement a up down counter using PIC16F877 ? ” Using PIC16 simulator (Proteus) you can verify this counter code and change it according to your needs. Using one push button (Labeled as Count, as shown in figure below) you can increment (When SW1 switch is towards […]
PIC16f877 based simple calculator project
This PIC microcontroller tutorial provides a simple calculator implementation for PIC16F877 microcontroller. This is a simple one digit[1] calculator which implements only 4 functions addition(+), subtraction(-), multiplication(x) and division(/). The code for PIC16F877 is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the ‘Downloads‘ section at the bottom of this […]
Project – VR Sword Defense Video Game
Introduction In this project, we constructed a virtual reality (VR) video game. The video game uses several peripherals to give the user an immersive gaming experience. This includes providing visual, auditory, and tactile feedback from the game. The game features a headpiece with a TFT display. The display shows incoming projectiles that the player must […]
How to display text on 16×2 LCD using PIC18F4550
Several automated and semi-automated devices require a message to be displayed in order to indicate their working status. In continuation to LCD interfacing with PIC18F4550, this article explains how to display a message or string on a 16×2 character LCD. In the previous article, a single character was displayed on LCD by properly configuring its […]
PIC Microcontroller timer Video Project
PIC Microcontroller timer/counter by Dr. Tom Lombardo
UFO round LED Chaser with speed control for PIC16F628A
Description This is an updated version of the UFO LED Chaser project, revised to use the PWM LED Chaser code version 3.0.0 with support for variable chase speed. The basic LED chaser ‘engine’ firmware is the same as that used with the 481/483 LED chaser projects also on this site. The only difference is the […]
Sound Localization
INTRODUCTION We constructed a triangular arrangement of microphones to localize the direction an arbitrary sound is coming from. By recording input from the three microphones, we can cross-correlate the recordings to identify the time delay between the audio recordings. Since the physical placement of the three microphones are known, the direction of the sound can […]
UFO round LED Chaser Kit for PIC16F628A
Description This page is has been written to support construction of the UFO LED Chaser Kit #432K. This neat little circuit provides 8 LEDs directly driven from the PIC along with a single mode control switch. The firmware elsewhere on this page drives the LEDs with a 5 bit PWM signal providing each of the […]