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

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

Monday, May 24, 2021

LED Chaser (Five Functions) Using PIC Micro controller

Hi I am here with new small but interesting project for beginners in PIC Micro controller. That is LED Chaser 8 channels and 5 functions with single push button.

You can use this as different dancing lights. This project also perform through Arduino also but This Project with PIC controller is created on request for asking help on it.

Shortly I am sharing Circuit diagram here then code link.

Simulation:

Download the code from here:

LED Chaser Code

If you like my post then must comment me.


Read More

Wednesday, June 24, 2020

PWM Method to varies Duty cycle using PIC Controller


Read More

Monday, June 8, 2020

My First Project Circuit in Proteus 8


Read More

Tuesday, June 2, 2020

Basic Requirement for PIC Microcontroller Projects / Practicals


Read More

PIC Microcontroller Course Series



Read More

Thursday, May 28, 2020

8 Channel LED Blinking Sequence using PIC Microcontroller



Hi here the topic is LEDs Flasher microcontroller based. Before this I have shared BJT Flasher, 555 timer based Flasher and Ring counter flasher then now it is.
Its also a very simple circuit just its controller based, here i want to share that if an one want to make flasher with different sequence then microcontroller is required there. So I have write a program also and sharing here. You can draw in proteus for simulation and making at hardware also.

Circuit Diagram:


Program Coding in MikroC: 



Read More

Thursday, February 27, 2020

Digital Volt Meter using PIC Microcontroller

Volt meter using PIC controller project is the application of built-in ADC of PIC microcontroller. In which I discus one example of attenuator for 100v range. If anyone understand this example he can design for more ranges. There are some learning points for learners.
1.       How to Program ADC
2.       How to set voltage ratio for ADC input
3.       How to adjust attenuator for voltmeter
4.       Interfacing of LCD
5.       Reading values of ADC
6.       How to use built-in libraries of MikroC Pro for PIC
Here is the list of components
1.       PIC16F877A
2.       Crystal 10MHz
3.       Non pol capacitors 33pf
4.       Resistors
5.       LCD 16x2
Little math for attenuator
Range for 100v
ADC max input voltage 5v
So set the attenuator which drop 95v when input max at 100v
So 100/5 = 20 so the 19:1 is the best ratio for this division
So simply I set attenuator resistor R4 19k ohm and input resistor R2 1k ohm
Then see the code
Circuit diagram: 

MikroC code:
Little explanation required for it
I want to show reading from 0v to 100v and ADC input is 5V max so what is scaling voltage value for display digits = 5v/range
Scaling voltage = 5/100 = 0.05 means 50mv
It means that when 50mv appear at ADC then must display 1v at LCD.
And another thing in ADC into the microcontroller that is
ADC length is 10bit output so what is mini voltage value at which ADC change one step output in binary like from 0000000000 to 0000000001
= 5/210
5/1024= 0.00488 means 4.8mv
But I want to display 1v at 50mv now fine the factor to divide ADC output
=50mv/4.9mv = 10.2
So here is very important we will divide ADC value with factor 10.2 now see



Read More

Monday, January 20, 2020

Differences between Microcontroller and PLC

As'salam o alaikum
Its a very common question of DAE and Engineering students that what is the difference between microcontroller and PLC (Programmable Logic Controller) ?
According to my study and work there are some following differences between MC (Microcontroller) and PLC.

Microcontroller:
  • Microcontroller is single chip device (having PU,RAM and ROM)
  • its special purpose device
  • approximately absolute from industry from Primary (Major) application
  • Microcontroller can't work alone (because its single chip device no any basic circuit)
  • Microcontroller can work in rough environment 
  • Low performance at high speed processing and large interrupts
  • Microcontrollercon't scan it all inputs at a time for output 
  • Instruction execution is line by line 
  • Mostly required to unplug Microcontroller from circuit for programming (but Some burning devices have ability to Program Microcontroller in circuit programming like Pik kit)
  • No indication of active I/O at all 
  • For simulation of Programming code for practice use Compiler first like MikroC then use Proteus for Simulation
  • Programming of microcontroller is in form of (algebra to write for I/Os, Conditions and actions in sequence. 


PLC (Programmable Logic Controller):
  • Programmable logic control have industrial domain
  • Special purpose controller
  • PLC industrial application device
  • PLC initially develop to replace Relay logic hardware
  • Wide adoption and use due to its Ruggedness and ability For rough environment
  • Good for real time operations
  • PLC scan and action time is very short
  • PLC instruction execution is parallel (Scan all the inputs at a time and Produce output same time according to input status.
  • In circuit programming ability
  • Indication of active input outputs
  • Working display at LCD
  • For programming & simulation practice LogixPro Software Free source is available which is compiler as well simulator
  • Proggramming of PLC is in form of symbols & blocks of I/Os, just connect, compile and run 

I noted these differences may some professionals not agree So plz Comment me with logic.
if you feel its informative for you then like, Comment and share. 


Read More

Important Artical

Popular Articals

Total Page views in This Month

© 2019-20 Electronics Garage. Designed by Uzma 0101 & Distributed by elektronicsgarage1.blogspot.com