Академический Документы
Профессиональный Документы
Культура Документы
Ashiqur Rahman
rony4aiub@yahoo.com
Introduction
Infrared remote signal receiver is a complex circuit usually embedded in a
fabricated IC. Generally three types of receivers are used, those works under
frequency of 36 KHz, 38 KHz and 40 KHz. 36 KHz receiver IC can sense and
work with infrared signal of 36 KHz, 38 KHz receiver IC can sense and work with
infrared signal of 38 KHz and 40 KHz receiver IC can sense and work with
infrared signal of 40 KHz. Among those 38 KHz IC is widely used. To make an
infrared signal sender work with the receiver, their signal range should be
matched.
This has done using Infrared remote signal receiver TSOP 1738 IC. The IC works
in 38 KHz signal frequency. We have selected this IC as most of the remote
controllers have been made to work on 38 KHz frequency. So, the IC can work
with most of the infrared remote controller or infrared signal sender. The signal is
received in the serial port of computer and the analog signal is then digitalized.
Here the decoding of infrared signal has done using software decoder that decodes
the received signal coming from the serial port and sends it to the appropriate
software to work according to the decoded digital signal. In this project RC-5
decoding has been implemented. The software Girder version 3.2.9 is used to
control various windows application according to the parsed digital signal.
Girder3.2.9 is free software that is used to control various windows application by
various external controlling devices.
The objective is to design and implement an infrared remote control receiver that
is capable to control Computer from a remote/distant place within the supported
range provided by the IR. The circuit could control various computer programs.
1
Md. Ashiqur Rahman
rony4aiub@yahoo.com
1 Introduction
The circuit gets power through serial port. Data sensed by the sensor circuit is
transmitted to computer through serial port. An infrared sensor has been used to sense
infrared signals. A led is connected to circuit that emits if any signal is received. This
chapter has tried to present the theoretical analysis and development at every point.
Here also given a stepwise and point-to-point idea about the project.
2 Description
This chapter deals with the Hardware (circuit) implementation of the infrared
remote receiver.
Circuit components
a) 1x TSOP1738 infrared sensor IC
b) 1x 1N4148 Diode
c) 1x 78L05 IC
d) 1x 4.7 µF 16V Capacitor
e) 1x LED 3V
f) 1x 3V Battery
g) 1x BC548 Transistor
h) 1x BC558 Transistor
i) 1x 220Ω Resistor
j) 1x 3.3KΩ Resistor
k) 2x 10KΩ Resistor
l) 2x 100KΩ Resistor
m) 1x Serial Port (9 Pin Female)
2
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Circuit Diagram
3
Md. Ashiqur Rahman
rony4aiub@yahoo.com
3 Circuit operation
From the circuit diagram in figure 2.1 The Source acts as source of power to run
the whole circuit. 10V DC voltage can be found at this point coming from
computer’s serial port.
1N4148 Diode has been used to make the current flow omni directional and
towards the receiver sensor.
3.3 KΩ Pull-up resistor has been used to normalize the received signal. It is also
used to ensure that the signal to be sent is within the range of the corresponding
decoder. Increasing in resistance up to 10KΩ will increase the sensitivity of the
circuit. Its one node is connected with the negative terminal of the diode and
another node is connected with the Out (Pin 3) of the sensor (Figure 2.1).
IC 78L05 is a regulator IC. It is used to regulate the received voltage from Source
point of serial port. This IC regulates the received voltage and scales down to 5V.
The output from this IC is connected with the Vcc of TSOP1738 IC and the
positive (+ve) terminal of the capacitor.
The 4.7 µF 16V Capacitor has been used to get smooth DC supply as well as to
get instant current supply needed to do a single operation by the sensor.
TSOP1738 is the infrared signal detection sensor that can sense infrared signal of
38 KHz and sends different electric signals for different frequency IR signals
through Out Pin (Pin 3).
Next part of the circuit has been used to emit a LED if any signal is received. In
this part two wires coming from the Vcc and Out pin of the sensor IC connected
directly with two 10 KΩ resistors respectively and then Transistor BC548 and
BC558 according to the Figure 2.1.
When a signal is sensed in TSOP 1738 IC it sends a current through the out pin
(Pin 3). The current comes to the Base of the transistor BC558 and enables the
transistor. So, current passes from the 3V battery as BC548 transistor is always in
saturation state and the LED fleshes. The BC 548 transistor has been use to avoid
direct connection between LED and the diode’s negative (–ve) terminal, otherwise
there is a possibility to burn out the LED.
4
Md. Ashiqur Rahman
rony4aiub@yahoo.com
The Source (Figure 2.1) has been connected to both RTS (Pin 7) and CTS (Pin 8).
Read has been Connected to DSR (Pin 6) and the Ground has been connected to
both SG (Pin 5) and RI (Pin 9). All other pins remained unused.
5 Summary
As a summery of the whole circuit it can be said that, the circuit has an infrared
sensor that takes 5V DC power supply for biasing. The biasing power is supplied
through the serial port. The power supplied is 10V. The power has been converted
to 5V using the Voltage regulator and then supplied to the sensor. The sensor
transmits data sensed through its pin 3 that goes to serial port and software
captures the data. This is the basic principle of the circuit. The whole operation
has been described elaborately in this chapter.
5
Md. Ashiqur Rahman
rony4aiub@yahoo.com
1 Introduction
2 Girder
The signal sensed from the infrared receiver circuit is usually converted from
analog to digital using a software decoder. The decoder sends the digital signal to
software that will do the controlling operation of the computer programs. The
software used in this project is Girder version 3.2.9. This software is compatible
with Windows 98, windows 2000 and Windows XP. This software can be used to
send control signal to various windows applications. It can also send all Keyboard
and Mouse signal to computer that makes possible to control mouse cursor or
sending the keyboard key signal from the infrared remote controller. This
application works with different plugins. Those plugins makes the software
possible to work with various external devices. Igor plugin is the plugin that make
this software work with the infrared remote control receiver.
First Girder 3.2.9 should be installed. After installation of the Girder, it can be
started from the location, Start > Programs > Girder 3.2 > Girder 3.2. Igorplug.dll
file should be copied to “C:\Program Files\girder32\plugins” directory to work
with infrared remote receiver device.
An icon appears on windows system tray when girder is loaded in memory. This
icon states the status of the software. When the icon has a cross (X) sign over it
that means the hardware device associated with girder is inactive. If normal then
the hardware device associated with it is active but not sending signal. This
flashes if the hardware sends signal.
6
Md. Ashiqur Rahman
rony4aiub@yahoo.com
File Menu
“New” will start a new file that can be used to store different signal information
and their corresponding operation to be performed.
By clicking “Open” a box like Figure 3.3 will appear and a previously saved file
can be selected exploring to the saved path and opened by clicking the open
button.
7
Md. Ashiqur Rahman
rony4aiub@yahoo.com
“Save” command lets the user to save all changes done by the user into a single
file. If the file has been previously saved entitled a name then this command
only updates the file till the last change. If a new file has been opened and not
saved yet, then it opens a prompt window like Figure 3.4. Typing a name in
“File Name” field and pressing “Save” button saves the file to that name.
“Save As” is same as “Save” except it gives the user facility to save a file using
different name.
8
Md. Ashiqur Rahman
rony4aiub@yahoo.com
“Lock” command opens a prompt (Figure 3.5). Typing a password and clicking
OK locks the software from unauthorized access. After Locking, password is
needed to make any kind of change to the software.
“Import Group” command is used to import commands from different file to the
current file.
There are four tabs in “Settings” dialog box. To change general settings
“General” tab should be clicked and a dialog box appears (Figure 3.6).
There is a text box and “Browse” button right below the “Auto Load” check
box. By selecting a girder command file(*.GML) by clicking “Browse” button
9
Md. Ashiqur Rahman
rony4aiub@yahoo.com
along with “Auto Load” check box checked, loads the girder along with the
selected file opened.
Checking the “Load girder on windows startup” loads girder wile starting
windows.
Checking the “Don’t send the IR commands when Girder is the Foreground
window” deactivate executing command when working with girder or when
girder main window is open or in foreground.
“Hide on Startup” hides the main windows if girder starts on windows startup.
In “user interface” setting the language of the graphical user interface can be
changed by clicking the “Language” drop down menu.
By clicking “Dotmatrix font” and choosing a font by clicking the browse button
and selecting a font file changes the font of on screen display.
“Tray icon settings” under “User interface” has three tabs. Selecting “flash tray
icon on every event” flashes the tray icon in every signal received from the
hardware.
“Flash tray icon on every command” flashes the tray icon in every command
executed rather than every signal received from the hardware.
10
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Clicking to “Plugins” tab in “Settings” appears window like Figure 3.8. This
allows user to select appropriate plugin for the hardware.
“Auto Enable Input Device” check box automatically enables input device while
starting girder.
Here “Igor SFH-56 device” checkbox should be checked on to work with serial
infrared remote control receiver. After checking on the checkbox “Apply” button
should be clicked to apply setting.
After selecting Igor plugin and clicking “Settings” button, a window appears like
Figure 3.9.
Port to which device is connected can be selected here by clicking “COM port”
dropdown menu.
11
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Through “Input signal” dropdown menu the input signal’s pin can be selected.
Default is DSR.
To change OSD (On Screen Display) setting “OSD settings” tab should be clicked
and the figure like Figure 3.11 appears.
The width and height of the text to be displayed can be changed by putting values
in “Width in pixels” and “Height in pixels” text box.
Value in “Left” and “Bottom” text box sets the position of the OSD text.
12
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Clicking on “Select font” button, a window appears (Figure 3.12). Where font
type, size, color can be changed. After changing ok should be clicked to save
changes.
“Select Background color” button (Figure 3.11) allows selecting any color for the
background of the OSD. When the button is clicked, a window like Figure 3.13
appears that allows selecting a color. After selecting color, OK should be clicked.
“Disable input Device” command (Figure 3.2) is used to enable or disable input
device connected with girder.
13
Md. Ashiqur Rahman
rony4aiub@yahoo.com
“Close window” command (Figure 3.2) is used to close the active window of
Girder and minimize it to system tray.
Edit Menu
“Paste” pastes the copied command or a group to a desired place within girder.
“Add MultiGroup” adds a Multi Group (Figure 3.16). A MultiGroup can hold
more than one command group under it. It is usually used if number of groups is
high enough to manage.
14
Md. Ashiqur Rahman
rony4aiub@yahoo.com
“Add Group” adds a group (Figure 3.17) that can hold multiple commands. Every
command must be under a group.
“Add Toplevel Group” adds Top level group (Figure 3.18) where everything takes
place under it.
“Add Eventstring” adds an Eventstring (Figure 3.19) that contains the decoded
digital code coming from the hardware. An Event String must be under a
command.
15
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Command Menu
“Set Group Target” can set a group of commands to target a specific application
and all the commands under that group can control different threads of that
application.
“Clear Links” clears the link between a command and the associated application.
Help Menu
16
Md. Ashiqur Rahman
rony4aiub@yahoo.com
“Online Help” on Help menu opens a web page from internet to helps the user.
“About” opens a window that shows the full details about the software.
Clicking on “Learn event” button in Girder’s Main window (Figure 3.1) takes
Girder to learn state. If any decoded input signal is detected in learn state, that
signal is saved for a command in a event string.
Value in “Anti repeat wait time [ms]” text box prevents sending same repeated
command within the time limit in millisecond.
“Comment” text box has no function except user can add comment to any
command.
At the lower right side of the main window (Figure 3.1) has list of programs that
can be controlled using Girder and the commands are arranged in different groups
under different
4 Configuring software
The configuration and working procedure involves three parts,
Learning an event
Associating a program operation with a command
Executing a command
Learning an event
To make Girder work, the software have to be learned about different signals
coming from the infrared remote control.
To do so, at first the Igor Plugin has to be selected and the input device has to be
enabled assuming that the input device is connected to the right port of the
computer.
Secondly, a girder command should be added by clicking Edit > Add command.
The main window will look like Figure 3.18
17
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Thirdly, by selecting the command leveled “New”, Edit > Add Eventstring should
be clicked to add an eventstring. Then click the Eventstring leveled “Eventstring”
and then click “Learn event” button. Then, the main window will look like Figure
3.23.
Pressing a button of infrared remote control directing toward the receiver, the
decoded or digitalized code of the corresponding button appears and the main
window looks like Figure 3.24. File >Save should be clicked to save the changes.
18
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Now, the corresponding button has been learned and associated with that
command.
To associate a program operation, first the command should be selected then from
lower right side of main window appropriate tab should be selected and under that
tab a dropdown menu could be found, from that dropdown menu a program
operation should be selected (Figure 3.25). Then “Apply” button should be
clicked and the file should be saved.
19
Md. Ashiqur Rahman
rony4aiub@yahoo.com
20
Md. Ashiqur Rahman
rony4aiub@yahoo.com
button to close the window then save the file. The lower right part of the main
window will look like Figure 3.28.
Executing a command
To execute a command, simply click the button that has been used to create the
Eventstring, The associated application with that command will execute.
5 Summary
This chapter contains the full details of the software that works with the infrared
remote signal receiver. The working procedure involves, firstly adding a
command and then learn various buttons in the IR remote using the learn
command then associate operations to the corresponding command. This is the
summery of the whole operation. The operation has been described elaborately in
this chapter.
21
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Circuit components
1 Introduction
In the main circuit there are various components like TSOP 1738 IC, Resistor,
capacitor, diode, transistor, and Voltage Regulator has been used. So, this chapter
describes elaborately about the TSOP 1738 IC and Voltage Regulator. This
chapter will also discuss shortly about the Resistor, capacitor, diode and transistor.
2 TSOP 1738 IC
The TSOP1738 are miniaturized receivers for infrared remote control systems.
PIN diode and preamplifier are assembled on lead frame, the epoxy package is
designed as IR filter. The demodulated output signal can directly be decoded by a
microprocessor. TSOP1738 is the standard IR remote control receiver series,
supporting all major transmission codes.
Features:
Photo detector and preamplifier in one package
22
Md. Ashiqur Rahman
rony4aiub@yahoo.com
After each burst which is between 10 cycles and 70 cycles a gap time of at least
14 cycles is necessary.
For each burst which is longer than 1.8ms a corresponding gap time is necessary
at some time in the data stream. This gap time should have at least same length as
the burst.
When a disturbance signal is applied to the TSOP1738 it can still receive the data
signal. However the sensitivity is reduced to that level that no unexpected pulses
will occur.
23
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Some examples for suitable data format are, RC5 Code, RC6 Code, NEC Code,
Toshiba Micom format, Sharp Code, R–2000 Code, and Sony Format (SIRCS). In
this project RC-5 code has been used.
3 Voltage Regulator
24
Md. Ashiqur Rahman
rony4aiub@yahoo.com
pump.
4 Diode
A diode is any device possessing two (and only two) electrodes. Most diodes have
2 terminals, and most are used for their unidirectional current property, but neither
of these applies to all diodes. Most modern diodes are based on semiconductor p-n
junctions. In a p-n diode, conventional current can flow from the p-type side (the
anode) to the n-type side (the cathode), but cannot flow in the opposite direction.
Another type of semiconductor diode, the Schottky diode, is formed from the
contact between a metal and a semiconductor rather than by a p-n junction.
In this Experiment normal P-N junction 1N4148 (Silicon signal) diode and LED
has been used.
+ -
This type of diode operates as described above, usually made of doped silicon or,
more rarely, germanium. Before the development of modern silicon power
rectifier diodes, cuprous oxide and later selenium was used; its low efficiency
gave it a much higher forward voltage drop (typically 1.4–1.7 V per “cell”, with
multiple cells stacked to increase the peak inverse voltage rating in high voltage
rectifiers), and required a large heat sink (often an extension of the diode’s metal
substrate), much larger than a silicon diode of the same current ratings would
require. The vast majority of all diodes are the p-n diodes found in CMOS
integrated circuits, which include 2 diodes per pin and many other internal diodes.
25
Md. Ashiqur Rahman
rony4aiub@yahoo.com
5 Transistor
Because of its fast response and accuracy, the transistor is used in a wide variety
of digital and analog functions, including amplification, switching, voltage
regulation, signal modulation, and oscillators. Transistors may be packaged
individually or as part of an integrated circuit, some with over a billion transistors
in a very small area.
The transistor's low cost, flexibility and reliability have made it a universal device
for non-mechanical tasks, such as digital computing. Transistorized circuits have
replaced electromechanical devices for the control of appliances and machinery as
well. It is often easier and cheaper to use a standard microcontroller and write a
computer program to carry out a control function than to design an equivalent
mechanical control function.
In this project the BC 548 and BC 558 Transistor has been used. BC548 is a BJT
NPN transistor and BC 558 is a BJT PNP transistor.
The bipolar junction transistor (BJT) was the first type of transistor to be mass-
produced. Bipolar transistors are so named because they conduct by using both
majority and minority carriers. The three terminals of the BJT are named emitter,
base and collector. Two p-n junctions exist inside a BJT: the base/emitter junction
and base/collector junction. The [BJT] is useful in amplifiers because the currents
26
Md. Ashiqur Rahman
rony4aiub@yahoo.com
at the emitter and collector are controllable by the relatively small base current. In
an NPN transistor operating in the active region, the emitter-base junction is
forward biased, and electrons are injected into the base region. Because the base is
narrow, most of these electrons will diffuse into the reverse-biased base-collector
junction and be swept into the collector; perhaps one-hundredth of the electrons
will recombine in the base, which is the dominant mechanism in the base current.
By controlling the number of electrons that can leave the base, the number of
electrons entering the collector can be controlled.
CBE
Figure 7.6: BC 558
Here,
C means Collector
B means Base
E means Emitter
CBE
Figure 7.7: BC 558
6 Capacitor
27
Md. Ashiqur Rahman
rony4aiub@yahoo.com
7 Resistor
Most of the resistance in circuits is found in components that do specific work,
such as bulbs or heating elements and in devices called resistors. Resistors are
devices that provide precise amounts of opposition or resistance to current flow.
Resistance value is designated in units called the ”Ohm”. A 1000 Ohm resistor is
typically known as 1 K Ohm (Kilo Ohm), and 1000 K Ohms is written as 1M
Ohm(Mega Ohm). Figure. 4.1 shows the symbol of a resistor.
Multiply this two-digit number by value of the third band, the multiplier band.
The resulting number is resistance value of resistors in ohms.
The fourth band is the tolerance band. If the fourth band is gold, the resistors are
guaranteed to be within five percent of the rated value. If the fourth band is silver,
it is guarantee to be within ten percent. If there is no fourth band, their resistors
are guaranteed to be within 20% of the rated value.
8 Summery
In this chapter, every part of the project's circuit has been described. The
components which are used in this proposal are shown in this chapter. This
chapter also gives the total description of each and every component of the circuit.
28
Md. Ashiqur Rahman
rony4aiub@yahoo.com
Conclusion
It should be added that, if TSOP 1738 IC is not available in local market then
almost any IR sensor IC exactly look like this IC would work. Just tell them that if
any Television IR sensor is available that looks like that picture (Showing the
picture of the TSOP1738 IC).
29