Advertisement here

Advertisement here
Advertisement here

Sunday, July 18, 2021

One Week Session On PIC Microcontroller Programming and Practicals (Manual)

 


Here is a very short lab manual of PIC microcontroller practical’s for beginners students to develop an interest in the Microcontroller field.

I appreciate those students who attend this session with full interest especially Mr. M. Ahzam Roll 2181104 DAE Electronics 3rd year.

This was a one-week session and I also Thanks to Zonal Manager Mr. Majid Afzal, Principal Mr. Haroon Alim, Lab Engineer Mr. Engr Faizan Ahmed and Special Thanks to the Swedish Institute of Technology Rawalpindi for this session.

 

Plate form required:

Proteus 8.6 (any latest)

MikroC Pro for PIC v7

Hardware:

Digital Trainer

PIC Microcontroller 16F84A and 18F452

Genius Universal IC Burner GEN540

Crystal, capacitors, Resistors, Buttons, LEDs, and Jumper wires

 

Trainer:

Fayyaz Hussain

Sr. Instructor Electronics

DAE, B-Tech, MSc, and MS Electronics

Swedish Institute of Technology Rawalpindi

Contents

Preface: 4

Plate form required: 4

Trainer: 4

How to create New Project in MikroC. 5

Step 1: 5

Step 2: 5

Step 3: 6

Step 4. 6

Step 5: 7

Step 6: 7

Step 7: 8

PINOUTs. 9

PIC16F84A: 9

PIC18F452: 9

LAB 01: LED blinking forever. 10

Circuit: 10

Code: 10

LAB 02: LED blinking for 10 time. 11

Circuit: 11

Code: 11

LAB 03: LED with Push button. 12

Circuit: 12

Code: 12

LAB 04: Seven segment counter. 13

Pin out of 7 segment C.C: 13

Circuit: 13

Code: 14

LAB 05: Seven segment event counter. 15

Circuit: 15

Code: 16

LAB 06: LEDs Toggling. 17

Circuit: 17

Code: 17

LAB 07: Traffic Signal (one way). 18

Circuit: 18

Code: 18

LAB 08: ADC and Bar graph. 19

Circuit: 19

Code:


Read More

Saturday, July 10, 2021

LCD 16x2 Interfacing with Arduino (Text Displaying)

 


LCD (Liquid Crystal Display) 16x2 is used to display ASCII characters. LCD is very impressive and attractive for any Arduino Project or any controller project. We can display direct text (ASCII) Alphabets and digits on it and can display function type values also, simply there are techniques to display your text on LCD. Here we are displaying just simple text to show interfacing and simple steps in Arduino IDE coding. Arduino IDE also has built-in examples in which you can modify but have understanding when you want to use in your own project and may this built-in example not fit for that. Here we are giving you understanding.

Application:

Display Characters in ASCII format

Display text, digits, etc.

Components:

Arduino Uno

Connectors

Arduino IDE (Compiler software)

Computer for programming

LCD 16x2

Pot-meter: Use to control the contrast of LCD

Circuit:

Connects are given very clear in circuit diagram but if you have any query then you can ask me.

Coding:

/// LCD Display ///

/// ElktronicsGarage1.blogspot.com ///

/*LCD D7 to D4 - Arduino Uno Pin 2-5

LCD EN - Arduino Uni pin 6

LCD RS - Arduino Uni pin 7

LCD D3 to D0 and RW and Vss Ground connected

Vdd with Vcc and VEE use to control the contrast

*/

// include the library code:

#include <LiquidCrystal.h>

// LCD PINs

const int rs = 7, en = 6, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

LiquidCrystal lcd(rs, en, d4, d5, d6, d7); 

void setup() {

  // Initialize LCD 16x2

  lcd.begin(16, 2);

  }

void loop() {

  // set the cursor to column 0, line 1

  lcd.setCursor(0, 0);

  // print the number of seconds since reset:

  lcd.print("ElektronicGarage");

    delay(100);

  lcd.setCursor(0, 1);

  lcd.print(" Fayyaz Hussain ");   delay(100);

}




Read More

Wednesday, June 30, 2021

Communication System Lecture 02

 


Hi here is lecture # 02 of Communication Technology Subject of BS-Tech Electrical at Swedish Institute of Technology Rawalpindi

lecture # 01

Topics we have discussed:

  • Signal Classification 
  • Presentation of Signals
  • Some useful signals

Slides:


Recording:

2.1



2.2



Read More

Monday, June 28, 2021

 


Bar-graph is the combination of LEDs in a Line that mostly use to display the level of the signal.

Applications:

We also use it to show the water, gas pressure, temperature, and light intensity levels also. Simply its general purpose use can use where you want to show / indicate the level of any measured value. It’s important so I decided to include it in this manual (which’s for beginners).

Components:

Bar-Graph:

We can use this bar graph as shown in the diagram but I have selected only 6 LEDs as bar-graph with Arduino because 6 LEDs bar-graph not available in Proteus for simulation but practically you can use this by extending the code as well.

How we can use a bar graph

Circuit Diagram:

Bar graph with POt-meter using PIC Controller 


Here I am using ADC (built-in) to read the value of the pot-meter and how its works I have discussed this in a previous Project (Fading LED with Pot-meter).

As we know that 10bit ADC max value is 210 = 1024 which is divided by no of LEDs.

As  approximately

Now put the condition in coding that when the value of ADC >170 then ON 1st LED. (See in coding)

Download Code




Read More

Thursday, June 24, 2021

Arduino Project LED Chaser

Hi here is one more Cool Arduino Project for Arduino learners that is LED chaser Arduino based. I have already made the same LED Chaser project with PIC microcontroller you can visit also that too. 
In this project, I have used 6 LEDs to flash in different sequences by push button.

The component used in this project

2. LEDs 
3. Push Button
4. Resistor 1K

Circuit:


The push-button function can see in the following GIF Proteus simulation.


I am sharing here the coding in a new technique you can see. I am showing how to access the Controller ports directly in a new technique instead of a single pin for declaration in coding.

Click me for Code





Read More

Tuesday, June 22, 2021

Communication System Introduction

 

Lecture notes (Slides) on the communication system for BS Tech Electrical (Swedish Institute of Technology Rawalpindi) in which I have discussed:
What is Communication: which is Sharing of information between two or more persons
and if on any far end then it's called TeleCommunication.
Then I have discussed the Basic Block diagram for the communication system in which the following blocks I have discussed in detail.

Source: Originate the information
Destination: information communicated unit and another end.
Transmitter: signal formation and transmission technique Unit
Channel: medium used to convey the information at another end.
AWGN: Additive White Gaussian Noise
Receiver: Demodulate or deformation the Information
and some types of Signal discussed like:

1. Analog and Digital Signals
2. Periodic and Aperiodic Signals
3. Deterministic and Random Signals

Here I am sharing the Recorded Lecture link:



and ppt Slide:


 

Read More

Monday, June 21, 2021

Subject also Reduced for DAE Examination


A piece of very good news for DAE Students also that PBTE Lahore also reduces the subjects for examination 1st Annual 2021. Here I am sharing an official Notice with the link.































 

Read More

About Auther

Fayyaz Hussain is a Lecturer at Swedish Institute of Technology , He is Electronics Scientist , Tech Engineer , Programmer, web developer and Online Mentor and very Much Professional in PIC Micro controller, Arduino, PLC ( Fatek , Mitsubishi ) MikroC Compiler etc. who has been working since 2015 if you want to know more about him then Please Click Here.

Important Artical

Popular Articals

Total Page views in This Month

© 2019-20 Elektronic Garage. Designed by Fayyaz Hussain & Distributed by elektronicsgarage1.blogspot.com