Skip to main content

social

pop

Interfacing LED: Chasing LED (LED chaser)

 CHASING LEDs                   

In this project  8 LEDS are connected to PORTC of PIC 18F452 microcontroller and
the microcontroller is operated from a 4MHz resonator. The program turns on the
LEDs in a sequencial manner with a 1 second delay between each input. The net
result is that the LEDs seems to be chasing each other.
Chasing Led

Chasing led with pic microcontroller

Interfacing LED chaser with PIC using Proteus and mikro code

Video caption
watch step by step video procedure, Click here
Don't forget to subscribe

The code below is written in mikroC PRO for PIC.

Author; Ek electrical technologies.
Date; 16TH July 2019
File; CHASING_LEDS.C
*******************************************************************************/

void main() {
  unsigned char J=1 ;
  TRISC=0X00;             // configure PORTC as Output
  PORTC=0X00;            // initialise PORTC, LEDs OFF
  for(;;)               // endless loop

  { PORTC= J;           // send J to PORTC
  DELAY_MS(1000);       // delay 1 second
  J=J<<1;               // shif left J
  if(J==0) J=1;         // if last LED, move to first LED
  }
}

To watch step by step procedure, Click here
Don't forget to subscribe

Popular posts from this blog

How to Install Proteus 8 Professional: A Step-by-Step Guide

 How to Install Proteus 8 Professional: A Step-by-Step Guide Proteus 8 Professional is a powerful tool for electronic circuit design and simulation. Whether you’re a student, hobbyist, or professional engineer, following a clear installation process ensures you get started without headaches. Are you ready to start designing and simulating electronic circuits with Proteus 8 Professional!   Here’s a comprehensive, guide to installing Proteus 8 Professional on your Windows PC. Step 1: Download the Installer ·        Visit the official Labcenter Electronics website or another trusted source to download the Proteus 8 Professional installer. Avoid unofficial sources to prevent malware or corrupted files . You can download from HERE DOWNLOAD PROTEUS AND ARDUINO ·        The installer typically comes as a ZIP file. Wait for the download to finish and locate it in your Downloads folder Step 2: Extract the Installer...

2023 2024 Official Textbook List for General Secondary Education in Cameroon

 2023-2024 Official Textbook List for Secondary Schools in Cameroon OFFICIAL TEXTBOOK LIST 2023/2024 Academic Year General Secondary Education: First and Second Cycles NB: Only textbooks on the official list bearing the seal of State as signed by the minister of secondary education are required of students in all public and private schools throughout the national territory FORM 1  ENGLISH LANGUAGE Title: Mastering English      Price: 3400 LITERATURE IN ENGLISH Tales From the Grassland and the Forest (Prose)   price: 2000 A questionable Culture (Drama)   Price: 1000 Authentic Poetry (Book 1)    Price: 2000 FRENCH LANGUAGE Title: Le Reseau du Français   Price: 3200 HISTORY Title: Essential History for Junior Secondary Schools    Price: 2000 GEOGRAPHY Title: Geography for Competency Development: A functional Approach to Geography Study    Price: 4000 CITIZENSHIP Title: Brighter ...

Differences between ELCB and RCCB, MCB and MCCB

ELCB AND RCCB (RCD) Earth Leakage Circuit Breaker (ELCB) Working Principle of ELCB An Earth Leakage Circuit Breaker (ELCB) is a security device used in an electrical installation to detect leakage current and protect humans against the risk of an electric shock, from this leakage current. The operation is such that, the power supply connected at its switching terminal (contact of the circuit breaker) is disconnected by a special type of latching relay when it detects a leakage current. Thereby, protecting individuals getting in contact with this leakage current against the risk of an electric shock. This circuit breaker remains OFF until reset manually. Types of Earth Leakage Circuit Breaker They are two types of Earth Leakage Circuit Breakers. They are named based on their principle of operation. They are; The Voltage Earth Leakage Device (Known as the ELCB) and The Current Earth Leakage Circuit Breaker (RCD or RCCB). In the past, when referring to Earth Lea...