Professional Documents
Culture Documents
By-Girraj Sharma
Contents-
Hardware Knowledge
IR Led and transistor Seven segment display ULN 2003 driver IC 8051 Microcontroller
Software Embedded c
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.
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.
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
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
11
30
12
29
13
28
14
27
15
26
16
25
17
24
18
23
XTAL 1 GND
19
22
20
21