Upload
francoghosh
View
226
Download
0
Embed Size (px)
Citation preview
7/31/2019 Introduction to Embedded Sys
1/43
INTRODUTION TO EMBEDDED SYS N
ROBOTICS
Embedded Hut Technologies
www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
2/43
What we are going to do:-
i) LED blinking.
ii) Seven segment display
iii) Motor driving.
iv) Autonomous Bot.
v) Buzzer
vi) LCD
vii) Sensor
viii) ADC
ix) Obstacle follower
x) Line follower(B/W)xi) Wall follower
xii) Timer ,interrupt and PWM(Introduction)
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
3/43
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
4/43
LED.
Normal Led Blinking
Led Patterns
Led chaser Seven Segment display
LED Matrix
Led Message Display Board
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
5/43
LCD Display
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
6/43
LCD
Normal LCD display (Name and etc)
Timer Display
Menu Display Normal Animations
Sensor and other Reading Display
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
7/43
Sensor Interface
Sensor Interface (ADC Reading)
Control action using Sensor reading
Sensor + Motor Interface
Different types of sensor
Alarm Systems
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
8/43
Applications..
Line Follower Robot
Obstacle avoider Robot
Digital Scale
Digital thermometer
Wireless Robots
Mobile Control Robots
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
9/43
Development Board
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
10/43
Programmer
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
11/43
Sensor
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
12/43
Motors and Wheels
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
13/43
And finally we have
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
14/43
A Sample Program
To display a Name on LCD..
lcd_gotoxy(0,0);lcd_putsf(My Name );
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
15/43
Embedded system ????..
1) An embedded system is a special-purpose computer system
designed to perform one or a few dedicated functions.
2) Physically, embedded systems range from portable devices such
as digital watches and MP4 player to large stationary installations
like traffic lights, factory controllers, or the systems controlling
nuclear power plants.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
16/43
Embedded system:- An intro.
An embedded system is a computer system designed for
specific control functions within a larger system .
Embedded systems contain processing cores that are
typically Microcontrollers.
Hardware
System
Software
System
Embedded
System
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
17/43
Application of Embedded system
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
18/43
Robot
MechanicalModule
Electrical
Module
ElectronicModule
Software
Module
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
19/43
Microprocessor
A microprocessor incorporates the functions of a computer'scentral processing unit (CPU) on a single integrated circuit.
It is a multipurpose, programmable device that accepts digital
data as input, processes it according to instructions stored inits memory, and provides results as output.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
20/43
A microcontroller (also microcontroller unit, MCU or C) is a small
computer on a single integrate circuit consisting of a relatively
simple CPU.
MICROCONTROLLER ????..
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
21/43
Difference between Microprocessor and
Microcontroller
Microprocessor:
Memory is not there.
Microprocessor only
process the i/o data. Microprocessor has more
generalized functions.
Brain of any computing
machine.
Microcontroller:
It has owes Memory.
Microcontroller can also
process the data. A Microcontroller is more
specific to its task.
Microcontroller is complete
Computing machine.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
22/43
Simple difference between Microprocessor andMicrocontroller:
Microprocessor = CPU
Microcontroller = CPU + Peripherals + Memory
Peripherals = Ports + Clock + Timers + UART + ADC +DAC
+ other stuff
Memory = EEPROM + SRAM + EPROM + Flash
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
23/43
Types of microcontrollers(arch.)
As of 2011 there are several architectures:
1) 8051
2) AVR
3) PIC4) PSoC
5) 68HC 11
6) eZ8,eZ80
7) Etc
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
24/43
Atmel AVRThe AVR is a Modified Harvard architecture 8-bitRISC single chip
microcontroller (C) which was developed by Atmel in 1996. The
AVR was one of the first microcontroller families to use on-chip
flash memory for program storage, as opposed to One-Time
Programmable ROM, EPROM, or EEPROM used by other
microcontrollers at the time.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
25/43
AVR
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
26/43
AVR classification:-
AVRMegaAVR or
ATmega
Atmega 8
Atmega 16
Atmega 32
Atmega 128
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
27/43
Atmega 8
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
28/43
Atmega 16
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
29/43
Pin configuration of Atmega 8
VCC
GND
Port A (PA7..PA0)
Port B (PB7..PB0) Port C (PC7..PC0)
Port D (PD7..PD0)
RESET
XTAL1
XTAL2
AVCC
AREFEmbedded Hut Technologies ||
www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
30/43
LED
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
31/43
What is 7-segment LED Display?
7-segment LED Display is display device which can display
one digit at a time.
Actually one digit is represented by arrangement of 7 LEDs in
a small cubical box.
For representing 3 digit number we need three 7-segment LED
Displays.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
32/43
How it look like?
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
33/43
Internal structure
There are two types of 7-segment LED
Display
1. Common Cathode
2. Common Anode
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
34/43
Common Cathode
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
35/43
How to glow the segments?
We need to provide +5 V to other open ends to turn ON that
particular segments.
We need to provide 0 V to other open ends to turn OFF that
particular segments.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
36/43
How to print 2 on LED Display?
To show 2 on LED display then you must illuminate A, B, G,
E and D segments of the display. So you must give voltages on
pins 10, 9, 8, 5, 4, 2, 3 and 7 in Common cathode slide as
High, High, Low, High, High, Low, High and Lowrespectively for drawing 2 on display.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
37/43
Common Anode
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
38/43
How to glow the segments?
We need to provide +5 V to other open ends to turn OFF that
particular segments.
We need to provide 0 V to other open ends to turn ON that
particular segments.
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
39/43
Inputs and Outputs of BCD to 7
segment decoder
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
40/43
Pin Out of Common Anode LED
Display
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
41/43
Multi Digit 7 segments LED
Display (Multiplexing)
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
42/43
Circuit diagram for multiplexing
Embedded Hut Technologies ||www.embeddedhut.com
7/31/2019 Introduction to Embedded Sys
43/43
Embedded Hut Technologies
www.embeddedhut.com
http://www.embeddedhut.com/http://www.embeddedhut.com/