Académique Documents
Professionnel Documents
Culture Documents
Vol. 22
FOR YOU
Rs 120
Rs 120 (each)
Rs 150 (each)
Rs 95
Rs 180
Rs 75
Rs 60
Rs 300 (with CD)
Rs 250 (with CD)
Rs 100
(D)
1.
2.
3.
4.
5.
6.
MAGAZINES
Electronics For You (EFY): In regular publication since 1969, EFY is the natural choice for the entire
Rs 60 (with CD)
electronics fraternity, be it the businessmen, industry professionals or hobbyists. From microcontrollers to
Rs 35 (without CD)
DVD players, from PCB designing software to UPS systems, all are covered every month in EFY.
Linux For You (LFY): Asias first magazine on Linux. Completely dedicated to the Open Source community. Rs 100 (with CD)
Regular columns by Open Source evangelists. With columns focused for newbies, power users and developers,
LFY is religiously read by IT implementers and CXOs every month.
i.t. (Information Technology): A monthly magazine for Techies and those who want to be. Its readers have
Rs 30
two things in commona background related to IT and the thirst to know more. Topics covered boast technical
depth and aim to assist in better usage of IT in organisations.
Facts For You: A monthly magazine on business and economic affairs. It aims to update the top decision makers
Rs 50
on key industry trends through its regular assortment of Market Surveys and other important information.
ePower: Published every alternate month for the electronic-power industry, primarily consists of all electronic
Rs 50
power-supply equipment, and their related components and services. A must read for those in this industry and
those catering to it.
BenefIT: A technology magazine for businessmen explaining how they can benefit from IT.
Rs 20
Kindly note that these prices can change without any notice.
Registered Post or Courier Delivery for Books and CDs:
Rs 40 for first copy, and Rs 15 for every additional copy of
any book or directory.
Add Rs 50/- on an outside Delhi cheque.
Important: The prices mentioned here are the current prices at
the time of publication; please reconfirm the prices before placing order, or be prepared to pay the differenceif any
Payment should be sent strictly in advance by demand draft/money
order/postal order in favour of EFY associates KitsnSpares.
KitsnSpares
Magazines
(Monthly)
1 Year
Rs
2 Years
Rs
3 Years
Rs
5 Years
Rs
500
335
920
630
1,290
880
1,800
1,260
Information Technology
300
575
810
1,255
725
1,395
1,950
3,000
ePower (bi-monthly)
180
360
540
900
400
700
1,000
1,600
BenefIT
190
360
ELECTRONICS
PROJECTS
VOL. 22
FOREWORD
This volume of Electronics Projects is the twenty second in the
series published by EFY Enterprises Pvt Ltd. It is a compilation
of 21 construction projects and 66 circuit ideas published in
Electronics For You magazine during 2001.
We are also including a CD with this volume, which not only contains the datasheets of major components used in construction projects but also the software source code and related files pertaining
to various projects. This will enable a reader to copy these files
directly to his PC and compile/run the program as necessary, without
having to prepare them again using the keyboard. In addition, the CD
carries useful software, tutorials and other goodies (refer contents
in CD).
In keeping with the past trend, all relevant modifications, corrections
and additions sent by the readers and authors have been incorporated in
the articles. Queries from readers along with the replies from authors/
EFY have also been published towards the end of relevant articles. It
is a sincere endeavour on our part to make each project as error-free
and comprehensive as possible. However, EFY cannot resume any
responsibility if readers are unable to make a circuit successfully, for
whatever reason.
This collection of a large number of tested circuit ideas and
construction projects in a handy volume would provide all classes
of electronics enthusiastsbe they students, teachers, hobbyists or
professionalswith a valuable source of electronic circuits, which
can be fabricated using readily-available and reasonably-priced
components. These circuits could either be used independently or in
combination with other circuits, described in this and other volumes.
We are sure that this volume, like its predecessors, will generate tremendous interest among its readers.
CONTENTS
1.
2.
3.
4.
5.
6.
Morse Processor........................................................................................................... 33
7.
Access-Control System................................................................................................ 42
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
SECTION A:
CONSTRUCTION PROJECTS
Page = 1
Precautions
Before starting the actual assembly of
the PC system, the following precautions
would help you to avoid any mishap during the assembly process:
While the motherboard has to
be fitted at a fixed place inside the
PC cabinet, the locations of add-on
cards (as and when used) and the
drives (hard disk drive, floppy disk
drive, and CD-ROM drive) within
the drives bay of the cabinet can be
changed within certain limits. But it
is better to place them far away from
each other. (Of course, the length of
the cable provided for interconnections to the motherboard or add-on
cards has to be taken into account, as
Processor
Full support for the Intel Pentium III and Celeron processors using PGA370 socket.
Supports 66MHz and 100MHz bus speed including all PGA370.
Supports 133MHz bus speed (810E chipset version only).
VRM 8.2 (Voltage Regulator Modules) On-board
Flexible motherboard design with on-board VRM 8.2, easy to upgrade with future processors.
System Memory
A total of two 168-pin DIMM sockets (3.3V SDRAM types).
Memory size up to 512MB.
Supports SDRAM at 66/100 (PC100) MHz.
Supports symmetrical and asymmetrical DRAM addressing.
Banks of different DRAM types and depths can be mixed.
System BIOS
4-Mbit Intel Firmware hub (with security feature).
PnP, APM, ATAPI, and Windows 95/98.
Full support of ACPI & DMI.
Auto-detects and supports LBA hard disks with capacities over 8.4 GB.
Easily upgradable by end-user.
On-board I/O
Supports two PCI-enhanced IDEs PIO mode 3, mode 4, and ultra DMA 33/66 channels (optional
ultra DMA 66 cable). Twin headers for four IDE devices including IDE HDDs and CDROMs.
One ECP/EPP parallel port (via a header).
Two 16550A UART parallel port (via a header).
One floppy port. Supports two FDDs of 360KB, 720KB, 1.2MB, 1.44MB, or 2.88MB (via a
header).
Four USB ports (via a header, optional).
PS/2 mouse port (via a header, optional).
AT keyboard port (factory option for PS/2 type).
Infrared (IrDA) support.
Plug-and-play
Supports plug-and-play specification 1.1.
Plug-and-play for DOS, Windows 3.X, Windows 95, as well as Windows 98.
Fully steerable PCI interrupts.
On-board VGA
Hardware motion compensation for S/W MPEG2 decode (DVD).
3-D hyper pipelined architecture.
Full 2-D hardware acceleration.
3-D graphics visual enhancements.
Dynamic display memory (DDM) or optional 4MB display cache (810DC100 or 810E chipset
version only).
Resolution up to 1,600x1,200.
Win 95 vxd, Win 98/NT5 mini-port drivers support.
VGA port (via a header).
On-board AC97 Sound
Integrated AC97 controller with standard AC97 CODEC.
Direct Sound and Sound Blaster compatible.
Full-duplex 16-bit record and playback.
PnP and APM 1.2 support.
Win 95, 98, and NT drivers ready.
Line-in, line-out, mic-in and MIDI/game port.
Power Management
Supports SMM, APM and ACPI.
Break switch for instant suspend/resume on system operations.
Energy star Green PC-compliant.
WAKE-ON-LAN (WOL) header support.
External modem ring-in wake-up support.
Expansion Slots
One audio modem riser (AMR).
Four PCI bus master slots (ver 2.1 compliant).
The motherboard
Table I
JP1, JP2System Bus Frequency
JP1
JP2
Open
Open
Open
1-2
Close*
1-2*
Auto*
JP15
Function
JP4
Close*
Unlocked*
1-2*
Normal
Open
Locked
2-3
CMOS Clear
JP34
Function
2-3
Function
JP29
2-3
JP35
JP36
Function
1-2* 1
2-3
1-2 (P)#
Function
manual with 3-year limited warranty. Similarly, ensure that the 64MB SDRAM
DIMM bears the label (such
as PC100) to indicate that it
is compatible with 100MHz
system bus speed.
Checking cabinet and
its accessories. The AT
mini tower PC cabinet
measures approx.180mm (width) x
330mm (height) x 360mm (depth). The
drive bays comprise two 133.35mm
(5.25-inch) exposed, one 89mm (3.5-inch)
Hardware installation
and checkout
Verifying components. First, carry out
a physical check of all the items as per
the parts list to ensure that there are no
apparent deficiencies and no signs of any
physical damage, and the parts are correct
as indicated by the labels on the items/packages. For example, the Pentium processor
pack should comprise Pentium III processor labeled 700MHz/100MHz system bus,
fan/heat-sink assembly, and installation
(a)
(b)
(c)
(d)
female power
connectors with
Item Description
Make
projection in the
AT cabinet with SMPS, power cord,
middle. If these
power switch, reset switch, speaker,
are held such
LEDs, complete with connectors and
installation hardware packet.
IMIL, Chen- that all black
nai
wires are adjaMotherboard with Intels 810
cent to each othchipset PC Partner, USA along with
er, this forms a
users manual, CD (containing
12-pin AT power
drivers for onboard devices) and
supply connecheaders for motherboard connectors.
* (refer check-list)
PC Partner
tor with orange
Pentium PIII-700 Processor
Intel
wire (carrying
64MB (PC 100)SDRAM (168-pin DIMM)
Alpha
power good sigHDD (hard disk drive)
Seagate
nal) emanating
FDD (floppy disk drive) 3.5
Sony
from pin 1.
CD-ROM drive 52X with audio cable
Samsung
Keyboard
Logitech
The voltMouse(3-button)
Logitech
ages on various
Colour Monitor 14
LG
pins of this joint
USB connector bracket with 2 headers 12-pin connector
*list of connectors/brackets forming part of motherboard.
with their colour
Header (connectors with cables) for HDD (40-pin twin)
- one
codes are shown
Header for FDD (34-pin twin)
- one
in Table II.
Header for PS/2 mouse
- one
Port bracket set with headers for:
Check the cor(a) VGA (15-pin D connector ending into 16-pin FRC and
rectness of these
parallel port (25-pin D ending into 26-pin FRC)
- one
voltages within
(b) Com1 and Com2 (two 9-pin D ending into 10-pin FRC) - two
the range as
(c) Onboard AC97 sound codec (line-in, line-out, mic-in and
given in Table
MIDI/game port ending into 26-pin FRC)
- one
II. Then switch
off the power
socket of the mains supply or the UPS,
supply and take out the 3-pin plug
as appropriate.
from the mains socket. If the AT power
Switch on the SMPS. The fan blower
connector voltages are correct, you
inside the SMPS should start running,
can safely assume that voltages in all
indicating availability of +12V supply to
other power connectors [4-pin Molex,
the fan. Now verify all DC outputs of the
carrying +12V (yellow wire) followed
SMPS as follows.
by two black wires (ground) and +5V
There are two distinct 6-pin Molex
Table IV
Parts List
Table II
At Power Connector Pin Voltages
Pin
Voltage
Range
Wire
Pin
Voltage
Range
Colour
1
*P. G.
4.5V (min)
Orange
7
Ground
-
2
+5V
+5%/-4%
Red
8
Ground
-
3
+12V
+5%/-4%
Yellow
9
-5V
+10%/-8%
4
-12V
+10%/-9%
Blue
10
+5V
+5%/-4%
5
Ground
-
Black
11
+5V
+5%/-4%
6
Ground
-
Black
12
+5V
+5%/-4%
*P. G. = Power good signal which is +5V (delayed, 100ms 500ms).
Table III
VGAVGA Out Connector CN34*
Pin Signal Name Pin Signal Name
1
Red signal
9
NC
2
Green signal 10 GND
3
Blue signal
11 NC
4
NC
12 Display data channel data
5
GND
13 Horizontal sync
6
GND
14 Vertical sync
7
GND
15 Display data channel clock
8
GND
*This connector is for the VGA display port. Connect a
VGA or higher resolution display monitor to it.
Wire
Colour
Black
Black
White
Red
Red
Red
Pin
Signal Name
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
AFD
Error
INIT
SLCTIN
GND
GND
GND
GND
GND
GND
GND
GND
GND
Strobe-
Data bit 0
Data bit 1
Data bit 2
Data bit 3
Data bit 4
Data bit 5
Data bit 6
Data bit 7
ACK
Busy
PE
SLCT
Table V
Table VI
Table IX
Pin
Signal Name
Pin
Signal Name
Pin
Signal Name
Pin
Signal Name
1
2
3
4
5
6
7
VCC
VCC
SWC
SWA
XTC
XTA
MSOUT
8
9
10
11
12
13
14
GND
XTD
GND
SWB
XTB
MSIN
SWD
15
16
17
18
19
20
21
NC
VCC
Line-out
Line-out
GND
GND
MIC-in
22
23
24
25
26
MIC-in
NC
GND
Line-in
Line-in
*This header is for the audio port bracket. It connects audio ports-stereo line-out, stereo line-in
and microphoneand a game port (for a joystick or MIDI device) to your system.
Table VIII
Table VII
Reset IDE
Host data 7
Host data 6
Host data 5
Host data 4
Host data 3
Host data 2
Host data 1
Host data 0
GND
DRQ3
I/O Write-
I/O Read-
IOCHRDY
DACK3-
IRQ14
Addr 1
Addr 0
Chip select 0
Activity
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
GND
Host data 8
Host data 9
Host data 10
Host data 11
Host data 12
Host data 13
Host data 14
Host data 15
Key
GND
GND
GND
BALE
GND
IOCS16GND
Addr 2
Chip select 1GND
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
GND
GND
Key
GND
GND
GND
GND
GND
GND
GND
GND
GND
GND
GND
GND
GND
GND
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
FDHDIN
Reserved
FDEDIN
IndexMorot enable
Drive select BDrive select AMotor enable
DIRSTEPWrite dataWrite gateTrack 00Write protectRead dataSide 1 selectDiskette
Table X
PS/2 Mouse Connector*
Pin
Description
Pin
Description
1
Mouse data
2
NC
3
Ground
4
+5V
5
Mouse clock
6
NC
*This connector is for the optional PS/2 mouse
port bracket.
Table XI
Pin Assignment Internal Audio
Connector Internal Audio Connector
CN25 : AUX-IN
Pin
Assignment
1
AUX-L
2
GND
3
GND
4
AUX-R
CN24 : CD-IN
Pin
Assignment
1
CD-L
2
GND
3
GND
4
CD-R
CN33 : CD-IN
Pin
Assignment
1
CD-R
2
GND
3
CD-L
4
GND
CN32 : CD-IN
Pin
Assignment
1
GND
2
CD-L
3
GND
4
CD-R
Continued
10
with hardware partitioning and formatting of hard disk once you switch on your
newly assembled PC for the first time.
To make a startup disk, get a new
formatted 8.9cm (3.5-inch) floppy. On the
working computer, click start button,
select settings, double click on icon add/
remove programs, select startup disk,
insert formatted floppy in floppy drive, and
click over the create disk button seen on
monitors screen.
The program would prompt you for
insertion of original Windows 98 CD in
CD-ROM drive. Insert the same and click
on OK button. Even if you do not have
the original CD, but have all programs
in Win98 directory in C: drive, you can
give the proper path and the appropriate
programs will be copied to the startup
floppy disk.
CMOS setup
Switch on the newly assembled PC. It
performs power-on-self-test (POST). During POST you will find Num Lock, Caps
Lock, and Scroll Lock LEDs flashing. A
single short beep during POST indicates
that motherboard is OK.
Certain messages will keep appearing
on the screen of your monitor, including
Press Del to enter CMOS setup. When
this message appears, press Del key to
enter setup. The CMOS Setup Utility
screen appears on monitor screen (refer
screenshot 1). There are seven items on
the left, which can be selected using arrow keys on your keyboard. On the right,
it shows certain options that are quite
obvious and can be interactively executed
when required.
Select the first item on the left,
Standard CMOS Features, and press
enter to see its screen (refer screenshot 2).
Use arrow keys to move between the items
and Page Up or Page Down key to edit
or select the options. You may correct the
date, including year and century, and the
time to their current values.
Continued
11
12
Now you will be able to access CDROM drive by typing E:. After the prompt
E:\>, type Format C:/S/U/V and press
Enter. (Here C: refers to drive to be formatted, S to system (transfer of system
files to C drive during formatting), U to
unconditional, and V to verification.) After formatting C drive, you will come back
to the prompt E:\Win98>. Type setup
and press Enter to install Windows 98
on C drive.
As the program is interactive, keep
answering the questions logically. Choose
typical while selecting the Windows ver-
sion. Various messages like enter computer name, workgroup, etc keep appearing,
which you may reply suitably. Against
date/time zone selection, choose India.
Computer will show the Agreement
format that you are bound to accept.
Hence click on the appropriate button.
Before proceeding with the Windows
installation, the program prompts you for
entering the key number of Windows 98
product, which accompanies each original
copy. You must type the key number accurately. It will then copy the Windows
98 files to C drive in Win98 directory.
This will obviate use of Windows CD
for creating a startup file, whenever
required.
To format drive D, double click on
My Computer icon, click the right button
on drive D:, choose Format, and in Format D: menu box, choose full and click
on Start button. After completion of the
formatting of D drive, it is accessible for
read/write operations. This completes partitioning and formatting of the hard disk.
Loading
motherboard drivers
On-board VGA display driver. When
the PC is running, insert the motherboard
driver CD that came with the motherboard
(PCPartner drivers CD, in our case) into
CD-ROM drive. Select drive E, select Intel Chipset Products, 810, VGA , Win9X,
and Graphics, in that order, and double
click on its Setup.exe icon and follow the
instructions on screen. After finishing,
shut down the PC as per Windows shutdown procedure and restart to allow the
drivers to take effect.
On-board AC97 Codec sound
driver. Click on Start button, select settings, select control panel, double click on
System icon, click on Device Manager,
go to Other Devices, double click on PCI
multimedia, select PCI Audio, click on
Remove button (since compatible software drivers have not yet been installed to
avoid conflicts), and then click on refresh
button.
Go back to control panel and, click
on Add new H/W. A wizard guides you
through rest of the process, and in due
course, a message Found new hardware
PCI multimedia audio, display, sound
video appears. The program asks if you
have disk (drivers). Click the Browse
button, select E:, Intel Chipset Products,
810 , AC97 Sound, CS4299, Win98, in that
below.
APM. APM caters to the PC to enter
an energy-saving standby mode. BIOS
enables APM by default. It can be initiated
in the following ways:
1. By specifying time-out period in
BIOS setup program.
2. By connecting a hardware suspend/
resume switch to CN10 on the motherboard.
3. From Suspend menu item in Windows.
ACPI. ACPI provides direct control
to the operating system over the power
management as well as plug-n-play functions. Features include:
1. Power management control of
individual devices, add-on cards, video
display, and HDD.
2. Methods for achieving less than
30W operation in Power-on Suspend
Sleeping State and less than 5W in Suspend to Disk Sleeping State.
3. A soft-off feature to power off the
PC.
4. Support for multiple wake-up events
for the PC to resume normal operation.
5. Support for front-panel power and
sleep mode switch.
Ethernet card for LAN. Ethernet
cards capable of running at 10Mbps to
100Mbps, of different makes such as
Intel, Real Tek, Mercury and Dax, as
Ethernet PCI adapter are available in
the market.
Each card comes with a bracket, driver
ELECTRONICS PROJECTS Vol. 22
13
Readers comments:
Q1. The authors have shown irresponsibility by planning to install a Pentium III
processor on a PGA 370 socket meant for
a Celeron or lower processor.
Adarsh Soodan
Through e-mail
Q2. The article is really interesting and
useful. Please clarify the following technical terms:
1. PS/2 mouse connector
2. Energy Star, Green PC
3. Audio modem riser (AMR)
R. Sreerekha Hareendran
Kollam, Kerala
Q3. I request the authors to clear the following doubts.
1. Is there any single and reliable
dealer in Chennai, Bangalore or Kerala
from where I can procure all the components.
2. Is the PC available in kit form?
3. Instead of a 35.5 cm (14-inch) colour
monitor, can I use a 43.2 cm (17-inch) colour monitor with this PC, without making
any alterations. Further, is there any 43.2
cm LCD, colour monitor available for this
PC. In that case what are all the alterations required to be made?
A. Venugopalan Unny
Palakkad
Q4. Please clarify:
1. What is the difference between a
boot disk and a start-up disk?
2. How can I increase the HDD capacity to 20 GB? Further, how can I partition
HDD into four sections (logical drives) and
CD-ROM drive as the fifth drive?
3. Define primary master/slave and
secondary master/slave.
4. How can I configure HDD as secondary master and CD-ROM drive as secondary slave?
5. Provide a few tips for attaching a
CD-writer and also a DVD drive to the
system.
T. K. Hareendran, Kadakkal
14
15
16
1.
2.
3.
4.
the sound cards internal audio-in connector. Remove the monitor connector
from your graphics card and plug it into
the appropriate connector on the rear of
your MPEG card. Find the VGA loop-back
cable included in your DVD kit. Attach
its one end to your graphics card and
the other to the input connector on your
MPEG card.
If you want to use a TV monitor with
your DVD drive, link the video-out connector on your MPEG board to the monitors
video-in connector. Now proceed to install
the drivers and DVD software. Power up
your PC. Windows will detect the MPEG
board and ask you for a driver. Insert the
driver floppy from your DVD kit and click
OK. You may need to restart your PC
before proceeding.
A5. 1. The first question has already
been answered above.
2. The slow booting operation in PC
may be attributable to some other reason
rather than the processor. The booting
process in the PC involves a number of
steps. Some of the probable reasons and
the suggested remedies are given below:
The power good (PG) signal may
not be building fast to its specified value
(4.5Vmin). For that, you need to check
your PCs SMPS. The specified power rating of the power supply to support Intels
810 chipset is 145 watts for a typical
configuration.
In the CMOS setup utility (refer
screenshot 4), edit the field against System BIOS Cacheable and Video BIOS
Cacheable to read Enabled in place of
Disabled.
Ensure that 3.3V SDRAM sticks
(DIMMs) used by you are 100MHzcompatible.
Ensure firm connections from motherboard to all peripherals. Improper connections can result in BIOS taking time
in identifying them/their settings during
Parts List
Semiconductors:
IC1, IC2, IC3 - NE555, timer
IC4
- 74LS192, up/down decade
counter
IC5
- 74LS85, 4-bit magnitude
comparator)
IC6
- 7447, BCD to 7-segment
decoder/driver
IC7
- MCT2E, opto-coupler
IC8
- 7805, +5V regulator
IC9(N1-N4)
- 74LS00, quad 2-input
NAND gate
IC10(N5-N10) - 74LS14, hex schmitt
inverter gate
T1, T2
- BC548, npn transistor
T3
- SL100, npn transistor
D1-D3
- IN4001, rectifier diode
IRLED1, IRLED2 - Infrared LED
Resistors (all -watt, 5% carbon, unless
stated otherwise):
R1
- 3.3-kilo-ohm
R2
- 10-kilo-ohm
R3
- 100-ohm
R4, R5, R21
- 1.2-kilo-ohm
R6, R7, R12
- 33-kilo-ohm
R8, R9
- 180-kilo-ohm
R10, R11
- 1-kilo-ohm
R13-R19
- 470-ohm
R20
- 100-kilo-ohm
VR1
- 10-kilo-ohm preset
Capacitors:
C1
- 0.001F, ceramic disk
C2, C3, C4
- 0.01F, ceramic disk
C5, C6
- 4.7F, 16V electrolytic
C7, C8
- 10F, 16V electrolytic
C9
- 1F, 16V electrolytic
Miscellaneous:
M1, M2
- IR sensor modules
DS1
- LT542 (common anode
display)
RL1
- 12V, 200 ohm, 2 C/O.
LDR1
- LDR (Dark resistance > 120
kilo-ohm)
L1
- 230V, 100W electric bulb
- 12V power supply
- Printed circuit board
- IC sockets
17
18
commonly available in
the market. These have
three terminals for Vcc
(+5V, here), ground, and
the output signal, respectively. In the normal
state, the output pin
(pin 3) of this detector
remains at high state,
and when an IR light
of correct modulating
frequency is detected,
its output pin goes low.
The pin configuration
of the IR modules may
vary from one manufacturer to the other. (Pin
configuration of module
TSOP 1136 for 36 kHz
used by EFY is shown in
Fig. 2.) (Articles based
on the IR sensor module
have been published in
Nov. 2000 (also in Electronics Projects Vol. 21)
and some other previous
issues of EFY. Readers
may refer the same for
more information about
the module.)
Since the IR transmitter in this circuit is
continuously on, emitting IR light, in the normal condition, the output
pins of both IR modules
will be at low state.
Therefore transistors T1
and T2 will remain cutoff. When a person enters
19
20
Fig. 6. The distance between the two sensors (receiver modules) is about 40 cm.
A steel pipe of 5mm diameter and 3cm
length can be placed in front of the IR
module in order to improve its directivity. After assembling the circuit, adjust
preset VR1 (10k) until pin 3 of both the IR
sensor modules go high (5V). If the circuit
still does not function properly, adjust the
distance between the sensors. The metal
cabinets of the IR modules must be connected to ground.
Note that the circuit works with a
regulated +5V supply, except the power
supply to the relay coil. The circuit has
no off-time memory, and so its working is
interrupted during power failure.
Another disadvantage is that the circuit can count only up to 9. But it is quite
unusual to have more than nine people in
a normal living room.
Take care about the IR sensor module
pin connections. It may be damaged if connected wrongly.
Intelligent
Water Level Controller
Sadhan Chandra Das
21
Digital display
circuit (refer Fig. 1.)
This circuit comprises a
quad 2-input XOR gate
IC1 (CD4030) for sum
outputs, decimal to BCD
code converter using
diode matrix of diodes
D3 through D7, a BCD
to 7-segment decoder/
driver IC2 (74LS47),
Fig. 3: Construction details of probes for mineral water
and common-anode type
7-segment display LTS 542R.
When only
the tip of sensor
probe (cathode)
No. 1 is in touch
with the water,
the voltage at
pin 3 of IC1 becomes logic high
(i.e. +5V), and
hence voltage at
line No. 1 (L-1)
also becomes
high. Now due
to conduction of
Fig. 4: Construction details of probes for non-conducting liquids
diode D3, the BCD code
0001 (Q3 Q2 Q1 Q0) is
predetermined level, the unit switches off
generated and converted to equivalent
the pump to protect the pump from dry7-segment code by IC2 (74LS47) to disrun, even though the overhead tank may
play the decimal digit 1.
be completely empty.
Similarly, when the tips of the both
It includes under- and over-voltage
sensors 1 and 2 are in touch with water,
cutout to switch off the pump if the voltage
the voltage at pin 3 becomes logic low
is not within specified low (200V) and high
(0V) while the voltages at pin 4 and line
(250V) limits.
2 (L-2) become logic high (i.e. +5V). Now
It includes a circuit for digital disdue to conduction of diode D6, the corplay of the overhead tank level to indicate
responding BCD code 0010 is generated
water levels 0 through 4 as per positions
and decimal digit 2 is displayed on the
of the tips of the sensors inside the over7-segment display.
head tank.
When the tank is completely empty,
The sensors used in this project have
the outputs of all XOR gates of IC1 are
a lifetime of more than five years.
22
Parts List
Semiconductors:
IC1
- CD4030 quad 2-input XOR
gate
IC2
- 74LS47 BCD to 7-segment
decoder/driver
IC3-IC5
- CD4001 quad 2-input NOR
gate
IC6
- LM7812 regulator 12-volt
IC7
- LM7805 regulator 5-volt
T1-T2
- SL100 npn transistor
D1-D15,
D17-D20
- 1N4001 rectifier diode
D16
- Red LED
DIS1
- LTS542R 7-segment common
anode display
Resistors (all -watt, 5% carbon, unless
stated otherwise):
R1-R8
- 33-kilo-ohm
R9-R18
- 56-kilo-ohm
R19-R21
- 1.5-kilo-ohm
R22, R24
- 2.2-kilo-ohm
R23
- 1.2-kilo-ohm
R25
- 1-kilo-ohm
R26, R27
- 220-kilo-ohm
R28-R34
- 330-ohm
VR1, VR2 - 100-kilo-ohm preset
Capacitors:
C1-C4, C7 - 0.01F ceramic disc
C5
- 470F, 35V DC electrolytic
C6
- 2200F, 35V DC electrolytic
C8,C9
- 10F, 25V DC electrolytic
Miscellaneous:
RL1
- 12V, 200-ohm 2 C/O relay
X1
- 230V AC primary to
(a) 0-15V, 750 mA, and
(b) 0-12V, 100 mA secondary
transformer
S1
- Push-to-on button
S2
- On/Off switch
- IC sockets
- Heat sinks for regulator ICs
- SS304, 5mm dia. stainless
steel rod for anode and 3mm
dia. for all cathodes - of appropriate length
- Multi-core feed wire
23
24
a unique
Liquid Level Indicator
Sadhan Chandra Das
25
Fig. 9: Actual-size, single-sided PCB for the unique liquid level indicator
26
Parts List
Semiconductors:
IC1-IC3
- CD 4030 quad 2-input X-OR
gate
IC4
- 74LS47 BCD to 7-segment
decoder/driver
IC5
- UM66 melody generator
DIS1-DIS3 - LTS 542 common anode
7-segment display
T1, T3, T4 - SL100 npn transistor
T2
- BC 108 npn transistor
D1-D16,
D21, D22
- 1N4001 rectifier diode
ZD1
- 3.1 volt zener diode
LED1-LED4 - Red LED
Resistors (all -watt, 5% carbon, unless
stated otherwise):
R1
- 3.3-kilo-ohm
R2-R5
- 1.5-kilo-ohm
R6-R24
- 330-ohm
R25-R34
- 56-kilo-ohm
R35-R44
- 33-kilo-ohm
R45
- 100-kilo-ohm
R46
- 2.7-kilo-ohm
R47, R48
- 680-ohm
Capacitor:
C1
- 100F, 25V electrolytic
Miscellaneous:
LS
- 8-ohms speaker 7.5 cm dia
- SS 304, 5 mm dia and 3mm
dia stainless steel rods of
appropriate length for anode
and cathodes respectively.
- Multi-core feed wire
Readers comments:
Q1. I have noticed, when the water level
reaches the probe No 4, the C' segment
LED of DIS 2 (LT542) does not glow.
The same is the case even when the
water level reaches probe No. 5 and
probe No 6. Kindly suggest the corrective actions.
M. Raja
Bangalore
Q2. I have constructed the circuit which
is working perfectly. Instead of eleven
roads, I want to use a stainless-steel
hollow pipe that is sealed at one end
and contains ten normally-open type
27
28
Centronics interface
TABLE 1
Pin Assignments of Centronics
Interface Connector
Pin No. Signal
Direction
2
Data bit 0 (D0)
In
3
Data bit 1 (D1)
In
4
Data bit 2 (D2)
In
5
Data bit 3 (D3)
In
6
Data bit 4 (D4)
In
7
Data bit 5 (D5)
In
8
Data bit 6 (D6)
In
9
Data bit 7 (D0)
In
1
Strobe (STR)
In
14
Auto Feed (AF)
In
36
Device Select (DSL) In
31
Initialise (INIT)
In
11
Busy (BSY)
Out
13
Select (SEL)
Out
32
Error (ERR)
Out
12
Paper end (PE)
Out
19 to
30, 33
Ground
signal (DSL*)
to select the
printer. Read
the status to
find out whether the printer
is selected
and the Busy
signal is low.
Now send the
ASCII character to print
the character,
followed by
the STROBE*
pulse for 0.5
s. The process continues
Fig. 4: Actual-size, single-sided PCB for the
till the end of printer interface circuit
the program.
The end of the
program is indicated using
RST1 (CFH).
The starting location of
the program
to be printed
should be
stored in D
and E registers. The eight
MSBs and
eight LSBs of
memory location should
be stored in
D register and Fig. 5: Component layout for the PCB
Fig. 3: Schematic diagram of the printer interface circuit
E register, report pins. For input port pins, there is no
Parts List
spectively. The complete software
danger of overloading, and hence these
program is given with comments as
Semiconductors:
ICI, IC2
- 7407 hex buffer/driver (open
pins were connected directly from the
necessary.
collector type)
printer to the kit.)
(EFY Lab note. The original program
Resistors (all -watt, 5% carbon, unless stated
was tried many times, but we did not sucotherwise):
ceed. Finally, the program was extensively
R1-R12
- 1-Kilo-ohm (or use one-/twoPrinter driver program
resistor networks
modified and successfully run using Epson
overview
Miscellaneous: - Centronics connector and
9-pin printer. The program, along with
cable
During initialisation, some memory locaTables II and III showing the status and
tions are kept aside to
Table III
store the ASCII equivaPort B of 8255(Input) Status Signals
lent of the characters that
Cent pin no NU
14
31
1
NU 36
NU
NU
are to be printed. This is Signal
AF
INIT STR
DSL
Comments
followed by configuration Data C7
C6
C5
C4
C3
C2
C1
C0
X
0
1
1
X
0
X
X
=30H
(initialisation) of 8255 by
X
0
0
1
X
0
X
X
=10H
Printer
sending the mode con-
long delay
initialisation
trol world to its control
X
0
1
1
X
0
X
X
=30H
register. To initialise
X
0
0
1
X
0
X
X
=20H
the printer first send ini-
Short delay
strobe
tialisation (INIT*) pulse
X
0
1
1
X
0
X
X
=30H
for a few microseconds.
NU=Not Used
Then send the select
ELECTRONICS PROJECTS Vol. 22
29
Memory
Location
Instructions
Code
7110
LXI H, 7000
21
7111
00
7112
70
7113
LXI D2A20
11
7114
20
7115
2A
7116
MOV A, H
7C
7117
CALL 70FC
CD
7118
FC
7119
71
711A
MOV A, H
7C
711B
CALL7100
CD
711C
00
711D
71
711E
MOV A,L
7D
711F
CALL 70FC
CD
7120
FC
7121
70
7122
MOV A, L
7D
7123
CALL 7100
CD
7124
00
7125
71
7126
MOV A, M
7E
7127
CALL 70FC
CD
7128
FC
7129
70
712A
MOV A, M
7E
712B
CALL 7100
CD
712C
00
712D
71
712E
INX H
23
712F
MOV A, M
7E
7130
CPI CF
FE
7131
CF
7132
JNZ 7116
C2
7133
16
7134
71
7135
MVIA, 43
3E
7136
43
7137
STAX D
12
7138
INX D
13
7139
MVI A, 46
3E
713A
46
713B
STAX D
12
713C
DCX D
1B
713D
LXI H 2A20
21
713E
20
713F
2A
7140
MVI A, 82
3E
7141
82
7142
OUT 0B
D3
7143
0B
7144
MVI A, 0B
3E
7145
0B
7146
OUT 0B
D3
7147
0B
7148
CALL 7200
CD
7149
00
714A
72
714B
MVI A, 05
3E
714C
05
714D
OUT 0B
D3
714E
0B
714F
IN 09
DB
7150
09
7151
ANI 02
E6
7152
02
7153
CPI 02
FE
7154
02
7155
JNZ 714F
C2
30
Comments
Memory
Location
Instructions
7156
7157
7158
MVI B, 04
7159
715A
CALL 7220
715B
715C
715D
INX H
715E
DCR B
715F
JNZ 715A
7160
7161
7162
MVI A, 20
7163
7164
OUT 08
7165
7166
MVI A, 09
7167
7168
OUT 0B
7169
716A
MVI A, O8
716B
716C
OUT 0B
716D
716E
MVI C, 02
ter
716F
7170
CALL 7220
7171
7172
7173
INX H
7174
DCR C
7175
JNZ 7170
7176
7177
7178
MVIA, 0A
7179
717A
OUT 08
717B
717C
MVIA, 0D
717D
717E
OUT 08
717F
7180
MVIA, 09
7181
7182
OUT 0B
7183
7184
MVIA, 08
7185
7186
OUT 0B
7187
MOV A,E
7188
XRA L
7189
JNZ 7158
718A
718B
718C
MOV A,D
718D
XRA H
718E
JNZ 7158
718F
7190
7191
RST 1
Code
Comments
4F
71
06
04
CD
20
72
23
05
C2
5A
71
3E
20
D3
08
3E
09
D3
0B
3E
08
D3
0B
0E
02
CD
20
72
23
0D
C2
70
71
3E
0A
D3
08
3E
0D
D3
08
3E
09
D3
0B
3E
08
D3
7B
Ad
C2
58
71
7A
AC
C2
58
71
CF
to print 2 codes.
Use subroutine to transfer data.
in polling mode.
Memory
Location
7104
JC 7109
7105
7106
7107
ADI 07
7108
7109
ADI 30
710A
710B
STAX D
710C
INX D
710D
RET
DC
C6
70
C6
07
C6
30
12
13
C9
Add 07 to data
Else add 30H to data to convert data
into ASCII code.
722D
MOV A,M
722E
OUT 08
722F
7230
MVI A,08
7231
7232
OUT 0B
7233
7234
MVI A,09
7235
7236
OUT 0B
7237
7238
MVI A,O8
7239
723A
OUT 0B
723B
723C
RET
7E
D3
08
3E
08
D3
0B
3E
09
D3
0B
3E
08
D3
0B
C9
0E
FF
0D
C2
02
72
C9
Mnemonics
9000 310095
LXI SP, 9500H
9003 11209D
LXI D,9D20H
9006 EB
XCHG
9007 11209A
LXI D, 9A20H
900A 7C
X1
MOV A,H
900B CDFC90
CALL 90FCH
900E 7C
MOV A,H
900F CD0091
CALL 9100H
9012 7D
MOV A,L
9013 CDFC90
CALL 90FCH
9016 7D
OV A,L
9017 CD0091
CALL 9100H
901A 7E
MOV A,M
901B CDFC90
ALL 90FCH
901E 7E
MOV A,M
90IF
CD0091
CALL 9100H
9022 23
INX H
9023 7E
MOV A,M
9024 FECF
CPI CFH
9026 C20A90
JNZ X1
9029 3E43
VI A,43H
902B 12
STAX D
902C 13
NX D
902D 3E46
MVI A,46H
902F 12
TAX D
9030 1B
CX D
9031 21209A
XI H,9A20H
9034 3E82
VI A,82H
9036 D30B
UT 0BH
9038 3E30
VI A,30H
903A D30A
UT 0AH
903C 3E10
VI A,10H
903E D30A
UT 0AH
9040 CD0092
ALL 9200H
9043 3E30
VI A,30H
9045 D30A
UT 0AH
Remarks
9047 3E02
VI A,02H
9049 D308
UT 08H
904B CD5092
ALL 9250H
904E CD7092
ALL 9270H
9051 0604
X4:
MVI B,04H
9053 CD249
X2:
CALL 9224H
9056 23
INX H
9057 05
DCR B
9058 C25390
JNZ X2
905B 3E20
MVI A,20H
905D D308
OUT 08H
905F CD5092
CALL 9250H
9062 CD7092
CALL 9270H
9065 0602
VI B, 02H
9067 CD2492
X3:
CALL 9224H
906A 23
INX H
906B 05
CR B
906C C26790
JNZ X3
906F CD9092
CALL 9290H
9072 7B
MOV A,E
9073 AD
XRA L
9074 C25190
JNZ X4
9077 7A
MOV A,D
9078 AC
XRA H
9079 C25190
JNZ X4
907C 3E03
MVI A,03H
907E D308
OUT 08H
9080 CD5092
CALL 9250H
9083 CD7092
CALL 9270H
9086 3E04
MVIA,04H
9088 D308
OUT 08H
908A CD5092
CALL 9250H
908B CD 7092
CALL 9270H
9090 76
HLT
;Convert data to be
;printed into ASCII
;End of data?
;ASCII code of C
;ASCII code of F
;Call delay
Label
Mnemonics
Remarks
;ASCII code for start of text
;Call status
; Call strobe
;Counter of 4 for printing
;four digits of addresses
;of memory location
;Call LFCR
;Check whether all data
;has been transfered for
;printing
31
Label
OF
OF
E60F
FE0A
DA0991
C607
C630
X5:
12
13
C9
Mnemonics
Remarks
RRC
RRC
ANI 0FH
PI 0AH
C X5
DI 07H
ADI 30H
STAX D
INX D
RET
;Output Subroutine
9224 7E
9225 D308
9227 CD5092
922A CD7092
922D C9
MOV A,M
OUT 08H
CALL 9250H
CALL 9270H
RET
;Delay subroutine
9200 C5
9201 06FF
9203 0EFF
X7:
9205 0D
X6:
9206 C20592
9209 05
920A C20392
920D C1
920E C9
PUSH B
MVI B,FFH
MVI C,FFH
DCR C
JNZ X6
DCR B
JNZ X7
POP B
RET
;Status subroutine
9250 C5
9251 06FF
X9:
9253 0EFF
XS:
9255 DB09
9257 E60F
9259 FE06
PUSH B
MVI B,FFH
MVI C,FFH
IN 09H
ANI 0FH
CPI 06H
32
;In port B
;Compare with 06H
Label
CA6692
0D
C25392
05
C25192
C1
X11:
C9
;Strobe subroutine
9270 3E20
9272 D30A
9274 C5
9275 0EFF
9277 0D
X10:
9278 C27792
927B C1
927C 3E30
927E D30A
9280 C9
Mnemonics
JZ X11
DCR C
JNZ X8
DCR B
JNZ X9
POP B
RET
MVI A,20H
OUT 0AH
PUSH B
MVI C,FFH
DCR C
JNZ X10
POP B
MVI A,30H
OUT 0AH
RET
Remarks
MORSE PROCESSOR
Junomon Abraham
Mo
been used, which relieves the microprocessor from scanning the keyboard
and display. Here, 25 keys, including SHIFT and CTRL keys, and six
7-segment common cathode character
displays are used. Though 7-segment
displays are not suitable for alphanumeric characters, these have been
used here with some compromise for
reducing the overall cost. (Note: The
use of dot-matrix LCD display avoids
the difficulty in displaying characters
in 7-segment format. One can go for a
microcontroller design, if needed.) The
TABLE II
Address Distribution
Device
Address
EPROM
0000 to 03FF
RAM
1000 to 17FF
8279:
Command Port
21
Data Port
20
Hardware
The circuit is configured around the
basic 8085 microprocessor. For simplifying the overall design, a programmable
keyboard/display interface 8279 chip has
ELECTRONICS PROJECTS Vol. 22
33
PARTS LIST
Semiconductors:
IC1
- 8085A microprocessor
IC2
- 74LS373 octal D-type latches
IC3
- 6116 RAM (2 kB)
IC4
- 27C32 EPROM (4 kB)
IC5
- 8279 keyboard/display decoder
IC6, IC9
-
74LS138 3-bit binary
decoder
IC7
- 74LS123 retriggerable monostable multivibrator
IC8
- 74LS244 octal bus driver
IC10
- 7805 +5 volt regulator
T1
- BC548 npn transistor
T2
- BC549 npn transistor
T3-T8
- BC558 pnp transistor
Dl
- 1N4148 switching diode
LED1
- LED
DIS1-DIS6-
LTS543 common-cathode
display
Resistors (all watt, 5% carbon, unless
stated otherwise)
Rl
- 68-kilo-ohm
R2
- 3.3-kilo-ohm
R3
- 2.2-kilo-ohm
R4
- 5.6-kilo-ohm
R5
- 1-mega-ohm
R6
- 15-kilo-ohm
R7, R8 - 1-kilo-ohm
R9-R16 - 68-ohm
R17-R22 - 220-ohm
R23
- 180-ohm
VR1
- 2.2-kilo-ohm preset
VR2
- 100-ohm preset
Capacitors:
C1
- 2.2uF, 16V electrolytic
C2, C4, C6 -
0.luF ceramic disc
C3
- 10uF, 16V electrolytic
C5
- 0.001uF ceramic disc
C7
- 10pF ceramic disc
Miscellaneous:
PZ1
- Piezo buzzer
MIC
- Condenser microphone
S1-S26
-
Tactile switches for
keyboard
XTAL
- 6.144 MHz crystal
The software driver routines for the circuit, along with their Assembly language
code, are listed in Appendix A. Basically,
the following functions are performed by
the software program:
1. Initialisation of the peripherals.
2. Reading the depressed key data and
its storage in RAM.
3. Writing data into the display RAM
in 8279.
4. Generation of Morse code.
5. Recognition of Morse code from its
sound.
6. Giving proper messages at appropriate time.
Since Morse code is a time-dependent
code, the program contains many jump
instructions. The program has been
make interactive and user-friendly. The
34
Firmware
Table IV
Lookup Table
Chr/word
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
G
H
I
*Notes:
Address
0300
0304
0308
030C
0310
0314
0318
031C
0320
0324
0328
032C
0330
0334
0338
033C
0340
0344
0348
Hexcode
Chr/word Address Hexcode
Chr/word
3FAA0E00 J
034C
IE A9 03 00 .
06 A9 0E 00 K
0350
70 E6 00 00 ,
5BA5OEOO L
0354
38 59 03 00 ;
4F95 0E00 M
0358
55 3A 00 00 ?
66 55 0E 00
035C
46
-
6D55 0D00
7D 56 0D 00 N
0380
54 36 00 00 EOM*
07 5A0D00 O
0384
5C EA 00 00 WAIT*
7F 6A 0D 00 P
0388
73 69 03 00 BT*
6F AA 0D 00 Q
038C
67 9A 03 00 SK*
77 39 00 00 R
0390
50 D9 00 00 SELECt
7C 56 03 00 S
0394
6D D5 00 00
39 66 03 00 T
0398
78 0E 00 00 trAnst
5E D6 00 00 U
039C
3E E5 00 00 M oVEr
79 0D 00 00 V
03A0
2A 95 03 00 rECEIE
7165 03 00 W
03A4
6A E9 00 00
3D DA 00 00 X
03A8
52 96 03 00 SEtup
76 55 03 00 Y
03AC
6E A6 03 00
30 35 00 00 Z
03B0
4B 5A 03 00
1. EOM=End of message= 3
2. WAIT= 8
3. BT=Sentence separation=
4. SK=End of work= 3
3
Address
03B4
03B8
03BC
03C0
03C4
03C8
03CC
03D0
03D4
03D8
03DC
03E0
03E4
03E8
03EC
03F0
03F4
03F8
03FC
Hexcode
80 99 39 00
04 5A 3A 00
84 66 36 00
D3 A5 35 00
08 56 39 00
00 3F 00 00
OF 99 0D 00
7E 59 0D 00
49 56 0E 00
4F 95 39 00
6D 79 38 79
39 78 78 50
77 54 6D 78
55 00 5C 2A
79 50 50 79
39 79 30 79
6D 79 78 3E
73 00 00 00
00 00 00 00
35
Size 215100 mm
Control-key functions
Before going to the operating procedure,
we have to know the functions of key associated with CTRL key.
CTRL+SETUP (8EH). The default
speed is initialized for approximately
5 words/minute. If you want to change
this setting, you can do so by using this
control key combination. When you press
this combination k, the message SEtUP
is displayed. Here you can enter any
one of the characters ranging from 1
through 9 and A through K to change
the speed. Note that the minimum speed
is associated with K and the maximum
with 1.
CTRL+CLEAR (98H). It clears the
RAM content.
CTRL+PLAY (84). CTRL+PLAY is
used for displaying the RAM content in
moving format. You can interrupt any
process by pressing any control key that
has no function.
CTRL+CONT (86). It is used for
continuing the play operation if it were
interrupted.
Operating procedure
1. Switch on the power supply. A message
36
Label
Mnemonics
Comments
Booting
0000
31FF17
LXI SP.17FFH
Initialise stack pointer
0003
3E10
MVIA.10H
Initialise 8279
0005
D321
OUT 21H
0007
3E40
MVI A.40H
0009
D321
OUT 21H
000B
3E0D
MVI A.0DH
000D
30
SIM
Activating RST6.5
000E
325017
STA 1750H
Updating mode and position
data
0011 211D00
LXI H.001DH
0014
225117
SHLD 1751H
0017
21246C
LXIH.6C24H
Fixing
default setup
001A
227017
SHLD 1770H
001D 11DC03
LXI D.03DCH
0020 CDE000
CALL DISPLAY Display SELECt
0023
FB
El
0024 76
HLT
Halt
RST 5.5
002C C3F700
JMP 00F7H
Go to ISR of RST5.5
RST 6.5
0034 DB20
IN 20H
Reading keyboard data from
IC 8279
0036 F5
PUSHPSW
Store it in the stack
0037 FE8A
CPI8AH
Checking CNTL+ RECEIVE
key
0039 CA0002
JZ RECEIVE
003C FE8C
CPI8CH
Checking CNTL+
TRANSMIT key
003E CA8001
JZ KEYBOARD
0041 FE84
CPI 84H
Checking CNTL+PLAY key
0043 CAD001
JZ PLAY
0046 FE86
CPI 86H
Checking CNTL+
CONTINUE key
0048 CAD501
JZ 01D5H
004B
FE98
CPI98H
Checking CNTL+ CLEAR
kev
004D
C26000
JNZ 0060H
0050 210010
LXIH.1000H
Clearing the RAM
0053 36C8
MVI M.C8H
0055
23
INXH
0056 7C
MOV A, H
0057 FE17
CPI 17H
0059 DA5300
JC 0053H
005C 2A5117
LHLD 1751H
Return to mode from
005F E9
PCHL
where clearing action is
called
0060 FE8E
CPI8EH
Checking CNTL+ SETUP
key
0062 C27700
JNZ 0077H
0065 3E0E
MVIA.0EH
Activating RST5.5
0067 30
SIM
0068 11F403
LXI D.03F4H
006B CDE000
CALL DISPLAY Display the message SEtUP
006E FB
El
006F 76
HLT
0070 3E0D
MV1A.0DH
Activating RST6.5
0072 30
SIM
0073 2A5117
LHLD 1751H
0076 E9
PCHL
Return to mode from where
setup action is called
Addr. Opcode
Label
Mnemonics
0077 3A5017
LDA 175OH
007A B7
ORAA
007B CA8000
JZ 0080H
007E FB
El
007F 76
HLT
0080 F1
POPPSW
0081 FE92
CPI92H
0083 C28900
JNZ 0089H
0086 2B
DCXH
0087 2B
DCXH
0088 C9
RET
0089 FE90
CPI90H
008B C8
RZ
008C FE80
CPI80H
008E C29600
JNZ 0096H
0091 110500
LXID.0005H
0094 19
DAD D
0095 C9
RET
0096 FE82
CPI 82H
0098 C2A000
JNZ 00A0H
009B 11F9FF
LXI D.,FFF9H
009E 19
DAD D
009F C9
RET
00A0 FE88
CPI88H
00A2 CA1001
00A5 FE96
CPI 96H
00A7 C2BA00
JNZ 00BAH
00AA E5
PUSH H
00AB 46
MOV B,M
00AC 2B
DCX H
00AD 70
MOV M,B
00AE 23
INX H
00AF 23
INX H
00B0 7C
MOVA.H
00B1 FE17
CPI 17H
00B3 DAAB00
JC 00ABH
00B6 El
POPH
00B7 2B
DCX H
00B8 2B
DCX H
00B9 C9
RET
00BA FE94
CPI 94H
00BC C2D100
JNZ 00D1H
00BF 2B
DCX H
00C0 E5
PUSH H
00C1 46
MOVB.M
00C2 36C8
MVI M.C8H
00C4 23
INX H
00C5 7E
MOV A,M
00C6 70
MOV M,B
00C7 47
MOV B,A
00C8 7C
MOVA.H
00C9 FE17
CPI 17H
00CB DAC400
JC 00C4H
00CE E1
POPH
00CF 2B
DCX H
00D0 C9
RET
00D1 FE7F
CPI7FH
00D3 D2CF00
JNC 00CFH
00D6 07
RLC
Comments
The following CNTL
key functions are only for
TRANSMIT mode
Checking whether we were
in the TRANSMIT mode
37
Addr. Opcode
Label
00D7 77
00D8 C9
Mnemonics
Comments
Addr. Opcode
MOVM,A
RET
0156
0159
015A
015D
015E
0161
0162
0163
0164
0165
0168
DISPLAY SUBROUTINE:
00E0 0E06 DISPLAY:
MVI C,06H
00E2 1A
LDAX D
00E3 D320
OUT 20H
00E5 13
INX D
00E6 OD
DCR C
00E7 C2E200
JNZ 00E2H
00EA CDCOO1
CALL DELAY2
00ED CDC001
CALL DELAY2
00F0 C9
RET
38
Label
217017
46
CD7001
05
C25A01
Fl
0F
0F
0D
C22501
C32101
Mnemonics
Comments
LXI H.1770H
MOVB.M
CALL DELAY1 Waiting
DCRB
JNZ015AH
POPPSW
RRC
RRC
DCRC
JNZ 0125H
JMP 0121H
DELAY1 SUBROUTINE:
0170 E5 DELAY1:
PUSH H
0171 21CF01
LXIH.01CFH
0174 2B
DCXH
0175 7C
MOVA.H
0176 B5
ORAL
0177 C27401
JNZ0174H
017A E1
POPH
017B C9
RET
KEYBOARD SUBROUTINE:
0180 AF
KEYBOARD: XRAA
Updating mode and positing
data
0181 325017
STA 1750H
0184 218001
LXIH.0180H
0187 225117
SHLD 1751H
018A 11E203
LXI D.03E2H
Displaying message
018D CDE000
CALL DISPLAY trAnSf for indicating the
TRANSMIT mode
0190 31FF17
LXI SP.17FFH
0193 210610
LXIH.1006H
Entering keyboard data to
the RAM
0196 11FBFF
LXI D.FFFBH
0199 19
DADD
019A 0E06
MVI C.06H
019C 1603
MVID.03H
019E 5E
MOV E,M
019F 1A
LDAX D
01A0 D320
OUT20H
01A2 23
INX H
01A3 0D
DCRC
01A4 C29E01
JNZ 019EH
01A7 7C
MOVA.H
01A8 FE17
CPI17H
Checking end of mem.
01AA DAB301
JC 01B3H
01AD 11E803
LXI D.03E8H
01B0 CDE000
CALL DISPLAY If mem. is over display
MoVEr
01B3 FB
El
01B4 76
HLT
01B5 C39601
JMP 0196H
DELAY2 SUBROUTINE:
01C0 0E9F
DELAY2: MVIC.9FH
01C2 CD7001
CALL DELAY1
01C5 0D
DCRC
01C6 C2C201
JNZ 01C2H
01C9 C9
RET
PLAY SUBROUTINE:
01D0 1603 PLAY:
01D2 210510
01D5 F3
01D6 23
01D7 7C
MVI D.03H
LXI H.1005H
DI
INXH
MOVA.H
Wait approximately
400 msec
Addr. Opcode
Label
Mnemonics
01D8 FE17
CPI 17H
01DA D2EB01
JNC 01EBH
01DD 5E
MOVE.M
01DE 1A
LDAX D
01DF D320
OUT20H
01E1 CDC001
CALLDELAY2
01E4 FB
El
01E5 7E
MOVA.M
01E6 FECC
CPICCH
01E8 C2D501
JNZ 01D5H
01EB C3B301
JMP01B3H
Comments
Addr. Opcode
0258
OF
RRC
0259
OF
RRC
025A
B2
ORA D
025B
4F
MOVC,A
025C
ID
DCR E
025D
C22902
JNZ 0229H
0260
El
POP H
0261
71
MOVM.C
0262
23
INX H
0263 C32302
JMP 0223H
0266
79
MOVA.C
0267
OF
RRC
0268
OF
RRC
0269
F6C0
ORIC0H
026B
ID
DCR E
026C
CA7402
JZ 0274H
026F
OF
RRC
0270
OF
RRC
0271
C36B02
JMP 026BH
0274
El
POP H
0275
77
MOV M,A
0276
0638
MVI B.38H
Comparing obtained
0278
21FD02
LXI H.02FDH
moree
code data with
lookup data
027B
3A8017
LDA 1780H
027E
23
INXH
027F
23
INXH
0280
23
INX H
0281
23
INXH
0282
05
DCR B
0283
C29102
JNZ 0291H
If given
morse code is
invalid, display V
0286
FE04
CPI 04H
0288
DA1D02
JC 021DH
028B
215C03
LXI H.035CH
028E
C39F02
JMP 029FH
0291
BE
CMPM
0292
C27B02
JNZ 027BH
0295
3A8117
LDA 1781H
0298
23
INXH
0299
BE
CMP M
029A
2B
DCX H
029B
C27B02
JNZ 027BH
029E
2B
DCX H
029F
Dl
POPD
02A0
7A
MOV A,D
02A1
FE17
CPI 17H
Checking end of mem.
02A3
D2D102
JNC 02D1H
02A6
7E
MOVA.M
02A7
D320
OUT 20H
Display
the character
02A9
7D
MOV A,L
Store
data, corresponding
02AA
12
STAXD
to
displayed character, in
the RAM
02AB
0600
MVI B,00H
02AD
217017
LXI H.1770H
02B0
7E
MOVA.M
02B1
07
RLC
02B2
23
INX H
02B3
86
ADD M
02B4
D2B802
JNC 02B8H
02B7
04
INRB
02B8
4F
MOV C,A
02B9
0B
DCX B
02BA
CD7001
CALL DELAY1
02BD
20
RIM
02BE
07
RLC
02BF
DA1B02
JC 021BH
Check
for space between
02C2
78
MOVA.B
words
02C3
B1
ORAC
02C4
C2B902
JNZ 02B9H
02C7
AF
XRAA
02C8
D320
OUT 20H
Giving
space in display
02CA
13
INX D
02CB
3EC8
MVI A,C8H
02CD
12
STAX D
Store
the apace data in the
RAM
02CE
C31B02
JMP021BH
Repeat
the process
02D1
76
HLT
Halt
RECEIVE SUBROUTINE:
0200 3EFF RECEIVE:
MVIA.FFH
Updating mode and position
data
0202 325017
STA 1750H
0205 210002
LXI H,0200H
0208 225117
SHLD 1751H
020B 11EE03
LXI D.03EEH
020E CDE000
CALL DISPLAY Display message rECEIE
0211 11FA03
LXI D.03FAH
0214 CDE000
CALL DISPLAY Clear the display
0217 FB
El
0218 110510
LXI D.1005H
Morse code aquisition
021B 13
INXD
021C D5
PUSH D
021D 218117
LXIH.1781H
0220 3600
MVI M.00H
0222
2B
DCX H
0223
E5
PUSH H
0224
0E00
MVI C,00H
0226
1E04
MVI E.04H
0228
61
MOVH.C
0229
0600
MVI B.00H
022B
CD7001
CALL DELAY1
022E
04
INR B
022F
20
RIM
Reading the SID pin
0230
07
RLC
0231
DA2B02
JC 022BH
0234
24
INR H
0235
3A7117
LDA 1771H
0238
BC
CMPH
Checking for the space
between characters
0239
DA6602
JC 0266H
023C
78
MOV A,B
023D
FE02
CPI02H
023F
DA2902
JC 0229H
0242
2600
MVI H.00H
0244
1640
MVI D,40H
0246
3A7117
LDA 1771H
0249
OF
RRC
024A
B8
CMPB
Checking for dot and dash
024B
D25702
JNC 0257H
024E
7A
MOV A,D
024F
07
RLC
0250
57
MOV DA
0251
00
NOP
0252
00
NOP
0253
00
NOP
0254
00
NOP
0255
00
NOP
0256
00
NOP
0257
79
MOVA.C
Constructing morse code
data
Label
Mnemonics
Comments
39
Construction
PCB designed particularly for this
circuit (as given in Fig. 2, with component layout shown in Fig. 3) is needed
for making this circuit. IC bases are
preferred for fixing the ICs. For continuous operation, provide a heat
sink for the regulator IC. Since this is
based on time comparison, it is necessary to use the correct frequency crystal
(6.144 MHz).
Fig. 3: Component layout for the PCB
Readers comments:
Q1. In the software part of this project
some steps are missing, due to which
the processor is not functioning properly.
40
is absolutely correct. If the same conditions still persist, the problem is with
your hardware.
A3. It is possible to add a CRT controller to 8085 by changing the firmware. You
can use the easily available 6845 CRT
controller. The article based on this IC
was published in the book Learn to Use
Microprocessors by K. Padmanabhan published by EFY. The project Video Display
Add-On Board for the 8085 Kit based on
9364 chip was published as a technical
article on page 21 in EFYs Aug. 83 issue.
The same is also reproduced in Chapter XI
of the above titled book.
41
Access-Control System
bhaskar banerjee
If any one or more of the six consecutive keyboard-entered digits do not conform to the predetermined code, an alarm
generator sounds the alarm to indicate
wrong code. If the result of final comparison of all the six digits is correct, a mono
multivibrator, serving as lock driver for
opening/closing a lock, gets activated for
a fixed preset duration.
The detailed description of individual
units, as shown in Fig. 2, is as follows:
Keyboard and keyboard encoder.
Description
The keyboard consists of 16 push-to-on
The block diagram of the system shown
type keys in a 4x4 matrix format. It can be
in Fig. 1 provides an overall view of its
made using data switches or one can use
composition and working. A 16-digit keymembrane-type keyboard at some extra
pad is used for sequentially entering six
cost. The keys should be numbered in Hex
Hex numbers, which are decoded by the
as shown in the figure.
keyboard encoder into their equivalent
The encoder is built around 74C922
binary numbers and stored in separate
(IC1), which is a 16-key keyboard encoder.
data latches in binary form.
It generates a 4-bit binary number correThe first three Hex numbers are used
sponding to the key pressed; for example,
as an address for an EPROM, which
shorting pin 1 (R1) with pin 11 (C1) generstores a predetermined code at prefixed
ates the binary equivalent of digit 0.
addresses allocated to separate users or
Whenever a key is pressed, the signal
used for separate purposes. The code data
generated by this encoder IC is available
output from EPROM (one byte/two nibbles)
as logic high output at pin 12 and is used
at a specified address is compared with
to activate a piezo-buzzer (PZ1) via tranthe next two keyboard entries in two 4-bit
sistor T1 (BC547). The continuous tone of
comparators that are cascaded together.
PZ1 indicates that a key is pressed. The
The resultant outputs of these two
key-pressed signal is also used to store
comparators are connected to the next
data in the latches.
comparator stage, in which the last
The output from pin 12 is connected to
keyboard digit (i.e. sixth Hex digit) is
pin 13 of IC5 (CD4017 counter) for clockcompared with the system code selected
ing at its trailing edge. On each clocking,
by DIP switch.
counter IC5 advances by one count and
thereby stores
data in separate
data latches one
after the other.
IC1 also holds
the last number
at its output
pins.
Data latches. There are
six data latches
formed from
three CD4508
ICs (IC2 through
Fig. 1: Block diagram of the access-control system
42
IC4). Each CD4508 contains two completely independent 4-bit data latches having a
common power supply. The 6-digit code is
stored in these latches.
The 4-bit data bus originating from
the output of IC1 is connected to data
Parts List
Semiconductors:
IC1
- 74C922 16-key encoder
IC2-IC4
- CD4508 dual 4-bit latch
IC5
- CD4017 decade counter
IC6
- 27C32 EPROM
IC7-IC9
- CD4063 4-bit magnitude
comparator
IC10
- CD4528 dual retriggerable
monostable
IC11
- NE555 timer
IC12
- CD4069 Hex inverter
T1-T4
- BC547 npn transistor
T5
- SL100 npn transistor
T6
- 2P4M SCR
D1, D2, D4 - 1N4148 switching diode
D3
- 1N4007 rectifier diode
LED1-LED3 - Red LED
LED4
- Green LED
Resistors (-watt 5% carbon, unless stated
otherwise)
R1, R3, R4,
R15,
- 10-kilo-ohm
R2, R5, R8,
R21, R22 - 4.7-kilo-ohm
R6
- 18-kilo-ohm
R7
- 10-mega-ohm
R9
- 2.2-mega-ohm
R10, R11,
R17-R20 - 1-kilo-ohm
R12-R14 - 470-ohm
R16
- 47-kilo-ohm
R23
- 47-ohm
Capacitors:
C1, C7, C8,
C12
- 0.1F ceramic disc
C2
- 2.2F, 25V electrolytic
C3, C5, C6,
C9, C10
- 22F, 25V electrolytic
C4, C13
- 47F, 25V electrolytic
C11
- 470F, 25V electrolytic
Miscellaneous:
S1
- Push-to-on switch
S2
- Push-to-off switch
- 4x4 keyboard matrix
PZ1
- Continuous tone-type piezobuzzer
RL1
- 9V, 200-ohm, 1 C/O relay
S3
- 4-way DIP switch
- Regulated 5V power supply
etc
43
44
Construction
Data input/output pins are to be connected with utmost care because improper connection will force the system
to work unpredictably. Also, care should
be taken while using IC1, as it is quite
costly. The points marked Vcc should be
connected to the power supply directly.
The system can be built on a generalpurpose PCB or a veroboard. A singlesided PCB layout for the circuit is, however, shown in Fig. 3, with its component
layout shown in Fig. 4.
Operation
Readers comments:
Q1. The construction project is very interesting and useful. However, how memory
dump is to be programmed in EPROM
IC6 is not given. Though different people
would like to program different codes, at
least one example should have been given
to illustrate this.
45
Telephone Line-Interfaced
Generic Switching system
ajay subramanian and nayantara bhatnagar
Description
The block diagram of the system is shown
in Fig. 1. It consists of the following three
units:
1. The interface and control unit
2. The authentication unit
3. The main device selection and
switching circuit
The interface and control unit provides
control signals and BCD data to the other
two units. It handles interfacing with
46
functions:
Detects an incoming call. Counts
up to a programmable number of rings
and then simulates handset off-cradle
condition.
Once off-hook, it must decode DTMF
signals on the telephone line within a
fixed time and generate appropriate BCD
data and StD pulse for indicating a valid
data condition. The positive edge of this
StD pulse is used for subsequent operations.
Generates a universal Reset signal
that includes a time-out and a power-onreset. This Reset signal is an active low
pulse of programmable duration.
Generates a hang-up (HUP) signal
on expiry of the time-out and uses this
signal internally to take the device offline.
When a call arrives, a 75-80V AC ring
signal is available on the lines. This ring
signal is coupled to optocoupler Opto-1
(MCT2E) via DC blocking capacitor C1
and current-limiting resistor R1. LED1
serves as a ring indicator and as an antiparallel diode to the in-built LED of the
optocoupler for working with AC ring
signal. The output of optocoupler triggers
timer IC1, which is configured as a monostable retriggerable flip-flop to provide a
pulse output to be used as a clock for decade counter IC2 (CD4017) with decoded
outputs.
47
The power-on-reset
circuit comprises resistor
R5 and capacitor C10. It
resets the device when
power to the circuit is
switched on. Since it is low
for some time after power
is switched on, it resets the
flip-flop (IC3A) and decade
counter CD4017 (IC2). Fig.
4 shows the relative timing waveforms pertaining
to this unit.
LED2 through LED5
are used to show the BCD
output for the DTMF code
received over the telephone
lines (decoded after relay
RL1 has energised).
The authentication
unit (Fig. 3). This circuit
receives BCD data and
StD control signal initially.
It outputs authorisation
(Auth) signal only when
the correct security code
has been entered. Control
pulses can reach the main
switching unit only when
this signal is low (implying
that authentication of the
four digit code sent over the
telephone lines has been
verified).
Note that when a
wrong code is received,
IC9A clocks IC9B and a
low is latched by IC9B. As
a result the Q2 output of
IC9B goes high and saturates transistor T2 in the
interface and control unit
and thereby shunts capacitor C10 to ground, thus
simulating a power-on-reset
condition. As a consequence
CLR signal (at output of
IC6A) is activated and
the line interface circuit is
initialised. Also, since the
monoshot IC5 is cleared,
Reset goes low (active) and
resets the authentication
unit also. When the Authentication unit is initialised, IC9A and
9B are set, which causes Q2 output of IC9
to be reset, and thus transistor T2 is cut off
again. Capacitor C10 now charges through
resistor R5 as it did when the circuit was
initially switched on.
The Reset signal is initially low. As
48
pared and the result is latched, O4 output of CD4017 (IC13) goes high, and as
a result, IC12A is clocked and latches
a high at its Q output and the input to
inverter gate IC11E and D2 pin of flipflop IC12B goes high. Simultaneously, signal at the output of gate IC11E goes low.
This low signal at pin 12 of IC10D AND
gate disables the gate from accepting any
further StD pulses. So the authentication
unit is bypassed and subsequent BCD
data and StD pulses are transmitted to
the main switching unit. The ESt pulse
associated with fifth BCD data, latches
the high signal at D2 input of IC12 to
its Q2 output, while its Q2 output (Auth)
goes low to activate the main device selection and switching unit at the start of
fifth code.
When the Reset signal goes high,
the output of inverter gate IC11F goes
low. This enables IC13 (CD4017) again
by taking its MR pin low. At the same
time, the high Preset signal at both the
flip-flops (IC9A and IC9B) keeps them
enabled.
When the code is not entered within
preset period, the Reset signal goes low
on expiry of the time-out period, the
circuit again goes back to its initial state
by taking the preset pin on the flip-flops
(IC9A and 9B) low and MR pin of CD4017
(IC13) high. Simultaneously, IC12A is
cleared (its Q output goes low). As a
result, Auth output goes high and the
main device selection and switching
circuit is initialised and deactivated.
Since the initialised state is maintained
as long as the Reset signal is low, any
possibility of noise triggering is eliminated.
Main device selection and switching unit (Fig. 6). This circuit receives
StD control signal after a successful authentication of the four-digit code by the
authentication unit. The AUTH and its
inverse AUTH signals available on code
authentication are used in this circuit for
enabling various chips such as IC23 and
IC24 (74LS195), IC25 (CD4017), IC27
through IC29 (74LS154), and StD gate
IC19C (7408).
A combinational logic circuit, comprising three 3-input NOR gates inside 7427
(IC16) and two inverter gates (IC17B and
17C) of 7404, has been used to discriminate between an address (numeric digit)
and a switching signal (* for on and #
for off). DTMF digit switches 1 through 9
and 0 (0 on the telephone keypad stands
for decimal 10 and the decoded output
ELECTRONICS PROJECTS Vol. 22
49
50
remote telephone keypad is depressed immediately after AUTH signal goes active
low, R_EN signal goes to logic 1 (while
S_EN is logic 0). As a result, Std pulse
passing through NAND gates IC18B and
IC18C clocks IC25 with its leading edge.
IC25 is in reset condition before code authentication due to high AUTH signal,
and its Q0 (pin 3) is high. On clocking,
shifting of high state from Q0 to Q1
(pin 2) enables AND gate IC19B, while
AND gate IC19 is still disabled. Thus the
trailing edge of RCLK passes through
IC19B to latch the MT8870-decoded data
corresponding to the mentioned numeric
key depression, which is available at the
input of group select register IC24, at its
output. This is the group select address.
The group select address is applied
to the address lines of 4-line-to-16-line
decoder IC29 (group selector). In the
normal telephone keypad, we use only
ten numeric keys (1 through 9 and 0)
and hence only ten outputs (Y1 through
Y10) are available from IC29. The other
six outputs Y0 and Y11 through Y15 are
not used. Thus we can select any of the
groups 1 through 10 via outputs marked
Y1 through Y10 of IC29.
The output corresponding to the address present at IC29s input pins goes
low (active). This low (active) output
selects/enables another IC 74LS154
representing the corresponding group.
(Please note that this is only a demo version circuit, wherein only two groups, out
of ten possible groups, can be accessed
using IC27 and IC28. Pin 19 of IC27 and
IC28 can be connected to any of the group
select pins Y1 through Y10 of IC29, as
desired. Once connected, the specific
group numbers will get allocated to IC27
and IC28.)
Device selection within the selected group. The next DTMF number
key depression (i.e. the sixth after
energisation of relay RL1 or the second
after the 4-digit authentication code)
causes shifting of high on pin 2 (Q1) of
IC25 to pin 4 (Q2) in synchronism with
the leading edge of StD pulse clocking
IC25. As a result, AND gate IC19A
is enabled while AND gate IC19B is
disabled.
The trailing edge of delayed StD
pulse (RCLK) causes the data corresponding to the mentioned numeric key
to be latched at the output of device
select register IC23. This device select
address is applied to address input pins
of all group ICs (IC27 and IC28, here) in
Parts list
Semiconductors:
IC1
- NE555 timer
IC2, IC13, IC25 - CD4017 decade counter
IC3, IC9, IC12,
IC21, IC22
- 7474 dual D flip-flops
IC4
- MT8870 DTMF decoder
IC5
- 74123 dual retriggerable
monostable multivibrator
IC6
- 7411 triple 3-input AND
gates
IC7
- 7432 quad OR gates
IC8
- 74LS85 4-bit magnitude
comparator
IC10, IC19
- 7408 quad 2-input AND
gates
IC11, IC17
- 7404 hex inverters
IC14, IC15
- 74LS244 octal buffers/line
drivers
IC16
- 7427 triple 3-input gates
IC18
- 7400 quad 2-input NAND
gates
IC20
- 74125 quad bus buffers
IC23, IC24
- 74195 4-bit parallel access
shift registers
IC26
- 7414 hex Schmitt inverters
IC27-IC29
- 74LS154 4-line to 16-line
decoders
Opto-1
- MCT2E opto-coupler
T1,T2
- 2N2222 npn transistor
D1,D2
- 1N4001 rectifier diode
D3, D4
- 1N4148 switching diode
ZD1, ZD2
- Zener diode 5.1V
LED1-LED10 - Red LEDs
Resistors (1/4W 5% carbon, unless specified
otherwise)
R1, R2, R5, R29 - 10-kilo-ohm
R3, R12, R30 - 100-kilo-ohm
R4
- 220-ohm
R6-R9
- 51-kilo-ohm
R10
- 39-kilo-ohm
R11
- 56-kilo-ohm
R13
- 330-kilo-ohm
R14-R18
- 1.2-kilo-ohm
R19
- 20-kilo-ohm
R20, R27, R28 - 1-mega-ohm
R21-R24,
R31-R34
- 470-ohm
R25,R26
- 1-kilo-ohm
R31-R34
- 4.7-kilo-ohm
Capacitors:
C1
- 0.47F, 160V polyester
C2,C4-C6
- 0.01F ceramic disc
C3, C9, C13
- 10F, 16V electrolytic
C7, C8, C14
- 0.1F ceramic disc
C10
- 100F, 16V electrolytic
C11, C12
- 47F, 16V electrolytic
Miscellaneous:
Xtal
- 3.57946MHz quartz crystal
RL1
- Relay 6V, 100-ohm, 1 C/O
- 5V, 1A regulated power
supply
- Berg stick/FRC connectors
- Ribbon cable etc.
51
52
53
at various points.
The authentication
circuit is also selfcontained and may
be assembled and
debugged independently.
H o we v e r, ca re
must be taken while
assembling the interface and control unit.
The ASIC must be
assembled first and
tested for proper operation and output
levels, followed by rigging and testing of
monostable multivibrators in the 74123.
Readers comments:
We have the following queries regarding
the project:
1. The interface and control section. In
IC2 (CD4017), where would be pins 3, 2,
4, 7, 10, 1, 5, 9, 6, 11, and 12 connected?
Also show the connections of available pin
11 (RST) in IC5 (74123).
2. The authentication section. Show
the connections of pins 1, 5, 6, 9, 10, 11,
and 12 in IC13 (CD4017).
3. The selection and switching unit.
(a) Pins 2 to 11 (Y1 to Y10) of IC27
(74LS154) and IC28 (74LS154) are
connected in parallel. Pins 2 and 11 of
IC27 are connected to pins 1 and 4 of
IC20 (74LS125), respectively, and pins
2 and 11 of IC28 are connected to pins
10 and 13 of IC20 (74LS125), respectively. Pins 2 to 11 (Y1 to Y10) of IC29
(74LS154) are connected to the normal telephone keypad. Are all these connections
correct?
(b) After entering IC16 (7427), four
data lines D0 through D3 go to IC23
(74LS195) and thereafter IC24 (74LS195)
and then go out as shown in the PCB
layout. Please explain which data goes in
IC16 and where does it output in IC24. Are
these connections related to PCB1?
Ranjit Singh
Amravati
54
Programmable
Melody Generator
Vyjesh m.v.
Basics of music
Generally, an electronic organ or piano
is played with both hands. Now imagine
playing a 32-key organ with a single
finger. In that case, only one key can
be pressed at a time and hence only one
note can be heard. Considering that the
time taken by the finger to move from one
55
EPROM-/RAMbased melody
generator
56
EPROM-based circuit
57
58
necessary
in between
the notes
to make a
tune sound
perfect. The
break period,
termed as
no sound, is
obtained by
outputting
hex value
00 from the
EPROM.
During this
input to the
two 1-of-16
decoder ICs
(IC4 and
IC5), the Q0
outputs of
both decoder
ICs go high.
Since
Q0 outputs
are not connected to the
tone oscillator circuit
(or anywhere
else), no note
or sound is
Parts List
(Common to EPROM, RAM and ROM)
Semiconductors:
IC101
- NE555 timer
IC201
- 7805 +5V regulator
D101-D128
- 1N4007 rectifier diode
D201-D204
- 1N4001 rectifier diode
Resistors (-watt 5% carbon, unless otherwise stated)
R101
- 5-kilo-ohm
VR101-VR128 - Refer Table I
VR129
- 10-kilo-ohm preset
Capacitors:
C101
- 0.1F ceramic disc
C102
- 0.22F ceramic disc
C103
- 10F, 12V electrolytic
C201
- 100F, 25V electrolytic
C202
- 1000F, 16V electrolytic
Miscellaneous:
LS101
- 8-ohm, 4W loudspeaker
X201
- 230V AC primary to 0-6V,
500mA sec. transformer
(for EPROM and ROM)
Semiconductors:
IC1
- NE555 timer
IC2
- CD4040 counter
IC3
- (1) 2732 EPROM
- (2) 6116 RAM
IC4, IC5
- CD4514 1-of-16 decoder
IC6
- CD4011 quad NAND
gate
T1-T8
- BC547 npn transistor
D1-D64
- 1N4007 rectifier diode
LED1-LED20 - Red LED
Resistors (-watt 5% carbon, unless otherwise stated)
R1, R7
- 10-kilo-ohm
R2
- 22-kilo-ohm
R3, R8
- 470-ohm
R4
- 1-mega-ohm
R5, R9-R16
- 1-kilo-ohm
R6
- 2.2-kilo-ohm
R17, R18
- 100-ohm
R19
- 330-ohm
VR1
- 100-kilo-ohm preset
Capacitors:
C1
- 22F, 12V electrolytic
C2
- 0.1F ceramic disc
C3
- 0.01F ceramic disc
C4
- 0.22F ceramic disc
Miscellaneous:
S1
- Push-to-off switch
S2-S5
- Push-to-on switch
S6
- SPDT switch
J1, J2
- Jumper
K1-K5
- Connectors
breaks/no
sound periods) for the
first tune
are stored,
a stop-clock
data (10 hex)
is stored at
the end of
tune-1 that
stops after
the first
tune. Now
on pressing
push-to-off
switch S1
momentarily, the clock
advances
to start the
second tune
(tune-2).
Thus each
tune is made
to end with
10 hex code
for stop signal. When
all tunes of
the doorbell
are exhausted, the last
stop-clock data is followed by a reset data
(01 hex), so that one goes to the start of
tune-1 (on reset), and the cycle repeats.
For instance, the hexadecimal value
of SA is 70H (refer Table I) or binary
0111 0000, which means that binary
data at the input of IC4 and IC5 is 0000
and 0111, respectively. As a result, only
Q7 output of IC5 goes high. This output
brings the associated preset resistor
tuned to the frequency of SA (595 Hz)
into the oscillator circuit. Simultaneously,
data 0000 at the input pins of IC4 causes
its Q0 pin to go high. But since Q0 is left
open, there is no
effect.
Similarly, when
binary data corresponding to note SA
(05 hex) is output
by the EPROM, Q5
of IC4 and Q0 of
IC5 go high. The Q5
output of IC4 brings
into circuit the corresponding preset
tuned to the frequency of SA (1190 Hz).
The Q0 output of IC5
has no effect, as Q0
is open. In this way
both the ICs (IC4 Fig. 12: Flow chart
and IC5) function in of car-reverse horn
accordance with data
at their inputs to produce the corresponding notes.
Power supply. The circuit shown in
Fig. 11 is used to obtain the regulated 5V
DC using IC 7805.
The actual-size, single-sided PCB
layouts for the circuits of Figs 2 and 3
(common for EPROM and RAM versions
of the melody generator) are shown in
Figs 6 (PCB-1) and 7 (PCB-2), respectively. The component layouts for PCBs of
Figs 6 and 7 are shown in Figs 8 and 9, respectively. The power supply circuit (Fig.
11) has also been integrated in PCB-2.
This circuit can be used as a doorbell, or even as a car-reverse horn. The
flow chart for car-reverse horn is shown
in Fig. 12. The necessary connections
are shown in Fig. 13. When the circuit
is used as a car-reverse horn, data flows
from the next address location to where
it stopped earlier.
Preset adjustment
Connections to join the two PCBs should
be made only after the adjustment of presets on PCB-2 using any of the following
three procedures:
Using frequency
meter. Assemble all the
components of PCB-2.
Connect a probe to the
Vcc using a crocodile
clip at the other end.
Switch on the 5V power
supply and connect the
output from the tone
oscillator on the PCB
to the frequency meter. Now connect the
probe to the anode
ELECTRONICS PROJECTS Vol. 22
59
choose the main notes in the middle octave. Connect the probe to the
respective diode of SA and tell the
musician to adjust the variable resistor
to the frequency of SA. Now connect
the probe to the respective diode of RE
and adjust the variable resistor to the
frequency of RE, and so on. After adjusting main notes, adjust half notes.
Fig. 13: Wiring connections for car-reverse horn
(In Table I, music notes shown in small
letters are half notes.) This method will
of diode D101 and adjust preset resisbe successful only if the musician is well
tor VR101 for 446 Hz (refer Table I).
trained in music.
In this way all the variable resistors
Using digital multimeter. First,
are adjusted one by one by connecting
assemble only preset resistors VR101
+5V from the probe to the corresponding
through VR128. Now adjust the variable
diodes.
resistors to their respective values (shown
With the help of a musician. You
in column 6 of Table I) using a digital
can seek the help of a musician if you
multimeter. Use the variable resistors
dont have access to a frequency meter or
with maximum value as given in column
a digital multimeter. Connect the output
7 of Table I. You can also use the values
from the tone oscillator to the speaker
shown in the circuit diagram of Fig. 3, but
and switch on the power supply. First,
Table I
Music
note
Frequency
Data
Hex
of music
character
value
note
(Hz)
Variable
resistor
(preset)
number
Variable
resistor
in-circuit
value (ohm)
Maximum
value of
variable
resistor
Lower octave
Pa
dha
dha
ni
NI
446
1
472
2
500
3
530 a
561 b
20 vr101
30 vr102
40 vr103
50 vr104
60 vr105
8274
7740
7230
6744
6288
10k
10k
10k
10k
10k
595 c
70 vr106
630 d
80 vr107
668 e
90 vr108
707 f a0 vr109
749 g b0 vr110
794 h c0 vr111
841 i d0 vr112
891 j e0 vr113
944 k f0 vr114
1000 l
02 vr115
1062 m
03 vr116
1120 n
04 vr117
5850
5445
5055
4698
4356
4029
3726
3438
3165
2910
2655
2445
10k
10k
10k
5k
5k
5k
5k
5k
5k
5k
5k
5k
1190 o
1260 p
1335 q
1414 r
1498 s
1588 t
1682 u
1782 v
1888 w
2002 x
2122 y
2220
2016
1824
1644
1473
1308
1158
1014
876
747
624
5k
5k
2k
2k
2k
2k
2k
2k
1k
1k
1k
Middle octave
sa
re
re
ga
ga
ma
ma
pa
dha
dha
ni
ni
Upper octave
sa
re
re
ga
ga
ma
ma
pa
dha
dha
ni
no sound
Reset 01
stop-clock 10
60
adjusting the
variable resistors to lower
values in the
table may be
very tedious.
Any method
may be used to
adjust all the
variable resistors. But after
playing a tune,
it may be felt
that the tune
doesnt sound
proper, even if
it sounded right
with computer.
The reason can Fig. 14: LED indicator
be that the re- circuit
sistors were not
properly tuned or it may be due to
minute imperfections in output voltages
from IC4 and IC5. These imperfections
can be overcome by readjusting the resistors by the method given below.
The imperfections can only be adjusted when data from the EPROM is
heard. But, the notes of a tune will not
be in an increasing frequency sequence.
The sequence should be PA , dha , ----- to
----- DHA , ni . To do this, include at least
two sets of sequence data from Table I
with 2-3 bytes of gap in between successive sequences, after all the tunes, as
shown in the flowchart of Fig. 10. This
method of readjustment is used only to
prevent disconnection of PCB of Fig. 7
from PCB of Fig. 6 and tuning the resistors again and again.
Remove jumpers J1 and J2. Switch
on the power supply. Press switch S4
to provide clock pulses for IC2. Say, if
the EPROM contains 10 tunes, after the
tenth tune release S4. Now keep pressing
S2 momentarily until the first note of the
sequence (PA ) sounds. Now connect the
frequency meter at the speaker terminals
(disconnect speaker if necessary) and adjust VR101 if the value of the frequency
meter reading is not consistent with the
value in the Table I. Press S2 again to
adjust VR102, and so on. After the readjustment process insert jumpers J1 and
J2 and press S3 to reset IC2.
05 vr118
06 vr119
07 vr120
08 vr121
09 vr122
0a vr123
0b vr124
0c vr125
0d vr126
0e vr127
0f vr128
00
RAM-based circuit
The only difference between the EPROMand RAM-based circuits is the use of
RAM chip in place of EPROM and a key-
Appendix A
#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
#include <conio.h>
#include <ctype.h>
void play(char *str,int d);
void main()
{
int f,d=200;
char ch1[180],ch2;
clrscr();
printf(\n Enter delay value:);
scanf(%d,&d);
while(1)
{
printf(\n enter tune :);
scanf(%s,&ch1);
play(ch1,d);
a:ch2=getch();
if (tolower(ch2)==r)
{ play(ch1,d);
goto a;
}
if (tolower(ch2)==e)
exit(0);
}
}
void play(char *str,int d)
{
int i=0;
while(str[i]!=\0')
{
switch(str[i])
{
case1':sound(446);
break;
case2':sound(472);
break;
case3':sound(500);
break;
caseA:sound(530);
break;
caseB:sound(561);
break;
caseC:sound(595);
break;
caseD:sound(630);
break;
caseE:sound(668);
break;
caseF:sound(707);
break;
caseG:sound(749);
break;
caseH:sound(794);
break;
caseI:sound(841);
break;
caseJ:sound(891);
break;
caseK:sound(944);
break;
caseL:sound(1000);
break;
caseM:sound(1062);
break;
caseN:sound(1120);
break;
caseO:sound(1190);
break;
caseP:sound(1260);
break;
caseQ:sound(1335);
break;
caseR:sound(1414);
break;
caseS:sound(1498);
break;
caseT:sound(1588);
break;
caseU:sound(1682);
break;
caseV:sound(1782);
break;
caseW:sound(1888);
break;
caseX:sound(2002);
break;
caseY:sound(2122);
break;
case-:nosound();
break;
}
delay(d);
i++;
}
nosound();
}
61
62
location.
6. Repeat from step 2 onwards for the
next hex value programming.
7. After last data is entered, press
S3.
8. Keep S4 pressed to check all the
tunes that have been entered.
9. Connect jumper J1 if all tunes are
entered.
The data table (Table I), writing of
musical notes, conversion of notes to hex
values, preset-array alignment, and flow
charts for door-bell and car-reverse tune
are also applicable for the RAM version.
Now we shall study a programmable
melody generator using home-brewed
ROM.
There were only a few differences between the circuits of RAM- and EPROMbased programmable melody generators
and as such we could integrate the common portion of the two circuits into a
single schematic/PCB design. However,
ROM-based circuit
The circuit diagram of ROM-based melody generator is shown in Fig. 17. Here
timer NE 555 (IC1) is wired as an astable
ELECTRONICS PROJECTS Vol. 22
63
Operation
64
fashion. In this way one out of 100 transistors is switched on sequentially to produce
an output to drive the resistor-array tone
oscillator according to the tune data. Thus
when power is switched on, the tune is
produced.
Programming
65
nduction motors widely used in workshops, irrigation pump sets, etc require a 3-phase supply. Normally,
these motors are connected to 3-phase supply from electricity boards using thermal
bimetal relays and relay contactors. Thermal relays protect the motor from overload. Relay coils having hold-on contacts
with push-to-on and push-to-off switches
are used for activating and deactivating
the relay contacts.
Single-phasing, line dropout, and
reverse phasing are harmful for 3-phase
motors. In the event of line dropout and
single-phasing, the motor draws a heavy
current from the existing phases, and during phase reversal the motor simply rotates
in reverse direction. Further, an operator
(attendant) for switching on/off the motor
is always not possible, especially when the
motor has to be operated round the clock.
Also the protection provided by the thermal
relay in the starter assembly is inadequate,
since it involves some delay in activation.
Thus some damage to the windings of the
motor can take place, especially if overload
conditions occur frequently.
The circuit presented here incorporates the following features to overcome
all the above-mentioned problems:
Electronic sensing of phase sequence
with under-frequency cut-out.
Current sensing for single-phasing
prevention.
Current sensing for overload
cut-out.
Automatic starting/tripping.
Programmable timer with battery
backup to count the motors run time.
Latching circuit to prevent the
motor from frequently starting and tripping.
Easy operation with just two switches for time set and reset.
The phase-sequence detector protects
the motor before starting, while the
current-sensing circuit protects it during
running. This double protection makes the
motor operation really safe.
Circuit description
66
Parts List
Semiconductors:
IC1-IC3
- MCT2E optocoupler
IC4
- CD4027 J-K flip-flop
IC5, IC6
- NE555 timer
IC7, IC9, IC10 - CD4017 decade counter
IC8
- CD4060 14-stage counter
and oscillator
IC11
- 7805 5V regulator
D1-D30
- 1N4007 rectifier diode
ZD1, ZD2
- 3.3V zener diode
LED1-LED4
- Red LED
Resistors (1/4W 5% carbon, unless specified
otherwise)
R1-R3
- 100-kilo-ohm, 0.5 watt
R4-R6, R16,
R18-R23, R25,
R30, R31, R38,
R47, R49
- 4.7-kilo-ohm
R7, R24
- 27-kilo-ohm
R8-R10 R17,
R26, R29, R32,
R37, R39, R43,
R44, R46, R48,
R51-R53
- 10-kilo-ohm
R11, R28, R34 - 1-kilo-ohm
R12
- 220-kilo-ohm
R13, R41
- 1-mega-ohm
R14, R35, R36,
R45, R50
- 470-ohm
R15
- 470-ohm, 0.5 watt
R27
- 180-kilo-ohm
R33
- 2.2-kilo-ohm
R40
- 22-kilo-ohm
R42
- 82-kilo-ohm
VR1
- 4.7-kilo-ohm preset
VR2
- 47-kilo-ohm preset
Capacitors:
C1-C3, C6,
C13
- 0.1 ceramic disk
C4, C7, C11, C17 - 100F, 63V electrolytic
C5, C14-C16,
C18, C19
- 10F, 25V electrolytic
C8, C10, C12 - 47F, 25V electrolytic
C9
- 1000F, 63V electrolytic
Miscellaneous:
X1-X3
- Current-sensing transformers
X4
- 0-230V AC primary to
12V-0-12V, 500mA secondary transformer
S1
- On/off switch
S2
- SPDT switch
S3
- 7-way rotary switch
- 1.5V X4 battery
- Starter assembly
- Cabinet
67
68
start, pin 7 (Q3) goes high and transistor T13 gets forward biased. As a result,
CK pin 14 of IC10 is pulled low to stop
any further clock to the decade counter,
which thus gets latched and LED3 glows
to indicate the latched state of the counter.
Simultaneously, this low signal causes
transistor T2 to cut off and de-energise
relay RL1. Thus the motor cannot restart
automatically and only complete resumption of power can reset the latch.
Motor on-off timer. A timer is provided to
run the motor for a predetermined time. It counts
run time of the motor and thereafter switches off
the motor automatically. The signal from pin 11
(Q9) of IC7 is connected to the base of transis-
69
Fig. 4: Layout of cabinet for mounting transformer relays and the PCB
70
1. In Table II, the turns ratio of current transformers (CTs) is 12 for both 6HP
and 20HP motors. If the ratio is same, the
secondary currents of CTs work out to be
different, i.e. 1.8A for 20HP motor and
0.8A for 6HP motor.
2. In the phase-sequence indicator circuit, you have connected an RC (1-megaohm-0.1F) combination to the reset pin of
IC5 (NE555). In such a case, can the reset
pin get a high input.
Abhijeet S. Bhosle
Through e-mail
EFY: A1. 1. The starter comprises a contactor, an on button (N/O), and an off
button (N/C). The contactor in Fig. 1 of
the project uses three main N/O contacts
connected to R, Y, and B phases and one
auxiliary N/O contact, which is wired
as shown in Fig. 1. The contactor coil is
rated at 415V AC. At EFY, we used ML1
contactor from L&T to make the starter
assembly.
2. You can manually operate the starter by making use of on and off buttons.
In automatic operation you dont have
to use these switches. The circuit does it
through relays RL1 and RL2 as per the
logic explained in the project.
The author, D. Dinesh replies:
A2. A heavy current flows through
the motor winding for a moment only. A
certain delay is provided by capacitors
C12 (47 F) and C17 (100 F) to account
for this.
A3. 1. One can use star-delta starter
71
Telephone
Remote Control
JUNOMON ABRAHAM
Operation
Instead of straightway proceeding with
the circuit description, we shall start
with the operation as this would help us
in understanding the circuit better. The
A2
L
L
L
L
H
H
H
H
Table I(a)
Input Output
A1
A0 Qn = addressed
L
L Q0
L
H Q1
H
L Q2
H
H Q3
L
L Q4
L
H Q5
H
L Q6
H
H Q7
Table I(B)
WR R
Q Q
addressed un-addressed
L
L
= DATA
hold
L
H
= DATA
L
H
L
hold
hold
H
H
L L
H = High; L = Low
72
operation is as
follows:
1. From the
local telephone,
dial the number
of the remote telephone to which
the circuit is connected. In a short
while you will
hear a musical
note indicating
that the circuit
connected to the
remote telephone
is active.
2. Now if you
want to switch
on a particular
relay/device, press
* button on the
telephone keypad
followed by any
one of digits 1
to 7 corresponding to the device/
relay number
that you desire to
switch on. The
switching on of
the relay will be
acknowledged/indicated by a musical note. Now
you may keep the
handset on the
cradle.
3. If you want
to switch off the
relays, press *
and them press
key for digit 8.
A musical note
is heard, which
indicated that all
the relays have
The Circuit
At the remote telephone end, the ringing
signal is detected by a high-input-impedance op-amp CA3140E that is wired as a
comparator. Since the op-amp output is
open-controller type, the output pin has
been pulled Vcc via 10-kilo-ohm resistor
R21, IC2 (NE556) comprised two timers
(NE555 type) that have been configured
as monostables.
PARTS LIST
Semiconductors:
IC1
- CA3140E op-amp
IC2
- NE556 dual timer
IC3
- CD4011 quad NAND gate
IC4
- CD406014-stage counter/
oscillator
IC5
- NE555 timer
IC6
- UM66 melody generator
IC7
- CM8870 DTMF-decoder
IC8
- CD4099 8-bit addressable
latch
IC9
- 7805 regulator +5V
T1
- BC548 npn transistor
T2-T9
- BC547 npn transistor (only
T2 and T6 shown)
LED1, LED2 - Green LED
LED3
- Yellow LED
LED4
- Red LED
D1, D2
- 1N4148 switching diode
D3-D10
- 1N4007 rectifier diode (only
D3 and D4 shown)
Resistors (all 1/4-watt, 5% carbon, unless
otherwise stated)
R1, R16. R17 - 150-kilo-ohm
R2. R21
- 10-kilo-ohm
R3
- 33-kilo-ohm
R4
- 680-kilo-ohm
R5
- 560-ohm
R6, R10
- 22-kilo-ohm
R7
- 1-mega-ohm
R8, R15
- 390-ohm
R9, R12
- 15-kilo-ohm
R11
- 270-ohm
R13, R14
- 3.3k-kilo-ohm
R18
- 330-kilo-ohm
R19, R22-R27- 4.7-kilo-ohm (R22-R27 not
shown in the figure)
R20
- 220-ohm
VR1
- 10-kilo-ohm preset
VR2
- 1-mega-ohm preset
VR3
- 220-kilo-ohm preset
VR4
- 470-kilo-ohm preset
Capacitors:
C1
- 0.22uF ceramic disk
C2
- 220uF. 10V electrolytic
C3
- 100uF, 10V electrolytic
C4, C5, C8
- 0.0luF ceramic disk
C6, C11, C12 - 0.1uF ceramic disk
C7
- 10uF, 10V electrolytic
C9
- 0.02uF ceramic disk
CIO
- 0.47uF, 100V polyester
Miscellaneous:
X PAL
- 3.58MHz crystal
RL-RL7
- 9V, 150-ohm 1C/0 relay (only
RL4 shown)
73
Readers comments:
Q1. In the circuit, if anyone makes a
call to the connected telephone line
and presses the consecutive switches,
the unauthorised person can also
switch the circuit on/off. Can the circuit
be altered such that switching on/off
the circuit is possible only after entering the authorisation code via telephone
keypad?
Devjyoti Biswas
Through e-mail
The author, Junomon Abraham,
replies:
A1. It is possible to incorporate the
facility as desired by you by using a microcontroller. The microcontroller will
receive the signal from DTMF decoder
and it will verify whether the correct password has been received. The same can
74
Alignment
1. Connect the circuit to the telephone
line.
2. Adjust preset VR1 so the ringing
pulse causes LED1 to flicker. For better
performance, set the voltage at pin 3 of
IC1 at approximately 2 volts.
3. The time required to activate energise the circuit is adjusted by preset VR3
with the help of LED2.
4. The time available for remote
switching action can be set by preset VR2
with the help of LED4. Indirectly, the setting of preset VR2 determines the charge
that will have to be paid to the telecom
department.
5. The period of the musical note can
be controlled by the adjustment of VR4
with the help of LED3.
be achieved with discrete ICs also, but
the microcontroller method is better
and flexible.
EFY: Please refer to Microcontroller-Based
Access Control System and Multichannel
Access Control System projects published
in October and November issues of EFY for
implementation of the password authentication schemes used in such a system.
Microcontroller-based
School Timer
U. B. Mujumdar
Description
The pin assignments and main features of
the microcontroller are shown in Fig.1 and
the Box, respectively. The complete system is divided into four sections, namely,
the time keeping section, the input section
(keyboard), the output (display, indicators,
and relay driving) section, and power supply and battery backup.
PARTS LIST
Semiconductors:
IC1
- 68HC705JIACP Microcontroller
IC2
- CD4532 8-bit priority Encoder
IC3
- 74LS138 3-line to 8-line decoder
IC4
- 74LS47 BCD-to-7-segment
decoder/driver
T1-T3
- BC547/BC147 npn transistor
T4-T7
- 2N2907 pnp transistor
D1-D7
- 1N4007 diode
ZD1
- 5.6V, 0.5 watt zener
Resistors (1/4-watt, 5% carbon, unless stated
otherwise)
R1
- 210-ohm, 0.5 watt
R2
- 27-ohm
R3, R12-R14,
R24-R-27
- 1-kilo-ohm
R4-R8
- 100-kilo-ohm
R9-R11,
R23, R29
- 10-kilo-ohm
R15-R22
- 47ohm
R28
- 10-mega-ohm
Capacitors:
C1
- 350F, 25V electrolytic
C2, C3
- 1F, 16V electrolytic
C4, C5
- 27F ceramic disk
C6
- 0.1F ceramic disk
Miscellaneous:
S1-S5
- Push-to-on switch (key)
S6
- On/off switch
PZ1
- Piezo buzzer
RL1
- Relay 12V, 300-ohm, 1C/O
XTAL
- 3.2768MHz AT-cut crystal
X1
- 230V AC primary to 12V-012V, 500mA secondary transforer
DIS.1-DIS.4 - LTS542 common-anode display
- 4 x 1.2V Ni-Cd cells
75
control register (TSCR) is used for deciding the interrupt rate. It can be programmed to give interrupts after every
16,384, 3,2768, 65,536, or 131,072 clock
76
inputs fast enough, your eyes see the result as a continuous display. With LEDs,
only one digit is lighted up at a time. This
saves a lot of power and also components,
making the system economical.
Generally, displays are refreshed at a
frequency of 50 to 150 Hz. Here, displays
are refreshed at a frequency of 100 Hz
(after every 10 ms). The display-refreshing
program is an interrupt service routine
program. BCD-to-7-segment decoder/driver 74LS47, along with transistor 2N2907,
and 3-line-to-8-line decoder 74LS138
are used for driving
common-anode displays.
In multiplexed
display, the current
through the segments is doubled to
increase the displays
brightness. 74LS47
is rated for sinking
a current of up to 24
mA. As the current
persists for a very
small time in multiFig. 3: Power supply circuit for the school timer
plexed display, it is
peaky and can be as
high as 40 mA per
segment.
The decimal
point is controlled individually by
transistor BC547,
as 74LS47 does not
support the decimal
point. PA0 and PA1
bits of port A are
used for controlling
the electro-mechanical relay and buzzer,
respectively.
Power supply
and battery
backup . T h e
microcontroller
and the associated IC packages
require a 5V DC
supply, while the
relay and the
buzzer require
12V DC supply.
A simple rectifier
along with zener
diode-regulated
power supply
is used. The microcontroller is fed
through a battery-
Software
Motorola offers Integrated Development
Environment (IDE) software for programming its microcontroller and complete
development of the system. The development board comes with Editor, Assembler,
and Programmer software to support
Motorolas device programmer and software simulator. The ICS05JW in-circuit
simulator and non-real-time I/O emulator for simulating, programming, and
debugging code for a MC68HC705J1A/KJ1
family device.
When you connect the pod to your
host computer and target hardware, you
can use the actual inputs and outputs of
the target system during simulation of
the code. You can also use the ISC05JW
software to edit and assemble the code in
standalone mode, without input/output
to/from pod. The pod (MC68HC705J1CS)
can be interfaced to any Windows 3.x-or
Windows 95-based IBM computer using
serial port.
The software for the timer has been
so developed that the system becomes
as user-friendly as possible. The main
constraint is read/write memory (RAM)
space. As mentioned earlier, the microcontroller has only 64 byte RAM. About
twenty bell operating timings are required
to the stored. So the efficient use of RAM
becomes essential.
The software routines for the timer,
along with their Assembly language codes,
are listed in a folder. (Note: This folder,
containing source code (.asm) and listing
file (.lst) will form part of the EFY-CD
provided with the August 2001 issue. As
files are quite large, it is not feasible to include them here.) Basically, the following
functions are performed by the software
program:
1. Initialisation of ports and the
timer.
2. Reading of keypressed data.
3. Storing of real time and bell
ELECTRONICS PROJECTS Vol. 22
77
Table I
Timer Status and Control Register (TSCR)
Bit
7 6
5
4
3
2
1
0
Signal
TOF RTIF TOIF
RTIE
TOFR RTIFR RTI
RTO
Reset
0 0
0
0
0
0
1
1
TOF: Timer overflow flag
RTIE: Real-time interrupt enable
RTIF: Real-time interrupt flag
RTI and RTO: Real-time interrupt select bit
RTI
RTO
Interrupt period
0
0 fop 214
For 3.2768 MHz crystal
0
1 fop 215
Frequency of operation (fop)
1
0 fop 216
= 3.7268x106/2 = 1.638x106MHz
1
1 fop 217
For RTI=RTO=0
Interrupt period = 10ms (100Hz)
Table II
Truth Table for Priority Encoder CD4532
Keys E1
Store
1
Digit Adv. 1
Bell
1
Time
1
Delete
1
D7
1 X
0 1
0 0
0 0
0 0
D6
X
X
1
0
0
D5
X
X
X
1
0
D4
X
X
X
X
1
timings.
4. Comparison of real time and bell
time. If the two match, the bell rings.
78
D3
X
X
X
X
X
D2
X
X
X
X
X
D1
X
X
X
X
X
D0
1
1
1
1
0
Q2
1
1
0
0
1
Q1
1
0
1
0
1
Q0
5. Display of data.
6. Time-keeping.
For a user-friendly system, the associated software is
required to perform
many data manipulation tricks and internal branching. The
operation and logic
can be understood
from the Assembly
language listings. The
software is mainly divided into the following modules:
Keyboard. When
a key is pressed,
CD4532 sends the
corresponding data.
After reading the
data, the controller
decides on the action.
Set/ Run key (S6)
is connected to port
PA4.
Bell. This part
of the program is
used for displaying
the bell operating
timings stored in the
RAM. The operating
timings are displayed
one by one with a
delay of 5 seconds
between tow consecutive timings.
Operating procedure
When the power is switched on, the
display shows 12.00. Two settings are
required in the timer: (a) setting of real
time and (b) setting of bell operating timings. For setting real-time clock Time
key is used.
Storing of real time. To store real
time, say, 05:35 p.m., flip Run/Set key
(S6) to set mode. The display will show
0.000. Press Time key. Further pressing of Time key will increment the data,
like 0.000, 1.000, 2.000, and thereafter
it will repeat 0.000, etc. To select the
digit, press Digit Advance. This stores
the present digit and the next digit is
Programming
There are two ways to program the
EPROM/OTPROM (one-time programmable ROM):
1. Manipulate the control bits in the
EPROM programming register to program the EPROM/OTPROM on a byteby-byte basis.
2. Program the EPROM/OTPROM
with Motorolas MC68HC705J in-circuit
simulator.
The author has used the second
method for programming the OTPROM.
An actual-size, single-sided PCB for
the circuits in Figs 2 and 3 is shown in
Fig. 4, with its component layout shown
in Fig. 5.
Readers comments:
Q1. I have assembled this circuit and
found that pins D0 and D1 of IC 4532
are not properly terminated. Will
this affect the keyboard data? Could
you please tell me from where I can
get the programmed controller?
Deep Saraf
Pune
Q2. Does the circuit work by just
assembling it with the IC (MC68HC705J1A) bought from the market,
or do we have to install a software
in it? From where can we get the
software? Give a detailed procedure
about how to install the software in
the IC.
Fig. 1: Modification of display circuit to operate 2.5cm/5cm display
A. Rajasekaran
Chennai
ment kit and IDE (integrated development
present circuit after omitting resistor R1.
Q3. The circuit can be modified as shown
environment) software available through
Somnath Bera
in Fig. 1 for using a brighter and bigger
Motorola distributors/Internet. The same
Through e-mail
display. You can use this modification for
can be purchased through our associate
A1 and 2. EFY: Leaving two of the unone set of 2.5cm (1-inch) or 5cm (2-inch)
KitsnSpares.
used input pins open will not affect the
display. For 5V supply, use 7805 reguA3. EFY: The circuit sent by the reader
circuit performance. The microcontroller
lator in place of the zener diode in the
had anomalies, which have been corrected.
has to be programmed using a develop-
79
He
re is an inexpensive circuit of
a digital capacitance-cum-frequency meter that can measure capacitance in the range of 1 pF to
10,000 F and frequency in the range of
0 to 100 kHz. With a slight modification,
this circuit can be used as an article counter or a time meter.
The principle. In a frequency counter, the unknown input is ANDed with a
known time-base period, so that the numbers of cycles passed over the time-base
period are counted. The time period can be
measured similarly if a known frequency
is gated with the unknown time period.
The same instrument can also determine
the time period of a periodic waveform or
the time elapsed between two events.
In this circuit, the capacitance measurement is nothing but the measurement
of the time between two events in a charging capacitor. An R-C (resistor-capacitor)
circuit works as a time generator and the
time is directly proportional to capacitance
value under suitable conditions. In the
present case the condition being satisfied
is that the time period (T) is equal to the
product RxC, where R is the value of the
charging resistor in ohms and C the capacitance value in farads.
Capacitance measurement. One
RxC time (seconds) is required to charge
a capacitor to 63 per cent (approximately
two-third) of its final value (applied voltage).
Consider the following example:
If C = 470 pF and R = 1 mega-ohm,
then one RC time period T = 470x106
seconds = 470 microseconds.
If we select the external frequency for
the counter as 1 MHz (time period = 1 microsecond), the counter progresses by one
count every microsecond and the counter
reading is 470, as the gate will be open for
470 microseconds for the above-mentioned
R and C under testing. We get the capacitance value directly from the readout of
the counter in picofarads.
Similarly, if we take R = 1 mega-ohm
80
Parts List
Semiconductors:
IC1
- NE555 timer
IC2, IC3
- CA3140 high-input impedance op-amp
IC4 (A-D)
- 7408 AND gate
IC5
- MM74C925 4-digit counter/7segment driver
IC6
- 74LS121 monostable MV
IC7-IC9
- 74LS90 decade counter
(divide-by-10)
IC10
- 7476 JK flip-flop
IC11
- 7805 regulator +5V
D1-D5
- 1N4007 rectifier diode
D6
- 1N4148 switching diode
LED1
- Red LED
T1-T5
- BC547B npn transistor
T6
- BS107 FET
Resistors (all watt, 5% carbon, unless
stated otherwise)
R1
- 2.2-kilo-ohm
R2, R5
- 1-mega-ohm
R3, R8, R24 - 4.7-kilo-ohm
R4, R20
- 10-kilo-ohm
R6, R7, R18
R21
- 1-kilo-ohm
R9-R16
- 220-ohm
R17
- 20-kilo-ohm
R19
- 100-kilo-ohm
R22, R23
- 560-kilo-ohm
VR1
- 1-kilo-ohm preset
Capacitors:
C1
- 15F, 25V electrolytic
C2
- 0.01F ceramic disk
C3
- 10nF ceramic disk
C4
- 10F, 250V electrolytic
C5
- 1000 F, 25V electrolytic
C6
- 100F, 25V electrolytic
C7, C8
- 22 pF ceramic
C9
- 0.01F ceramic
Miscellaneous:
X1
- 230 AC primary to 9-0-9 volt,
500mA secondary transformer
XTL
- 1MHz quartz crystal
S1-S5
- Slide switch
S6, S7
- Push-to-on switch
SR1-SR2
- Ganged 3-way, 2-pole rotary
switch
SR3-SR4
- Ganged 3-way, 2-pole rotary
switch
DIS1-DIS4 - LT543 common-cathode,
7-segment display
81
of 15-second duration. As soon as its output goes high, it switches off FET switch.
Simultaneously, it takes pin 5 of AND
gate IC4A high.
82
83
Fluid-Level Controller
with Indicator
bhaskar banerjee
The circuit
The main part of the circuit as shown in
Fig. 1 is dot/bar graph driver LM3914
(IC1). This IC is linearly scaled and is
intended for use in LED voltmeter application where the number of illuminated
LEDs indicates the value of input voltage.
It contains a floating 1.2V reference source
between pins 7 and 8 that may be used as
the reference input for the IC. The voltage
from the sensor is fed to the input of IC1
at pin 5.
The output of the sensor may vary
84
of which only
five are used
here. One may
use up to eight
outputs of IC1
since IC3 and
IC4 (4051) are
1-of-8 data selectors. (Note.
If 4067 were
used in place of
4051, all the ten
outputs could be
used. It is also Fig. 2: Optical sensor
possible to get more than ten outputs by
cascading LM3941 ICs.)
Using this circuit, the maximum
fluid level can be divided into four equal
parts giving five different level readings
from 0 (empty/low level) to 4 (full/high
level). Thus the five levels are empty, onefourth, half, three-fourth, and full. This
division is meant only for controlling the
level, while all levels including the intermediate levels are constantly displayed
on LED bar graph.
The lower level can be set anywhere
between 0 and 3 in steps of 1 and high
level can be set between 1 and 4. The
fluid level can be maintained between
any two levels by using IC3 and IC4.
IC3 selects the high level and gets inputs
of levels 1, 2, 3, and 4, while IC4 selects
the low level and gets inputs of levels 0,
Parts List
Semiconductors:
IC1
- LM3914 bar/dot display
driver
IC2
- 4069 hex inverter
IC3, IC4, IC5 - 4051 8-channel analogue
multiplexer
IC6
- 4520 dual binary counter
IC7
- 555 timer
IC8
- 4081 quad 2-input AND
gate
IC9, IC10
- 4511 BCD-to-7-segment
latch/decoder/driver
LED1, 3, 5, 7, 9 - Green LED
LED2, 4, 6, 8,
10, 11
- Red LED
Resistors (all -watt, 5% carbon unless
stated otherwise):
R1-R10,
R16-R31
- 470-ohm
R11-R15
- 10-kilo-ohm
R32-R33
- 47-kilo-ohm
R34
- 1-kilo-ohm
VR1
- 10-kilo-ohm preset
Capacitors:
C1, C2
- 22F, 25V electrolytic
C3, C4
- 10F, 25V electrolytic
C5
- 1F ceramic disk
Miscellaneous:
DIS1, DIS2
- Common-cathode
7-segment display
S1, S2
- Push-to-on switch
1, 2, and 3. All
other unused
input pins of
IC3 and IC4 are
grounded.
The selection takes place
according to the
binary word preset at the select
Fig. 3: Sensor usinput pins (pin
ing float operated
potmeter
9, 10, and 11)
of IC3 and IC4.
The required binary word is generated
by a dual divide-by-16 counter IC6 (4520).
(IC6 can be replaced by a divide-by-10
counter 4518, if desired.) Half of IC6 is
used for high level and the other half for
low level. IC6 gets its counting pulse from
a 555 timer (IC7) used for generation of
approximately 1Hz pulse train.
The high level is set by pressing switch
S1, while the low level is set by pressing
switch S2. IC6 is reset when the power is
Fig. 4: Actual-size, single-sided PCB layout for fluid-level controller with indicator
ELECTRONICS PROJECTS Vol. 22
85
Readers comments:
Q1. Please explain the detailed working
of the circuit. Also elaborate as to how to
arrange the LDR and filament lamp in the
tank? Please give details, how water level
will be controlled by LDR? Is there any
reflection of light from water surface?
Ajit
Through email
A1. EFY: The optical sensor section (LDR
and filament lamp) can be fixed rigidly on
the bottom side of the tank lid/cover using
M-seal or Fevi Quick or similar compound.
Alternatively, you may mount them on a
wooden strip and secure the strip to the
bottom side of the tank cover. The working of the LDR to control the water level is
explained below.
The light rays from the lamp are reflected from the water surface and fall on
LDR1. The orientation and the intensity
of light source are the deciding factors for
incidence of adequate reflected light on the
LDR for proper control of water level control.
No direct light should be allowed to fall
on the LDR. Fix a suitable opaque screen
closer to LDR, between the light source and
the LDR.
For any given orientation of the light
source and the position of the LDR, the
86
Circuit
Oscillator. In Fig. 2, Schmitt trigger input
NAND gate N1 of IC1 (CD4093), capaci-
87
88
f
1
0
0
0
1
1
1
0
1
1
Construction
Figs 3 and 4 show suggested actual-size,
single-sided PCB layout and component
layout, respectively, for the circuit in Fig.
2. Solder the components in the order of IC
sockets, jumpers, resistors, capacitors, diodes, LED, and transistors. Then connect
the rest of the components through wires.
Fig. 5 shows the proposed front-panel
layout of MGMA.
Before connecting VR1 and VR2 to
the PCB, mark the dials using a digital
multimeter. Both dial 1 and dial 2 (refer
Fig. 5) are calibrated in terms of resistance for the variable resistance values of
1 mega-ohm in case of VR1 and 47 kiloohm in case of VR2, respectively, using a
digital multimeter. (Note. There may be
dead-ends on both ends of the potmeter,
and it may vary in construction from
manufacturer to manufacturer.) Mark the
dials for every ten units for easy reading
and setting.
Applications
For high-resistance and low-resistance
transducers, use earphone-type sockets SOC1 and SOC3, respectively. For
low-capacitance and high-capacitance
testing, use earphone-type sockets SOC2
and SOC4, respectively. For SOC1 and
SOC2, the reading will decrease for
the increasing value of resistance and
capacitance, and vice versa for SOC3
and SOC4.
Strength-0-meter. This game reELECTRONICS PROJECTS Vol. 22
89
90
signal for streetlight operation. Its operation does not require any software and
hardware knowledge.
This circuit can also be adopted for
synchronisation with the signals of adjacent traffic lights by introduction of
appropriate delay in traffic light signals
timings.
The circuit
The circuit has two partsthe first for
generation of control signals for streetlight
and traffic light modes and the second
for generation of four sides of traffic light
signals.
The circuit for streetlight and traffic
light modes (Part I) controls the switching time of streetlights in evenings and
mornings and the time to changeover from
PARTS LIST
Semiconductors:
IC1
- LM358 op-amp
IC2
- 7404 Hex inverters
IC3, IC6, IC12 - NE555 timer
IC4
- 74LS93 4-bit binary counter
IC5
- 74LS164 8-bit serial shift
register
IC7-IC9
- 7476 dual JK master-slave
flip-flop
IC10
- 7400 Quad 2-input NAND
gates
IC11
- 7410 Triple 3-input NAND
gates
IC13
- 7408 Quad 2-input AND
gates
IC14-IC17
- 7402 Quad 2-input NOR
gates
T1-T6
- SL100 npn transistor
D1-D14
- 1N4007 rectifier diode
LED1, LED3,
LED6, LED9,
LED12
- 3mm red LED
LED2, LED5,
LED8, LED11 - 3mm green LED
LED4, LED7,
LED10, LED13 - 3mm yellow LED
Resistors (all -watt, 5% carbon, unless
stated otherwise):
R1, R2,
R18-R21
- 2.2-kilo-ohm
R3-R5, R8,
R12-R17,
R22-R25
- 100-kilo-ohm
R6
- 47-kilo-ohm
R7, R9, R11
- 10-kilo-ohm
R10
- 100-ohm
R26
- 47-ohm
R27
- 22-kilo-ohm
R28
- 6.8-kilo-ohm
VR1, VR2,
VR4-VR7
- 1-mega-ohm preset
VR3
- 100-kilo-ohm preset
VR8
- 10-kilo-ohm preset
Capacitors:
C1
- 220, 10V electrolytic
C2, C4, C6
- 0.01 ceramic
C3, C5
- 6.8, 10V electrolytic
Miscellaneous:
LDR1
S1
- Push-to-on switch
91
Fig. 2: Schematic diagram for the traffic and street light controller
92
Table I
Functional Summary of Part I Circuit
Time
Output Output at Output at Activated RA
of IC1(a) QA of IC5 QH of IC5 Resistance
Evening
HIGH LOW
LOW
RA1
After 8 cycles of clock-1
HIGH HIGH
LOW
RA1
(Delay time for streetlight)
After 120 cycles of clock-1 HIGH HIGH
HIGH
RA1
(Delay time for night)
Morning
LOW
HIGH
HIGH
RA2
After 8 cycles of clock-1
LOW
LOW
HIGH
RA2
(Delay time for streetlight)
After 120 cycles of clock-1 LOW
LOW
LOW
RA2
(Delay time for day)
Evening
HIGH LOW
LOW
RA1
Delay times and evening/morning times are adjustable.
A: Continuous traffic light mode B: Blinking yellow light mode
Street Traffic
Light Light
(LED1) Mode
OFF A
ON
A
ON
ON
OFF
B
B
OFF
OFF
93
94
95
Table II
Daytime Functions of Part II Circuit
Counter
Decoder output
Activated RA
Glowing LEDs
contents
G1 G2 G3 G4
resistance
000000 -
0 1 1 1
RA3
4,6,9,12 (Yellow light of 1st side and
000001
red light of other sides)
000010 -
0 1 1 1
RA3
2,6,9,12 (Green light of 1st side and
001101
red light of other sides)
001110 -
0 1 1 1
RA3
4,6,9,12 (Yellow light of 1st side and
001111
red light of other sides)
010000 -
1 0 1 1
RA4
3,7,9,12 (Yellow light of 2nd side and
010001
red light of other sides)
010010 -
1 0 1 1
RA4
3,5,9,12 (Green light of 2nd side and
011101
red light of other sides)
011110 -
1 0 1 1
RA4
3,7,9,12 (Yellow light of 2nd side and
011111
red light of other sides)
100000 -
1 1 0 1
RA5
3,6,10,12 (Yellow light of 3rd side and
100001
red light of other sides)
100010 -
1 1 0 1
RA5
3,6,8,12 (Green light of 3rd side and
101101
red light of other sides)
101110 -
1 1 0 1
RA5
3,6,10,12 (Yellow light of 3rd side and
101111
red light of other sides)
110000 -
1 1 1 0
RA6
3,6,9,13 (Yellow light of 4th side and
110001
red light of other sides)
110010 -
1 1 1 0
RA6
3,6,9,11 (Green light of 4th side and
111101
red light of other sides)
111110 -
1 1 1 0
RA6
3,6,9,13 (Yellow light of 4th side and
111111
red light of other sides)
Note. The two MSB digits determine the side, while the next four digits determine the time for
which the mentioned LEDs are on.
96
Calibration
Set preset VR8 in such a position that the
output of comparator IC1(a) switches from
one state to the other at a particular intensity of natural light. Variable resistors
VR1 and VR2 can be calibrated on a time
scale using the following relationships:
VR1 = (1/120) (1.44 TNight/220) 106
(122.2) 103
VR2 = (1/120) (1.44 TDay/220) 106
(122.2) 103
97
Lead-Acid Battery
Charger with Active
Power Control
m.k. chandra mouleeswaran
98
following sections:
1. The DC power supply section.
2. The series DC voltage regulation
section.
3. The battery status indication-cumcharge current regulation section.
The DC power supply section. The
230V AC mains supply is connected to
a step-down transformer with a secondary rating of 24V AC, 5A through DPDT
toggle switch S1. When switch S1 is
in off position, the availability of
mains supply is indicated by green
LED1. When switch S1 is toggled to on
position, red LED2 glows to indicate
that the charger is on. The four
15-kilo-ohm resistors R1, R2 and
R3, R4 in the path of LED1 and
LED2, respectively, are rated at
1 watt each.
The output from the secondary
of transformer X1 is rectified by the
bridge rectifier comprising 1N5408
diodes D3 through D6, rated at 800V,
3A. The rectified output is smoothed
by three capacitors C1, C2, and C3
before being applied to the rest of the
circuit. The 4.7-kilo-ohm resistor R6
acts as a bleeder resistance. LED7
indicates that DC is available at the
output of this section.
The series DC voltage regulation section. This section is
configured around power Darlington
transistor TIP142 (T1) that functions
in conjunction with transistor T3
(BC549) and preset VR2 to regulate
the output voltage from the DC voltage regulator section.
Since zener diode ZD1 conducts
only after the output voltage reaches
15 volts, the output voltage needs to
be adjusted in the vicinity of 15 volts
with the help of preset VR2. When
transistor T3 conducts fully, the base
of transistor T1 is pulled towards
ground via resistor R8 and it stops
conducting after the output voltage
exceeds a specific value.
Transistor T2 (also a BC549)
helps in current limit adjustments.
Low-value, high-wattage resistors
R15 (shunted by R14) through R19
connected in series form a currentlimiting resistor network at the
output of transistor T1. This resistor
network limits the charging current depending on the energisation/
de-energisation state of relays RL1
through RL4 that select the current range. The resistors are either
ELECTRONICS PROJECTS Vol. 22
99
Parts List
Semiconductors:
IC1
- LM324 quad op-amp
T1
- TIP142 power Darlington
transistor
T2, T3
- BC549 npn transistor
T4-T7
- 2N2222A npn transistor
D1, D2,
D7-D11
- 1N4007 rectifier diodes
D3-D6, D12 - 1N5408 rectifier diodes
LED1
- Green LED
LED2
- Red LED
LED3
- Bright yellow LED
LED4, LED5 - Bright green LED
LED6, LED7 - Bright red LED
ZD1
- 15V, 1W zener diode
ZD2
- 6.8V, 1W zener diode
Capacitors:
C1, C2
- 2200F, 40V electrolytic
C3
- 1000F, 40V electrolytic
C4
- 470F, 25V electrolytic
C5
- 100nF ceramic
Resistors (all -watt, 5% carbon unless
stated otherwise)
R1-R4
- 15-kilo-ohm, 1W
R5
- 2.2-kilo-ohm
R6
- 4.7-kilo-ohm, 0.5W
R7, R10, R12 - 1-kilo-ohm
R8
- 100-ohm
R9
- 470-ohm
R11
- 4.7-kilo-ohm
R13
- 47-ohm
R14-R15
- 0.66-ohm, 3W wirewound or
fusible
R16
- 0.67-ohm, 3W wirewound or
fusible
R17
- 0.20-ohm, 3W wirewound or
fusible
R18
- 0.47-ohm, 3W wirewound or
fusible
R19
- 1.0-ohm, 1W wirewound
R20-R23
- 470-ohm, MFR 0.5% or 0.1%
R24
- 820-ohm, MFR 0.5% or 0.1%
R25
- 10-kilo-ohm, MFR 0.5% or
0.1%
R26-R28
- 1.2-kilo-ohm
R29
- 1.5-kilo-ohm
VR1-VR2
- 2.2-kilo-ohm preset
VR3
- 10-kilo-ohm preset
VR4
- 15-kilo-ohm preset
Miscellaneous:
RL1-RL4
- 24V DC, 500-ohm relay
contacts at 10A DC
X1
- 230V AC primary to 0-24V,
5A secondary transformer
S1
- DPDT toggle switch
F1
- 750mA cartridge glass fuse
100
Table
LED/Relay Operation and Charging Resistance
Battery
LED/Relay status
voltage
LED3
LED4
LED5
LED
/RL1
/RL2
/RL3
/RL4
<10.5V
Off
Off
Off
Off
10.5V
On
Off
Off
Off
11.5V
On
On
Off
Off
12.5V
On
On
On
Off
13.5V
On
On
On
On
* 0.5A is taken as the trickle charging current.
Charging
resistance
Preset
current
1 ohm
0.33 ohm
0.53 ohm
1 ohm
2 ohms
1A
3A
2A
1A
0.5A*
Amplitude Measurement of
Sub-Microsecond Pulses
anil kumar maini
The circuit
The pulse under measurement is fed to
the input of a cascaded arrangement of
two unity-gain peak detection stages built
around IC1 and IC2 using high-speed
op-amps AD829, as shown in Fig. 1. The
op-amp has a guaranteed unity-gain bandwidth of 120 MHz and a slew rate of 230
V/s, and it is capable of driving highly
capacitive loads. This makes it ideal for
receiving input pulses as narrow as 100
ns. D1 and D2 (1N914) are high-speed
switching diodes having a response time
of the order of 2 ns to 3 ns.
The input pulse gets stretched to
about 10 s at the output of the first peakdetection stage built around IC1 and to
about 100 s at the output of the second
peak-detection stage built around IC2.
With switch S1 open, the circuit can
101
switch causes
division of the
input voltage
by a factor of
10 due to the
arrangement
of resistors R1
through R3.
Fig. 2: Waveforms at various points of the circuit
The peak
amplitude of
receive input pulses greater than 100 mV
the stretched pulse at the output of the
(which is the same as the reference voltage
second peak detector is the same as
set for comparator IC3, LM319) but less
the input pulse peak amplitude. This
than or equal to 10 volts.
output amplitude is halved by resistors
With switch S1 closed, the input pulse
R9 and R10 before feeding the same to
amplitude may be anywhere between
the analogue input of IC5 (ADC-type
1 volt and 100 volts. The closure of the
AD0808). This ensures that for the maxi-
102
Operation
103
Automatic Submersible
Pump controller
k.c. bhasin
Fig. 1: Line diagram of control panel for manual operation of ESP motor
ESP basics
Electrical submersible pumps are singleor multiple-stage radial-flow pressure series impeller pumps that are close coupled
to the motor for low and medium heads.
These find applications in domestic, industrial, irrigation, air-conditioning, and
various other systems.
The ESPs are classified by the bore
diameter (which generally varies from
100 mm to 200 mm), horse-power (from
about 0.5 HP to 40 HP), and discharge rate
(typically 120 litres per minute for 0.5 HP
to about 2000 litres per minute for 40 HP).
These are run at a fixed speed, which is
104
Fig. 2: Circuit diagram for automatic control of ESP motor via control panel (Fig. 1)
The circuit
105
106
Precautions
Parts List
Semiconductors:
IC1, IC2
- NE555 timer
IC3
- CD4049 hex inverter/buffer
T1, T2
- BC548 npn transistor
T3, T4
- BD139/SL100 npn transistor
D1-D4, D7-D9 - 1N4007 rectifier diode
D5, D6
- 1N4001 rectifier diode
ZD1
- 12V, 1W zener diode
Resistors (all -watt 5% carbon unless stated
otherwise)
R1, R3, R5,
R7, R9, R12,
R14
- 10-kilo-ohm
R2, R6, R11,
R15-R17
- 1-kilo-ohm
R4, R13
- 220-kilo-ohm
R8, R10
- 330-kilo-ohm
R18
- 330-ohm
Capacitors:
C1
- 470F, 63V electrolytic
capacitors
C2
- 470F, 25V electrolytic
capacitors
C3, C7
- 47, 25V electrolytic capacitors
C4, C6
- 0.01F ceramic disk
C5, C8
- 10F, 25V electrolytic
capacitors
Miscellaneous:
X1
- 230V AC primary to 12V-012V, 1amp
Secondary transformer
L1
- NE2 (neon bulb with inbuilt
resistor)
S1
- On/off switch
F1
- 3amp fuse
RL1
- 24V, 250-ohm, 1 c/o relay,
30A contact rating
Block diagram
The transistor curve tracer is built around
the ramp generator and the current-tovoltage converter. The ramp generator
produces a linear ramp that is applied
to the transistor under test either as
the collector-emitter voltage (VCE) or the
base-emitter voltage (VBE). The ramp is
also used to deflect the electron beam
horizontally (along x-axis) on the screen of
the CRO. Similarly, the current-to-voltage
converter converts either the collector
current (IC) or the base current (IB) into a
proportional voltage that is used to deflect
the electron beam vertically (along y-axis)
on the screen.
The signal conditioning and switching
circuits, along with the ramp generator
and current-to-voltage converter, make
a complete curve tracer for the input and
output characteristics of an npn transistor.
Output characteristics (Fig. 1).
The ramp and clock generator generates
a linear ramp and 1 kHz clock pulses. The
ramp is amplified by the ramp buffer amplifier to 0 to 5 volts. This amplified ramp
is applied to the collector of the transistor
under test as the collector-emitter voltage (VCE) through the current-to-voltage
converter.
The current-to-voltage converter gives
an output voltage proportional to collector
current IC that is applied to the CRO to
deflect the beam in y-axis. The 0-5V ramp
output is applied to the CRO to deflect the
beam in x-axis. Hence we can trace the
output characteristics of the transistor
with the collector-emitter voltage (VCE) on
x-axis and IC on y-axis.
To trace the output characteristic
graph for various base current (IB) values, the generators clock output fed to
the counter is incremented for each clock
pulse. The count sequence is 000, 001,
010, 011, 100, 101, 110, and 111 (0 to
7 decimal). After 111, the counter resets
ELECTRONICS PROJECTS Vol. 22
107
108
The circuit
The transistor curve tracer circuit (Fig. 3)
comprises power supply, ramp and clock
generator, ramp buffer and offset null,
current-to-voltage converter, counter, base
current control, and switching sections.
1. The power supply section. The
circuit operates on 12V regulated power
supply. The input AC mains supply is
stepped down by transformer X1 to deliver
a secondary supply of 15-0-15V AC at 1
ampere. The output of the transformer is
rectified by a bridge rectifier. The 1000F,
109
the op-amp, balancing preset VR4 is connected between the offset null terminals
of the op-amp. The output of the op-amp
is 0-1V linear ramp, which is used as the
base-emitter voltage (VBE) for sourcing
the base current (IB) of the transistor
under test.
4. The current-to-voltage converter section. The spot on the CRO screen
is deflected in proportion to the potential
applied to its input. Hence in order to
deflect the beam along y-axis, which is
the current axis (collector current IC in
110
Construction
Wire the circuit on a 2.5mm, IC-type general-purpose printed circuit board (PCB)
as shown in Fig. 3. The use of glass-epoxy
PCB is recommended. An actual-size,
single-side PCB for the circuit is shown in
Fig. 4, with its component layout shown
in Fig. 5.
Carefully solder all the components
and use sockets for ICs. All range resistors used should be stable, close-tolerance
type (preferably MFRs). Preferably use
linear-type IB SET potentiometer and
mount it on the front panel of the instrument. Enclose the circuit board, power
transformer, and other circuit components in a metal box having approximate
dimensions of 22x17x7.5 cm. Extend
input and output leads to the corresponding points in the circuit. Terminate the
outputs for connection to the CRO in
BNC(F) connectors.
Calibration
After construction, check the circuit
thoroughly for short circuits, breaks,
and open circuits on the PCB. After
switching on the instrument, let it
warm up for a few minutes before
commencing with the calibration.
Calibration procedure of the circuit is
as follows:
1. Check and ensure 12V regulated voltage with respect to ground.
2. Connect a CRO to shorted pins 2
and 6 of timer 555 (ramp output). A linear ramp with positive slope is observed
on the screen of the CRO. By adjusting
frequency control potentiometer VR1, set
the frequency of the ramp at 1 kHz (refer
waveform 1 in Fig. 6).
3. Connect the CRO to the output of
ramp buffer. Adjust preset VR2 to nullify the DC offset voltage in the output of
ramp buffer. Adjust preset VR3 to set the
amplitude of ramp output to 0 to 5 volts
(refer waveform 2 in Fig. 6).
4. Connect CRO at the output of ramp
attenuator and amplifier. Adjust preset
VR4 to nullify the DC offset voltage in the
output of ramp buffer. Adjust preset VR5
to set the amplitude of ramp output to 0 to
1 volt (refer waveform 3 in Fig. 6).
5. Calibrate the current-to-voltage
converter by connecting a 1-kilo-ohm. 1%
metal film resistor between the collector
and emitter terminals of the transistor
under test. Connect the output of the
current-to-voltage converter to a CRO.
By observing the ramp waveform on
the screen of the CRO, nullify DC offset
voltage using preset VR6 and adjust the
amplitude of the observed ramp waveform to 0-5 volts with the help of preset
VR7. Calibrate the current-to-voltage
converter to convert 1 mA of current into
1 volt (refer waveform 4 in Fig. 6). Then
check the clock output by connecting the
CRO to pin 3 of timer 555 (refer waveform
5 in Fig. 6).
6. Verify the outputs of the counter by
using a dual-trace oscilloscope. Connect
one input channel of the CRO with clock
pulses at pin 3 of IC3 and the outputs at
pins 6, 11, and 14 of counter IC7 to the
other input of the CRO sequentially (refer
waveforms 5, 6, 7, and 8 in Fig. 6).
7. Short-circuit the base-emitter terminals of the transistor under test. Select
input/output characteristics switch S2 to
output characteristics position and connect the CRO to the output of the currentto-voltage converter. By adjusting IB SET
potentiometer VR8 on the front panel of
the instrument, check proper operation
of the base-current section by observing
stair-case ramp of varying amplitude on
the screen of the CRO (refer waveform 9
in Fig. 6).
Operation
After calibration, the instrument is ready
for use to trace the input and output
characteristics of npn transistors. Follow
the operating procedure given below every
ELECTRONICS PROJECTS Vol. 22
111
Parts List
Semiconductors:
IC1
- 7812, +12V regulator
IC2
- 7912, 12V regulator
IC3
- NE555 timer
IC4, IC6
- A741 op-amp (IC OP-07
op-amps can be used
in place of A741 with
advantage)
IC7
- MC14029B/CD4039 binary/
decade up-/down-counter
IC8
- LM334H/AD590 temperature sensor
D1-D4
- 1N4007 rectifier diode
ZD1
- 5V zener diode
Resistors (all -watt, 1% MFR, unless stated
otherwise):
R1, R5, R6,
R8, R9
- 1-kilo-ohm
R2, R4
- 22-kilo-ohm
R7
- 10-ohm
R3, R10, R11
(A,B), R12(A-D) - 100-kilo-ohm
VR1
- 1-kilo-ohm preset
VR2
- 2.2-kilo-ohm preset
VR3, VR4,
VR5, VR6
- 10-kilo-ohm preset
VR7
- 150-kilo-ohm preset
VR8
- 1-mega-ohm potmeter
Capacitors:
C1-C4, C9
C5, C6
C7, C8
C10
Miscellaneous:
X1
- 230V AC primary to
15V-0-15V AC, 500mA
secondary transformer
S1
- On/off switch
S2
- DPDT switch
time to get correct traces of input and output characteristics of the transistor:
1. Connect the x-axis and y-axis BNC
pins of the transistor curve tracer to the
112
characteristics position.
16. Set the volts/div control of x-axis to
0.1 volt/div and observe the input characteristics likewise.
Figs 7 and 8 show a typical transistors output and input characteristics,
respectively, on the CRO screen (without
retrace).
Conclusion
To draw the characteristics of pnp transistors, insert an inverter circuit in the
ramp path of collector-emitter voltage
VCE and base-emitter voltage VBE, and
invert the output of the current-to-voltage
converter.
By using a potential divider and
buffer amplifier circuit in place of the
base-current control circuit you can
draw the characteristics of FETs and
MOSFETs.
To trace the forward characteristics
of diodes, connect the anode of the diode
to the base terminal and the cathode to
the emitter terminal. Set the transistor
curve tracer to draw input characteristics,
and the CRO screen displays the forward
characteristics of the diode.
Similarly, with simple add-on circuits
to the motherboard, you can draw the
characteristics of UJTs, SCRs, TRIACs,
etc.
Thin and faint retrace lines visible
along with the characteristic traces can
be removed by connecting a retrace blanking circuit to the Z-mod input of the CRO.
Almost all CROs exceeding 30MHz bandwidth have the Z-mod input facility.
Tripping Sequence
Recorder-Cum-Indicator
r.g. thiagraj kumar and s. ramaswamy
The circuit
IC1 and IC2 (CD4043) Quad NOR RS
flip-flops in Fig. 2 are used to capture and
store the information pertaining to the
tripping of individual units. Reset pins of
all the eight flip-flops and sub-parallel enable (PE) pin 1 of BCD up-/down-counter
CD4510 (IC3) are returned to ground via
10-kilo-ohm resistor R22, while set pins
of all RS flip-flops are returned to ground
via individual 10-kilo-ohm resistors R14
through R21.
Initially, all the eight Q outputs of
IC1 and IC2 are at logic 0. The auxiliary
relay contacts of the subunits, which are
depicted here by push-to-on switches S1
through S8, connect the set terminal of the
corresponding stage of RS flip-flop to +12V
whenever tripping of a specific subunit
occurs. This makes the output of the associated flip-flop go high. Thus whenever
Parts List
Semiconductors:
IC1, IC2
- CD4043 quad NOR RS latch
IC3
- CD4510 BCD up-/downcounter
IC4-IC11
- CD4511 BCD-to-7-segment
latch/decoder/driver
T1-T11
- BC547 npn transistor
T12-T19
- BC557 pnp transistor
D1-D16
- 1N4007 rectifier diode
DIS1-DIS8 - LT543 common-cathode
7-segment display
Resistors (all -watt, 5% carbon, unless
stated otherwise):
R1-R11,
R13-R38
- 10-kilo-ohm
R12, R39-R46 - 1-kilo-ohm
R47-R102
- 470-ohm
Capacitors:
C1-C8
- 0.01F ceramic disk
Miscellaneous:
S1-S8
- Push-to-on switch or relay
contacts (N/O)
S9
- Push-to-on switch
PZ1
- Piezobuzzer
- 12V, 500mA power supply
113
114
Operation
Let us assume that three units, say, E, H,
and A (fifth, eighth, and first), tripped in
that order following a fault.
When the system is reset (before
any tripping), the outputs of all RS flipflops (1Q through 8Q) are low. This LE*
active-low makes latches IC4 through
IC11 transparent and as the counter is
preset to 1 (since P1 input is high while
P2, P3, and P4 are low) with the help
of switch S9, all the latches hold that
1 and their decoded b and c segment
outputs go high.
However, the common-cathode drive
is absent in all the 7-segment displays
because driver transistors T4 through T11
are cut off due to the low outputs of all RS
flip-flops and hence the displays are blank.
At the same time, the low outputs of all
RS flip-flops (1Q through 8Q) forward bias
pnp transistors T12 through T19 associated with LED1 through LED8 of each of
the displays. As a result, all these LEDs
glow, indicating no tripping.
Now when unit E trips, output 5Q
of RS flip-flop IC2 goes high to provide
the base drive to common-cathode drive
transistor T8. This, in turn, activates DIS5
(fifth from left in Fig. 2) to display 1, indicating that unit E tripped first. The corresponding LED5 goes off as transistor T16
is cut off. Also, latch IC8 is disabled due
to logic 1 on its pin 5 and therefore it does
not respond to further changes in its BCD
115
SECTION B :
CIRCUIT IDEAS
Electronic Starter
for Single-Phase motors
sarat chandra das
119
circuit given here, which works very reliably. Parts used in this circuit are easily
available in most of the local markets.
120
ften you need to connect output from more than one source
(preamplifier) such as tape
recorder/player and CD (compact
disc) player to audio power amplifier.
This needs disconnecting/connecting
wires when you want to change the
source, which is quite cumbersome
and irritating.
Here is a circuit that helps you choose
between two stereo sources by simple
touch of your hand. This circuit is so com-
causes selection of CD outputs being connected to the power amplifier input, which
is indicated by lighting of LED1.
When touch-plate S2 is touched, the
outputs of gates N1 and N2 toggle. That
is, IC2 pin 3 is pulled low while its pin 4
goes high. This results in selection of tape
recorder outputs being connected to the
input of power amplifier. This is indicated
by lighting of LED2.
Pin 9 is the control pin of IC2. In the
circuit, the state of multiplexer switches
is shown with pin 9 high
(CD source selected). When
pin 9 is pulled low, all the
switches within the multiplexer change over to the
alternate position to select
tape player as source.
EFY Lab note. Although one can connect pin
7 (VEE) of IC2 to ground,
but for operation with
preamplifier signals going
above and below ground
level, one must connect it
to a negative voltage (say,
1V to 1.5V) to avoid
distortion.
Precision attenuator
with digital control
anantha narayan
121
op-amp.
(b) Output
The output can be connected to a
7107/7135-based DPM or any other analogue-to-digital converter or op-amp stage.
Use a buffer at the output if the output has to
be loaded by a load less than 1 meg-ohm.
Use an inverting buffer if input leads
have to have polarity where ground is the
inverting terminal. (For details, see next
circuit.)
(c) CD4052 CMOS switch
The on-resistance (100-ohm approx.)
comes in series with the op-amp output
source resistance, which produces no er
ror at output.
Caution. The circuit does not isolate,
it only attenuates. When high voltage is
present at its input, do not touch any part
of the circuit.
(d) Digital control options
(i) A and B can be controlled by I/O
port of a microcontroller like 80C31 so that
the controller can control gain.
(ii) A and B can be given to counters
like 4029/4518 to scroll gain digitally.
(iii) A and B can be connected to DIP
switch.
(iv) A and B can be connected to a
thumbwheel switch.
Notes. 1. Digital input logic 0 is 0V and
logic 1 is 5V.
2. All resistors are metal film resistors
(MFR) with 1% tolerance, unless specified
otherwise.
3. C2 and C3 are ceramic disk capacitors of 0.1F = 100nF value.
Precision Amplifier
with Digital Control
anantha narayan
T
122
meg-ohm. Trimpots can be used for obtaining any value of gain required by the user.
The resistor values shown in the circuit
are for decade gains suitable for an autoranging DPM.
Resistor R1 and capacitor C1 reduce
ripple in the input and also snub transients. Zeners Z1 and Z2 limit the input to
4.7V, while the input current is limited
by resistor R1. Capacitors C2 and C3 are
the power supply decoupling capacitors.
Op-amp IC1 is used to increase the
input impedance so that very low inputs
are not loaded on measurement. The user
can terminate the inputs with resistance
of his choice (such as 10 meg-ohm or 1
meg-ohm) to avoid floating of the inputs
when no measurement is being made.
IC5 is used as an inverting buffer
to restore polarity of the input while
IC4 is used as buffer at the output
of CD4052, because loading it by
resistance of value less than 1 megohm will cause an error. An alternative is to make R9=R10=1 meg-ohm
and do away with IC4, though this
may not be an ideal method.
Truth Table (Control Input vs Gain)
X,Y (On-switch
(2)
(1)
Gain
Pair)
B
A
(Av.)
X0,Y0
0
0
1/10
X1,Y1
0
1
1
X2,Y2
1
0
10
X3,Y3
1
1
100
Gains greater than 100 may not be practical because even at gain value of 100 itself,
a 100V offset will work out to be around 10
mV at the output (100V x 100). This can be
trimmed using the offset null option in the
OP07, connecting a trimpot between pins 1
and 8, and connecting wiper to +5V supply
rails. For better performance, use ICL7650 (not
123
124
distance of 100m from each other, for receiving and making outgoing calls, while
maintaining conversation secrecy. This
circuit is useful when a single telephone
extension number, say, 1, within 10 seconds. (In case the calling subscriber fails
to dial the required extension number
within 10 seconds, the line will be disconnected automatically.) Also, if the dialed
extension phone is not lifted within 10
seconds, the ring-back tone will cease.
The ring signal on the main phone
line is detected by opto-coupler MCT2E (IC1), which in turn activates the
10-second on timer, formed by IC2 (555),
and energises relay RL10 (6V, 100-ohm,
2 C/O). One of the N/O contacts of the
relay has been used to connect +6V rail
to the processing circuitry and the other
has been used to provide 220-ohm loop resistance to de-energise the ringer relay in
telephone exchange, to cut off the ring.
When the caller dials the extension
number (say, 1) in tone mode, tone re-
125
to LDR5
constantly.
This pulls
down bases
of transistors
T1
through T5
to ground.
LDR1 ensures that card is properly inserted into the
card slot.
When the card is
correctly inserted, it
covers the hole/opening for LDR1 and thus
blocks the light from
falling on LDR1. As a
126
Pulsed Operation
of a CW Laser Diode
dr. alika khare
127
128
C6. This action results in momentarily pulling down of pin 8 towards the
ground potential, i.e. low. (Otherwise
pin 8 is at 1/2 Vcc and triggers at/below
1/3 Vcc level.) When the second timer is
triggered at the trailing edge of 5-second
pulse, it generates a 1-second
wide pulse.
When switch S2 is on position b, switch S1 is disconnected, while pin 6 is connected
to pin 2. When capacitor C2
is charged, it is discharged
through pin 2 until it reaches
1/3Vcc potential, at which it is
retriggered since trigger pin 6 is
also connected here. Thus timer
1 is retriggered after every
5-second period (corresponding
to 0.2Hz frequency). The second
timer is triggered as before to
produce a 1-second pulse in
synchronism with the trailing
edge of 5-second pulse.
This circuit is important wherever a
pulse is needed at regular intervals; for
instance, in Versatile Digital Frequency
Counter Cum Clock construction project
published in EFY Oct. 97 (or Electronics
Projects Vol. 18), one may use this circuit
in place of CD4060-based circuit. For
the digital clock function, however, pin 8
and 12 are to be shorted after removal of
0.1F capacitor and 10-kilo-ohm resistors
R4 and R5.
High-/Low-voltage
Cutout with Timer
dr d.k. kaushik
of relay RL2.
As a result, power
to the load/appliance is cut off.
Now, capacitor
C2 starts charging through resistor R6 and preset
VR3. When the
capacitor charges
to (2/3)Vcc, IC1
changes state
from high to
low. The value
of preset VR3 may be so adjusted that it
takes about one minute (or as desired) to
charge capacitor C1 to (2/3)Vcc. Relay is
now de-energised and the power is supplied to the appliance if the mains supply
voltage has risen above the lower cut-off
limit, otherwise the next cycle repeats
automatically.
One additional advantage of this
circuit is that both relays are deenergised when the input AC mains
voltage lies within the specified limit
and the normal supply is extended to
the appliance via the N/C contacts of
both relays.
ELECTRONICS PROJECTS Vol. 22
129
Automatic
heat detector
Sukant Kumar Behara
Readers comments:
I have tried to construct the circuit,
which failed to respond even after supplying heat for a long time. How can one
check the transistor if the relay does not
operate? Can you suggest me an alternative for transistor T1? Please help.
Saket
Through e-mail
In the project, on heating the base of
transistor T1, the circuit does not work.
I was even more surprised to see that the
circuit had been EFY Tested.
Manish Poudwal
Through e-mail
EFY:
In reply to Saket:
The circuit has been tested and there
is nothing wrong in the circuit. To test the
transistor, take a lighted matchstick (or
candle) close to the BC109 (or the BC549).
(For higher amplification, use BC109C or
BC549C.) The relay should energise via
the amplifier comprising complementary
pair of transistors T1 and T2. When you
gradually withdraw the candle or burning
matchstick, the brightness of the LED
will gradually decrease and it will finally
go off.
We have also tried the circuit with
130
Pin Designation
SEL1
SEL2
No Connection
No Connection
+3V
No Connection
Ground
No Connection
Do not care
+3V
Readers comments:
The circuit starts ringing (without
touching the screw) when connected to
3V. On disconnecting points 1 and 2 (kept
open), I still received the ring. Why so?
A. Vaidhyanathan
Pollachi
The author, Sukant Kumar Behara,
replies:
You can rectify this snag by changing
transistor T1 (BC148) with a new one.
On touching the base of transistor T1, its
emitter-collector junction starts conducting. But youve mentioned that even without touching the base of transistor T1, the
bell starts ringing, which means that the
emitter-collector junction of the transistor
has got shorted internally.
Non-contact
liquid-level controller
R.G. Thiagaraj Kumar
131
Readers comments:
The circuit is indeed very effective and
accurate, while being very simple and
straightforward. Congratulations to the
author!
Based on this circuit, I successfully
arranged a number of reed switches using a 24-lead flat cable inside a PVC tube,
132
AC mains phase-sequence
indicator
M.K. Chandra Mouleeswaran
133
134
speed of the LED ring must be easily visible. Zener diodes ZD1 and ZD2 are used
for protection of transistors T5 and T6,
respectively.
Precautions. 1. Never use an AC
mains adaptor-type power supply in place
of the battery.
2. Correctly position LEDs D1 through
D20 in the ring for its proper viewing.
3. Assemble resistors R11 to R19 on
the PCB at a slightly elevated level using ceramic beads for proper dissipation
of heat.
Luxurious toilet/
bathroom facility
A.R. Gidwani
Ag
circuits (one each for toilet and bathroom) sharing common power supply and
a melody generator-cum-audio warning unit. The reed switches S1 and S2
are of normally-open type, operated by
permanent magnets appropriately fixed
to the doors of bathroom and toilet, respectively. When the doors of bathroom
and toilet are closed, the reed switches
135
EEPROM W27C512
(Winbond) Eraser
j.p. Sharma
136
Readers comments:
Please clarify the following:
1. Why all address pins, except 24
(A9), are connected to 0V (GND)?
2. If there are more than A15 address
pins (as in 27C010, 27C020, 28C020 etc),
which address pin willbe connected to Vcc
(+5V)?
137
138
latch-up sections.
The disabling section comprises zener
diode ZD5 and transistors T1 and T2. Its
function is to cut off positive supply to sequential switching and relay latch-up sections for one minute when disable switch
S6 (or any other switch shunted across its
terminal) is momentarily pressed.
During idle state, capacitor C1 is
in discharged condition and the voltage
across it is less than 4.7 volts. Thus zener
diode ZD5 and transistor T1 are in nonconduction state. As a result, the collector
voltage of transistor T1 is sufficiently
high to forward bias transistor T2. Consequently, +12V is extended to sequential
switching and relay latch-up sections.
When disable switch is momentarily depressed, capacitor C1 charges up
through resistor R1 and the voltage available across C1 becomes greater than 4.7
volts. Thus zener diode ZD5 and transistor T1 start conducting and the collector
voltage of transistor T1 is pulled low. As
a result, transistor T2 stops conducting
and thus cuts off positive supply voltage
to sequential switching and relay latchup sections.
Thereafter, capacitor C1 starts discharging slowly through zener diode ZD5
and transistor T1. It takes approximately
one minute to discharge to a sufficiently
low level to cut-off transistor T1, and
switch on transistor T2, for resuming
supply to sequential switching and relay
latch-up sections; and until then the circuit does not accept any code.
The sequential switching section com
ere are two simple, low-cost circuits that can be used to shut
off the mains supply to any
audio or video equipment (such as
139
140
pole of relay RL1. In this condition, the laser beam will have no
effect on LDR and the alarm will
continue to operate as long as
switch S2 is on.
When the torch is switched
on, the pointed laser beam is
reflected from a definite point/
place on the periphery of the
house. Making use of a set
of properly oriented mirrors
one can form an invisible net
of laser rays as shown in the
block diagram. The final ray
should fall on LDR of the
circuit.
Note. LDR should be kept
in a long pipe to protect it from
other sources of light, and
its total distance from the
source may be kept limited to
500 metres.
141
Simple
WaterLevel
IndicatorCumAlarm
pradeep g.
142
Readers comments:
I have asssembled the circuit, which
doesnt work at all. It is showing different
values all the time. Even when the capaci-
555 IC
Time period
1 ms
(Switch S3 in
position b1)
1 s
(Switch S3 in
position b2)
Table
Capacitance
Inductance
range
range
C=Tx103
L=Tx103
When T=1 ms, When T=1 ms, L=1H
C=1 F
When T=9999 ms,
When T=
L=9999 H
9999 ms,
C=9999 F
When T=1 s,
When T=1 s,
C=1 nF
L=1 mH
When T=9999 s, When T=9999 s,
C=9999 nF
L=9.999H
=9.999 F
=9999 mH
143
the capacitor or the inductor (for measurement) after the circuit is powered on, you
are bound to get wrong results.
2. Check the position of mode switch,
which needs to be set in appropriate mode
before switching on the circuit. No switch
should be changed when the circuit is
powered on. For large-value inductors
Under-/Over-Voltage Beep
for Manual Stabiliser
K. Udhaya Kumaran
anual stabilisers are still popular because of their simple construction, low cost, and high reliability due to the absence of any relays
while covering a wide range of mains AC
voltages compared to that handled by automatic voltage stabilisers. These are used
mostly in homes and in business centres
for loads such as lighting, TV, and fridge,
and in certain areas where the mains
AC voltage fluctuates between very low
(during peak hours) and abnormally high
(during non-peak hours).
Some manual stabilisers available in
the market incorporate the high-voltage
auto-cut-off facility to turn off the load
when the output voltage of manual stabiliser exceeds a certain preset high voltage
limit. The output voltage may become high
due to the rise in AC mains voltage or due
to improper selection by the rotary switch
on manual stabiliser.
One of the major disadvantage of using a manual stabiliser in areas with a
wide range of voltage fluctuations is that
one has to keep a watch on the manual
stabilisers output voltage that is displayed on a voltmeter and keep changing
the same using its rotary switch. Or else,
144
for low level one may preset lowlevel AC voltage 20V to 30V above
minimum operating voltage for a
given load.
The primary winding terminals of
step-down transformer X1 are connected
to the output terminals of the manual
stabiliser. Thus, 9V DC available across
capacitor C1 will vary in accordance with
the voltage available at the output terminals of the manual stabiliser, which is
used to sense high or low voltage in this
circuit.
Transistor T1 in conjunction with
zener diode ZD1 and preset VR1 is used
to sense and adjust the high-voltage level
for beep indication. Similarly, transistor
T2 along with zener ZD2 and preset VR2 is
used to sense and adjust low voltage level
for beep indication.
When the DC voltage across capacitor C1 rises above the preset
high-level voltage or falls below the
preset low-level voltage, the collector
of transistor T2 becomes high due to
non-conduction of transistor T2, in either case. However, if the DC voltage
sampled across C1 is within the preset
high- and low-level voltage, transistor
T2 conducts and its collector voltage
gets pulled to the
ground level. These
changes in the collector voltage of transistor T2 are used to
start or stop oscillations in the astable
multivibrator circuit
that is built around
transistors T3 and
T4. The collector of
transistor T4 is connected to the base of
Ultra-Sensitive
Solidstate Clap Switch
Pradeep G.
The first section of the circuit comprises a digital up-down counter built
around IC1a quad 2-input NAND
ELECTRONICS PROJECTS Vol. 22
145
146
Table
Binary
output
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
Equivalent
dec no.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
LED4
R14 (W)
Shorted
Shorted
Shorted
Shorted
Shorted
Shorted
Shorted
Shorted
1500
1500
1500
1500
1500
1500
1500
1500
LED3
R13 (W)
Shorted
Shorted
Shorted
Shorted
820
820
820
820
Shorted
Shorted
Shorted
Shorted
820
820
820
820
LED2
R12 (W)
Shorted
Shorted
470
470
Shorted
Shorted
470
470
Shorted
Shorted
470
470
Shorted
Shorted
470
470
LED1
R11 (W)
Shorted
220
Shorted
220
Shorted
220
Shorted
220
Shorted
220
Shorted
220
Shorted
220
Shorted
220
R2' (W)
0
220
470
690
820
1040
1290
1510
1500
1720
1970
2190
2390
2540
2790
3010
Vout (V)
1.25
2.27
3.43
4.44
5.05
6.06
7.22
8.24
8.19
9.21
10.37
11.39
11.99
13.01
14.17
15.19
Working
When the power is switched on, IC2 resets
itself, and hence the output at pins 6, 11,
14, and 12 is equivalent to binary zero, i.e.
0000. The corresponding DC output of the
circuit is minimum (1.25V). As count-up
switch S1 is pressed, the binary count of
IC2 increases and the output starts increasing too. At the highest count output
of 1111, the output voltage is 15.19V (assuming the in-circuit resistance of preset
VR2 as zero). Preset VR2 can be used for
a zener diode.
The dynamic impedance characteristics of a zener diode determine as to how
well the zener diode regulates its own
breakdown voltage. Thus this circuit can
be used to compare the dynamic impedance characteristics of zener diodes from
a lot and segregate/categorise them accordingly.
147
Table I
Minimum and Maximum Test Current
Values
Zener diode values
IT(min)
IT(max)
3.3V to 4.3V
10mA
15mA
4.7V to 18V
5mA
10mA
20V to 39V
2mA
4mA
Note: Zener diode power ratings are 250 mW,
400 mW, and 500 mW.
Table II
Minimum and Maximum Test Current
Values
Zener diode values
IT(min)
IT(max)
3.3V to 12V
10mA
15mA
13V to 27V
5mA
10mA
30V to 43V
2mA
5mA
47V to 75V
1.5mA
3mA
82V to 120V
1mA
2mA
Note: Zener diode power rating is 1 watt.
148
with approx. 1Hz frequency. The frequency is determined from the following
relationship:
ELECTRONICS PROJECTS Vol. 22
149
Low-Cost Intercom
Pradeep G.
150
High-power
Car Bat tery Eliminator
T.K. Hareendran
Readers comments:
The way of biasing of transistor
T1 seems to be wrong. As per the datasheet, the transitor T1 should be of
pnp type and connected as shown in
Fig. 1 here.
Chittaranjan Parida
Cuttack
The author, T.K. Hareendran, replies:
As clearly mentioned in the text, transistor T1
works as a series regulator transistor. In conventional circuits, one ordinary zener diode is used
to provide a fixed-base bias to T1. The circuit
published is an improved version
and the fixed three-terminal voltage
x1
GND
151
152
spectively.
Transistors T1 through T3 are cascaded in such a way that the positive
voltage available at the emitter of transistor T1 is extended to the collector of
Transistor T3 when the outputs of all
the three stages are low. As a result,
transistors T1 through T3 are forward
biased for 0.4, 1.6, and 0.025 seconds,
respectively and reverse biased for similar durations.
Using a built-in oscillator-type piezobuzzer produces around 1kHz tone. In
this circuit, the piezo-buzzer is turned
Dual-input high-fidelity
audio mixer
Prasad J.
Th
153
amplification.
The input impedance at each signal
input is approximately 500 kilo-ohm,
which is determined largely by the resistance of potentiometers VR1 and VR2.
Higher input impedance may be obtained
by substituting higher-resistance potentiometers, but this will lead to the pickup
of stray signals.
The current drain of this circuit at 6V
DC is less than 3 mA. The open-circuit
voltage gain is 10 for each channel. The
maximum amplitude of input signals at
gates G1 and G2 is 0.1V RMS. Signals
of higher amplitudes are reduced by the
adjustment of potentiometers VR1 and
VR2, hence evading the output signal
peak-clipping. The corresponding output
Unipolar/bipolar
triangular and bipolar
square wave generator
Yogesh Kataria
154
Readers comments:
The oscillator circuit built around
gates N1, N2, and N3 is not working. The
circuit works like a timer when pin 2 of
MCT2E is connected to the body of the
audio. There is no change in the performance when pin 2 is left hanging. But when
pins 2 and 4 of MCT2E are shorted, the
circuit starts working.
155
156
#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
#define PORT 0x0378
main()
{ int k=0;
clrscr();
gotoxy(30,10);
printf(1.(D)ial Clock\n);
gotoxy(30,12);
print(2.(R)un Electronic Roulette \n);
gotoxy(30,14);
printf(3.(E)xit\n);
do
{
k=getch();
k=touchper(k);
if(k==D)
{
Aclock(0,0,0);
}
if(k==R)
{
Roulet();
}
}
while(k!=E);
clrscr();
print(By Vijaya kumar.P,3rd Sem,E&C, K.V.G.C.E,Sullia\n);
printf(Dedicated to Father of Electricity Michael Faraday who
is my favourite Scientist.\n);
exit(0);
}
Aclock(int shor,int smin,int ssec)
{
int ho,sc,mn,mnt,k,i=0;
struct time tim;
clrscr();
do
{
gettime(&tim);
gotoxy(30,8);
ho=tim.ti_hour;
mn=tim.ti_min;
sc=tim.ti_sec;
mnt=mn;
if(ho>12)
{
ho=ho-12;
}
if(ho==0)
{
ho=12;
}
i=sc % 2;
mn=mn*i; /*Making minute LED to blink*/
mn=mn/5;
outportb(PORT,ho*16+mn);
printf(hour:min:sec = %2d:%02d:02d\n,ho,mnt,sc);
gotoxy(30,10);
printf(1.(G)oto MAIN MENU\n);
gotoxy(30,12);
printf(2.(S)et Alaram\n);
if(shor==ho&&smin==mnt&&ssec==sc)
{
alarm(15);
}
if(mnt==0&&sc==0)
{
alarm(1);
}
if(bioskey(1))/* To check Whether any keyis pressed */
k=getch();
k=toupper(k);
if(k==S)
{
setala();
}
}
while(k!=G);
{
outportb(PORT,0);
main();
}
}
setala() /*Function to set Alarm*/
{
int hrs,mns,scs;
clrscr();
printf(Enter hour\n);
scanf(%d ,&hrs);
printf(Enter Minute\n);
DialCLK.C
scanf(%d ,&mns);
printf(Enter seconds\n);
scanf(%d ,&scs);
Aclock(hrs,mns,scs);
}
alarm(int beps) /*Function to produce beeping sound*/
{
int i;
for(i=0;i<beps;i++)
{
sound(1500);
delay(100);
nosound();
delay(100);
}
}
Roulet()/*Function for Roulette Wheel*/
{
int i,k=0;
clrscr();
gotoxy(30,10);
printf(1.Press any key to Reset\n);
gotoxy(30,12);
printf(2.(P)lay\n);
gotoxy(30,14);
printf(3.(G)oto MAIN MENU\n);
k=getch();
k=toupper(k);
do
{
for(i=1;i<13;i++)/* To generate decimal number from 1 to 12*/
{
if(bioskey(1))
k=getch();
k=toupper(k);
if(k==P)
break;
outportb(PORT,i);/*outputting binary equivalents of i
through Data pins of LPT port*/
delay(50);
}
}
while(k!=G);
outportb(PORT,0);
main();
}
Long-Range
Cordless Burglar Alarm
t.k. hareendran
Fig. 1
157
Fig. 2
Fig. 3
When the infrared beam is interrupted, the output of the receiver module goes
high to apply a forward bias to the base of
transistor T1. As a result, the gate of SCR
gets sufficient forward bias to conduct (and
Water-Level Controller
joydeep kumar chakraborty
I
158
when the overhead tank starts overflowing. This results in the unnecessary wastage and sometimes non-availability of
in Fig. 2.
Care has to be taken to ensure that
probes H and L do not touch wire C directly. Insulation of wires is to be removed
from the points shown. The same arrangement can be followed for the underground
tank also. To avoid any false triggering
due to interference, a shielded wire may
be used.
ELECTRONICS PROJECTS Vol. 22
159
ortable loads such as video cameras, halogen flood lights, electrical irons, hand drillers, grinders, and cutters are powered by connecting long 2- or 3-core cables to the mains
plug. Due to prolonged usage, the power
cord wires are subjected to mechanical
strain and stress, which can lead to internal snapping of wires at any point. In
such a case most people go for replacing
the core/cable, as finding the exact location of a broken wire is difficult. In 3-core
cables, it appears almost impossible to
Readers comments:
I congratulate the author for giving a
smart, useful, and compact circuit of Invisible Broken Wire Detector in August
issue. I have the following queries regarding this circuit:
160
PC-BASED MULTI-MODE
LIGHT CHASER
vijaya kumar p.
Table I
Pin Configuration
Pin
Description
1
*Strobe
2
Data bit 0
3
Data bit 1
4
Data bit 2
5
Data bit 3
6
Data bit 4
7
Data bit 5
8
Data bit 6
9
Data bit 7
10
Acknowledge
11
*Busy
12
Paper end
13
Select
14
*Auto feed
15
Error
16
Initialise
17
*Select input
18-25
Ground
Note: *indicates that pins are internally
(hardware) inverted.
Binary equivalents
00000001
00000010
00000100
00001000
00010000
00100000
01000000
10000000
161
162
#include <dos.h>
main()
{
int i;
printf(Input a decimal number);
scanf (%d,&i);
outportb() (0x0378,i);
}
#include <stdio.h>
#include <dos.h>
#include <math.h>
main()
{
int temp=0,i,ch,PORT =
0x0378;
printf(Press x to exit);
run:
for(i=0;i<8;i++)
{
tempb=pow(2,i);
outportb(PORT,temp); /*
outputs BINARY no.
to
LPT1 */
delay(2000); /*using delay
to control speed */
if(bioskey(1))/*To check
whether any key is
pressed */
ch=getch();
ch=toupper(ch);
if(ch==X)
{
exit(0);
}
}
goto run;
}
163
Colour of
LED1 and LED2
Continuous green LED1+
flash red LED1+flash red
LED2=green and yellow
alternate+flash red
Flashing red LED1 and LED2
Colour of LED1
Red-continuous
Green-continuous
Alternates between red
and green at 50 Hz and
appears yellow
cation to the LED sections via currentlimiting resistors. For higher power
dissipation in current-limiting resistors,
a series combination of resistors can be
used. Because of the pulsating voltage,
the LEDs would produce a flickering
effect. The total series resistance with
each LED section may be calculated by
dividing 200 volts with the desired LED
current (say, 10 mA).
Fig. 4 shows the use of a 2-pin bicolour LED. The two LEDs are internally
connected in reverse, so they glow both
ways of the supply polarity connections
and can be easily used for AC circuits as
indicators. The correct polarity is indicated by green and the reverse polarity
by red. The AC supply is shown by yellow, which, in fact, is due to the turning
on of both the colours at the AC mains
frequency. When the frequency is more
than 20 Hz, the two colours combine to
produce yellow light. Pin identification
of this LED is done usually by using a
current-limiting resistor and DC supply only.
All the circuits can be effectively altered to suit an individuals requirement.
164
165
Electronic Dice
Vijaya kumar P.
166
outportb(0x0378,i);
}
Fig. 1
Truth Table
Throw Data pins
Logic state
D2
D1
D0
State of LEDs
A
OFF
OFF
OFF
OFF
OFF
OFF
ON
ON
OFF
OFF
OFF
OFF
ON
OFF
ON
OFF
OFF
OFF
OFF
ON
ON
ON
OFF
ON
ON
OFF
ON
OFF
ON
OFF
ON
ON
OFF
ON
ON
ON
ON
ON
ON
ON
ON
OFF
Fig. 2
Fig. 3
Display
167
HORIZ_DIR,2);
outtextxy(120,20,"*** ELECTRONIC
DICE ***");
setcolor(GREEN);
outtextxy(x/5,180,"1.Press T to Throw
Dice");
outtextxy(x/5,230,"2.Press X to Exit");
/* Actual program */
randomize();/*Initializes random number
generator */
do {
ch= getch();
ch= toupper(ch);
if(ch=='T') /* If T is Pressed */
{
ran=random(6); /* to generate
random number between 0&7 */
ran=ran+1;
outport(PORT,ran); /* outputs
BINARY no. to LPT's Data Port */
}
}
Light-Operated Organ
pradeep g.
shown in the diagram. When LDR receives light from a light source,
such as an electric bulb, a
sharp and pleasing audio tone
is heard from the speaker. The
intensity of light falling on
LDR can be varied by waving
a hand to and fro between the
lamp and the LDR. As a result,
the frequency of the output
sound changes.
168
mechanism with this circuit. Use of goodquality playback head and well-screened
wires are recommended.
silicon transistors, replace 220-ohm resistors with 47-ohm resistors and 680-ohm
resistors with 1-kilo-ohm resistors.
ELECTRONICS PROJECTS Vol. 22
169
170
Fig. 1
12V
Fig. 2
171
172
running lights effect. To change this sequence to get the speller effect, pnp transistors T1 through T9 are wired as shown
in the figure. Nine triacs (triac 1 through
triac 9) are used to drive 230V bulbs. (In
place of 230V bulbs, miniature lamps connected in series in the form of characters
or letters can also be used, provided the
voltage drop across the series combination
is 230 volts.)
When any of the outputs of IC2 goes
high, the corresponding transistor connected to the output goes off. When Q0 is
high, transistor T1 goes off and its output
at the collector goes low. Since the emitter of transistor T2 is connected to the
collector of transistor T1, and collector
and emitter terminals of transistors T1
through T9 are connected in series, all
transistors next to transistor T1, i.e. transistors T2 through T9, do not get supply
and hence all their outputs go low.
Next, when Q1 output goes high,
transistor T2 goes off. Thus outputs of
transistors T2 through T9 remain low.
Since Q0 output at this instant is low,
transistor T1 is forward biased and its
output goes high to light up the first
character.
Similarly, when Q2 output goes high,
Q0 and Q1 outputs are low and therefore outputs of transistors T1 and T2
go high to light up the first and second
characters.
This process continues until all transistors turn on, making all the characters
to light up. The cycle repeats endlessly,
producing the speller type light effect.
173
DarkRoom Timer
d. prabakaran
174
Long-Range
Target shooter
pratap chandra sahu
175
ere is a simple power supply circuit that can be used for citizen-band and VHF walkie-talkies
of power rating up to 10 watts. The circuit
uses a step-down transformer, followed by
bridge rectifier, filter, regulator, and current booster stages.
A pnp power transistor is added to
the circuit to increase its current sourcing
capabilities. Regulator 7812 can support
around 100 mA current. When the current flowing through R1 nears 100mA
value, the voltage (>0.65V) across the
emitter-base junction makes transistor
T1 to conduct and provide a path for additional current.
The circuit can source around one ampere of current at 12+1.4 volts=13.4 volts.
176
Both the regulator IC and the power transistor must be mounted on heat sinks.
High-Performance
Interruption De tector
junomon abraham
177
metres. The reflection property of IR signals can also be used for small-distance
coverage.
Readers comments:
This circuit helps me in various ways. I
have the following queries regarding it:
1. How can I fit a lamp in place of the
speaker or another device?
2. Can I perform more than one func-
Bhavik A. Patel
Through e-mail
The author, Junomon Abraham,
replies:
Thank you for your keen interest in this
178
Qu
iz-type game shows are increasingly becoming popular on television these days. In such games, fastest
finger first indicators (FFFIs) are used to
test the players reaction time. The players designated number is displayed with
an audio alarm when the player presses
his entry button.
The circuit presented here determines
179
quency can be varied with the help of preset VR1. Logic 0 state at one of the outputs
of IC2 produces logic 1 input condition at
pin 4 of IC7, thereby enabling the audio
oscillator.
IC7 needs +12V DC supply for
sufficient alarm level. The remaining circuit operates on regulated +5V
DC supply, which is obtained using
IC1 (7805).
Once the organiser identifies the contestant who pressed the switch first, he
disables the audio alarm and at the same
time forces the digital display to 0 by
pressing reset pushbutton S5.
With a slight modification, this
circuit can accommodate more than four
contestants.
Readers comments:
What modifications are
required to
accommodate
more than four
contestants?
Suyash
Narayan
Delhi
EFY: To accommodate up
to eight contestants, the
modified circuit is shown
in Fig. 1 below.
In this circuit,
IC8 (7475) is
added to the
previous circuit
to accommodate switches
S5 through S8. Fig. 1: Modification of the fastest finger first circuit for eight contestants
In place of IC3
(7420) of the
(74LS00) have been used to lock out the
previous circuit, IC9 (74LS30) and IC10
subsequent entries by producing the ap-
Decorative Signboard
pratap chandra sahu
180
special effect.
The characters can be made by wiring LEDs/torch bulbs (6V, 200mA type)
in series/parallel combination or densely
painted glass or transparent plastic illuminated by torch bulbs. The bulbs should
be placed behind each painted character.
181
Smoke Alarm
pradeep g.
182
OverLoad Protector
With Reset But ton
vijay kumar p.
183