Showing posts with label Microcontroller. Show all posts
Showing posts with label Microcontroller. Show all posts

Tuesday, July 25, 2017

PIC16F84A LED Running Project - Part 1

Hi Friends,

This time I present you a very simple project built using PIC16F84A Microcontroller. This is a simple LED running system and I hope this project will be helpful to beginners to understand basic concepts.

Here is the schematic of the project (Please click on the image to enlarge)


You need only few components to build this circuit. I hope all the parts are clear in the schematic (if not, please comment)

Here is the source code :


Please note that the code is written in Micro C 

If you faced any problems, please comment. The second part of this project (which runs 40 LEDs without shift registers) will be posted soon.



Wednesday, June 14, 2017

PIC16F877A LM35 Temperature Monitor

Hello Everyone, After giving you some Arduino based projects, This time it is a PIC16F877A Based project.

This is a simple temperature monitor based famous analogue LM35 Temperature monitor. This circuit used the AD converter of the microchip and use three seven segments displays to show the temperature.

Here the schematic :


Unfortunately the source code is in Assembly format and it is an image I have to publish here. You can use MPLAB IDE to write this code and build it.

Here is the Source Code :


This project I extracted from "Vidusara" Science magazine which published in Sri Lanka. It is the most famous science magazine in Sri Lanka.

This project was designed by Mr. Gamini Jayasinghe and Mr. Kolitha Dharmapriya (University of Moratuwa)

Friday, November 18, 2016

PIC16F877A Prototyping Board

I built my second prototyping board and this time it is for the big guy PIC16F877A. I used a ZIF socket to easily remove and re connect the microcontroller.


Same as the previous board I built this on a vero board. I added a 7805 regulator and 4 MHz crystal oscillator. And also female headers for all the required ports and some additional headers for power output. 
Here is the schematic of the circuit.



You can also try this. Comments are always welcome!!

Sunday, October 30, 2016

PIC16F84A Prototyping Board

I was doing some experiments with PIC16F84A Microcontroller and I got bored doing it on project board. So I wanted to build a small prototyping board and I did. Here is my prototyping board for PIC16F84A Microcontroller.



I built it on a Vero board and it has a 7805 regulator so that I can directly connect it to different power sources. I also added IN4001 diode to protect it from voltage direction mistakes. I added female headers to PORT A and PORT B pins so that I can connect sensors, LEDs etc. I also added few headers to ground and +5V to get output power.

Here is the schematic of the circuit.



The oscillator I used was 4MHz one and it is ok for most experiments.

If you are planning to build this, I advise you to use a ZIP socket instead of the general IC socket. Good Luck.

Saturday, August 6, 2016

PIC16F628A Programmable Timer

I was looking for a programmable timer and fortunaitly I could find a great project. First I was trying to build a simple timer circuit using NE555 or 4060 ICs. Then I wanted to move to a rich project with a LCD screen and ability to program for short and long duration times. Then I found this excellent project which exactly meets my requirements.

Then I built this project on a simple vero board and it is working very well. Here are two images of the built project.




You can set the maximum time to 99 Hours and 99 Minutes. The circuit has two options. First you can set the time which your device keep off and then the time you want to keep your device on. The display will show you the (count down) remaining time.

I am using this circuit to turn off and on lights of my house to a predefined time. I also added a battery backup to avoid resetting the timer on power breaks.

You can find more information from the below link. This is the link of the original source of this nice timer circuit.

Link to the original post with schematic and source code download

I should also thank the author Raj Bhatt for posting this great project.


Thursday, April 17, 2014

PIC16F84A Matrix LED Display

Matrix LED display created using PIC16F84A Microcontroller and 8*16 Matrix display. You can display your own running text message. Two 4017 digital ICs were used to control electrical signals for Matrix display.

PIC16F84A Matrix LED Display Project

PIC16F84A Matrix LED Display Schematic

Download project details including source code and user guide from the below link

*Please note that I used MPLAB Versio 8.3 to build the code. (Not the latest version). If you have any error while compiling the code, please use an old version of MPLAB or use the compiled HEX files to program.

Extracted from the book - PIC Programming. Author - Mr. Sarath Premachandra.(4S5AS) City & Guild London. Credits goes to him.