0% found this document useful (0 votes)
73 views3 pages

Grp03 Blinking Miniproject

This document describes a project to blink an LED using an Arduino Uno microcontroller in Proteus. It includes: - A circuit diagram connecting an LED, resistor, and Arduino Uno microcontroller in Proteus. - Steps to design the simulation in Proteus, program the Arduino Uno using MPLAB X IDE, and upload the hex file to the microcontroller. - Programming code to blink the LED by turning the output pin on and off with delays in an infinite loop. When run, the simulation causes the LED to continuously blink on and off as programmed.

Uploaded by

Yasin Omary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views3 pages

Grp03 Blinking Miniproject

This document describes a project to blink an LED using an Arduino Uno microcontroller in Proteus. It includes: - A circuit diagram connecting an LED, resistor, and Arduino Uno microcontroller in Proteus. - Steps to design the simulation in Proteus, program the Arduino Uno using MPLAB X IDE, and upload the hex file to the microcontroller. - Programming code to blink the LED by turning the output pin on and off with delays in an infinite loop. When run, the simulation causes the LED to continuously blink on and off as programmed.

Uploaded by

Yasin Omary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

KARUME INSTITUTE OF SCIENCE AND TECHNOLOGY

DEPARTMENT OF ELECTRICAL ENGINEERING

EEU 07627 MICROCONTROLLER AND EMBEDDED SYSTEM


GROUP NUMBER 03

PROJECT ON
LED BLINKING USING ARDUINO UNO IN PROTEUS

To be submitted to:
Mr.ALI A.ABDURAHMAN.

Submitted by:
YASIN TWAHA OMARY KIST/BEE/20/0026
OTHMAN FAKIH KIST/BEE/20/0019
FATMA MOHAMMED KIST/BEE/20/0001

Submission Date:
21TH JUN 2023.
LED Blinking using PIC microcontroller.

The PIC microcontroller this is a programmable interface controller which can be programmed to
carry out a vast range of tasks. We have different families of microcontroller,but in our project we
have used PIC16F877A.

In this project we have used proteus to obtain PIC16F877A Microcontroller,a 10Ω resistor ,Led-
green Diode, X-Stal Oscillator, and ground. Connections were made on the Proteus workspace as it
can shown letter. Finally the codes were attached so as to activate our project and see how Led-
green Diode blinks.

Procedures

First design the simulation of LED Blinking project using PIC16F877A Microcontroller in Proteus ISIS.
After that, design the programming codes for PIC16F877A Microcontroller using MPLAB X IDE and
finally get the hex file and upload it in PIC16F877A Microcontroller in the proteus.

The connections can be done as it can seen below;-

Project descriptions

A LED is connected to one of the port of PIC Microcontroller as can seen above.The LED will flash
continuously when the codes uploaded.

MPLAB X IDE programming codes for PIC16F877A Microcontroller .

#INCLUDE <XC.H>
//Specify the XTAL crystal FREQ
#DEFINE _XTAL_FREQ 20000000
VOID MAIN( VOID ) {
//PORTD pin 0 as output
TRISD0 = 0;
//Initialize the variable
INT I = 0;
//loop for ever
WHILE (1)
{
//Led on
RD0 = 1;
//Delay
FOR( I = 1; I< 6000; I ++);
//Led off
RD0 = 0;
//Delay
FOR( I = 1; I< 6000; I ++);
}
RETURN ;
}
Codes explanation:

 We first specified the external crytal frequency.


 We declared main function which is always compiled first.
 After that we instructed our Microcontroller that we are going to use port D as an output
port.
 Then the infinite while loop was used so that LED blinking goes on forever.
 Then in order to blink LED, we have to simply turn it ON and OFF with some delays,and is
what we have done in our project. The for loop was used to set the delay time.
 Then we obtained the hex file and upload it to PIC16F877A Microcontroller in the proteus.
 Then the desired result obtained after running our simulation and you as it can seen below.

You might also like