You are on page 1of 21

Arya Institute of Engineering and Technology

A Presentation on application of embedded system

By-Girraj Sharma

Contents-

Hardware Knowledge
IR Led and transistor Seven segment display ULN 2003 driver IC 8051 Microcontroller

Software Embedded c

IR LED and Transistors

The IR Signal

The IR detector is only looking for infrared thats flashing on and off 38,500 times per second.

It has built-in optical filters that allow very little light except the 980 nm infrared. It also has an electronic filter that only allows signals around 38.5 kHz to pass through.

This is the type of signal produced by the remote control. This prevents IR interference from common sources such as sunlight and indoor lighting.

How the IR Detector Works


The Boe-Bot IR receiver is the same detector found in many TVs and VCRs. This detector sends a low signal whenever it detects IR flashing on/off at 38.5 kHz and a high signal the rest of the time. When the IR detector sends low signals, the processor inside a TV or VCR measures how long each of the low signals lasts. Then, it uses these measurements to figure out which key was pressed on the remote. Like the processor inside a TV, the Basic Stamp can be programmed to detect, measure, store, and interpret the sequence of low pulses it receives from the IR detector.

Seven Segment Display Interfacing With 8051

Seven Segment Display


Output Device Common Cathode Seven Segment Display Common Anode Seven Segment Display
LED displays are power-hungry (10ma per LED) Pin-hungry (8 pins per 7-seg display)

Limitation: only digits and few characters can be displayed To view display from far distance

Diode Placement

Common Anode Internal Wiring

Common Cathode Internal Wiring

Common Cathode Code


h g f e d c b a digit C.C.Hex-code 0 0 11 1 1 1 1 0 3f 0 0 00 0 1 1 0 1 06 0 1 01 1 0 1 1 2 5b 0 1 00 1 1 1 1 3 4F 0 1 10 0 1 1 0 4 66 0 1 10 1 1 0 1 5 6d 0 1 11 1 1 0 1 6 7d 0 0 00 0 1 1 1 7 07 0 1 11 1 1 1 1 8 7F 0 1 10 1 1 1 1 9 6F

ULN2003 DRIVER IC

8051 Microcontroller

P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD) P3.0
(Serial)

40

Vcc P0.0(AD0) P0.1(AD1) P0.2(AD2) P0.3(AD3) P0.4(AD4) P0.5(AD5) P0.6(AD6) P0.7(AD7) EA/VPP ALE/PROG PSEN P2.7(A15) P2.6(A14) P2.5(A13) P2.4(A12) P2.3(A11) P2.2(A10) P2.1(A9) P2.0(A8)
Ext Memory Address Ext Memory Access Control Ext Memory Address

39

38

37

36

8051

35

34

33

32

10

31

(TXD) P3.1 (INT0) P3.2


interrupt

11

30

12

29

(INT1) P3.3 (T0) P3.4


Timer

13

28

14

27

(T1) P3.5 (WR) P3.6


Ex M W/R

15

26

16

25

(RD) P3.7 XTAL 2


clock

17

24

18

23

XTAL 1 GND

19

22

20

21

You might also like