Академический Документы
Профессиональный Документы
Культура Документы
Vol. 20
EFY Books & Publications
FOR YOU
EFY is a reputed information house, specialising in electronics and information technology
magazines. It also publishes directories and books on several topics. Its current publications are:
1. Electronics Projects, Vol. 1: A compilation of selected construction projects and circuit ideas published in Electronics For You
magazines between 1979 and 1980.
2. Electronics Projects, Vol. 2 to 19: Yearly compilations (1981 to 1998) of interesting and useful construction projects and circuit
ideas published in Electronics For You.
ISBN 81-88152-15-3
A
s you are aware, the PC has a the add-on card is given in Fig. 1. by it, and compared with the address set
motherboard on which the main by the resistors and the DIP switches on
CPU and the RAM/ROM memory the right side (in Fig. 1) of IC2.
chips are located. All other functionalities Description Here, we have specified an address of
like disk controllers, parallel and serial IC2 (74HCT688) is an 8-bit magnitude 300 hex, which is a vacant I/O address on
ports and the display adapter are located comparator. The address bus lines A2 the IBM PC. This address has been re-
on the add-on cards which plug into the through A9 are continuously monitored served by IBM for experimental work. If
expansion slots on the
motherboard. It is very
easy for anyone to as-
semble such a card. De-
sign of a general-purpose
add-on card for the PC,
which will be useful in a
number of applications
like EPROM program-
mer and copier, process
controller, logic monitor
etc, is presented here.
The good news is that it
takes only four ICs to ac-
complish this!
We will be designing
the card for the 8-bit PC
(PC-XT) bus, which is
the lowest common de-
nominator available. For
this you will need a PCB
edge connector with 62
pins which are arranged
as two rows of 31 pins
on each side of the ex-
pansion slot, named side
A and side B. Fig. 2
shows the signals avail-
able on its various pins.
The circuit is based
on IC 8255A, which is a
programmable digital I/
O (input/output) device
with three external 8-bit
ports. That means, you
get 24 general-purpose
input and/or output pins.
The circuit diagram of Fig. 1: Circuit diagram of digital input-output add-on card for PC
realise its full potential. is at logic 0 or 1 state, and switches on or position to the next across the screen, it
After initalisation, the program scans off the corresponding indicator on the causes distraction. Hence the cursor is
the three ports repeatedly in a loop. It screen. disabled during the execution of the
separates each bit, tests whether the bit As the cursor rapidly moves from one program. ❑
F
M broadcast in India has gained 2. Auto-noise-mute (including inter- receiver comprising various sub-sections
much popularity and AIR (All In- station noise mute) and stop-station func- is shown in Fig. 1. Brief description of
dia Radio) is now using FM chan- tions. the circuits within each block are given
nels for Vividh Bharti programmes also. 3. LED indicators are provided for below with reference to the circuit dia-
Although the quality of FM transmission indication of the following conditions: gram of the complete system shown in
is quite good and stereophonic, several (a) FM fine tunning Fig. 2.
listeners often complain that their receiv- (b) Stereo decoder and amplifier sec- FM receiver: This sub-circuit is based
ers, including imported ones, produce quite tion power-on on the popular Sony single-chip radio IC
a bit of noise (hiss and shrill). Indian mar- (c) Stereo signal presence. CXA1019S (30-pin DIL). The IC is de-
ket is flooded with such FM receivers, Apart from its primary function as a signed for economy receivers for FM and
which though labeled as stereos, are not quality FM stereo receiver and amplifier, AM radio as well as TV applications. But
really so. Their output power is so low the circuit or its sections can also be used in the present circuit this IC has been
that the stereophonic effect cannot be pro- for the following applications: wired for FM reception only.
duced. 1. Burglar alarm having a long opera- This IC also includes a tuning meter/
Presented here is a versatile FM tional range LED driver circuit for fine tuning indica-
stereo receiver circuit which overcomes 2. Cordless FM intercom tion. This meter/LED driver output is
the above-mentioned drawbacks. Its sali- 3. Cordless call bell available at pin 20. Here this output is
ent features are: 4. Remote switch. also coupled to the auto-power on/off sec-
1. Stereo reception and its faithful re- tion.
production with reasonably high output The audio output available at pin 24
power for obtaining proper stereophonic
Description of this IC (marked as point A) is con-
effect. A functional block diagram of the stereo nected to the input of stereo decoder IC
(pin 2) for further processing.
Auto power on/off: This
section comprises a pnp tran-
sistor AC188 (T1) and three
npn transistors BD139 (T2, T3
and T4). Each of the transis-
tors T2, T3 and T4 is employed
for switching on power supply
(by completion of ground return
path) to: (a) relay driver and
buzzer section, (b) stereo de-
coder, preamplifier and power
amplifier circuit built around
IC6, and (c) power amplifier
circuit built around IC5, respec-
tively. Transistor T1 controls
the base drive to transistors T2,
T3 and T4 while conduction of
transistor T1 itself is control-
led by the output at pin 20 (me-
ter/LED driver) of IC1.
Whenever the FM receiver
Fig. 1: Functional block diagram of versatile FM stereo receiver is tuned to any FM transmitter
S1 and S2 must
be kept open
(off).
Power
Supply
For excel-
lent results,
properly filtered
and regulated
12V DC power
supply is re-
quired. The
maximum cur-
rent cons-
umption (when
all switches are
on and volume
is maximum)
Fig. 4: Components layout for the PCB in Fig. 3. will not exceed
T
he switchless automatic calling transmitter module uses IC 555 as astable PARTS LIST
bell system described here can be multivibrator operating at a frequency of Semiconductors:
fabricated using low-cost and eas- around 1 kHz. A pnp transistor (SK100 IC1, IC3 - NE555 timer
IC2 - CIC4822/WE4822 melody
ily available com- generator
ponents. This IC4-IC5 - CD4033 decade counter
project uses in- IC6 - 7809 9-volt regulator
IC7 - 7806 6-volt regulator
frared transmit- T1 - SK100 pnp transistor
ter and receiver T2 - 2N5777 IR photo transistor
T3,T4 - BC549C npn transistor
modules which T5 - BC558 pnp transistor
are fitted face to T6,T7 - BC548 npn transistor
face on both sides T8 - SL100 npn transistor
D1,D2 - IRED
of front entry D3,D4 - IN4148 switching diode
door or corridor of D5 - 3.6V, 0.5W zener
D6,D7 - 1N4001 rectifier diode
the premises.
When a visi- Resistors (all ¼ W, ± 5% carbon, unless
stated otherwise):
tor enters the R1 - 150 kilo-ohm
house, infrared R2,R16 - 1.5 kilo-ohm
R3,R4 - 56 ohm
beam between IR R5 - 4.7 ohm
emitter and IR Fig. 1: Overall view of the switchless calling bell system R6,R14 - 4.7 kilo-ohm
detector is inter- R7 - 470 kilo-ohm
R8 - 3.3 kilo-ohm
rupted for a moment. This results in a R9 - 2.2 kilo-ohm
specific musical tune being played and R10 - 2.7 kilo-ohm
R11 - 470 ohm
a display, indicating the number of R12,R23,R24 - 100 kilo-ohm
visitors entering the house, advances R24,R26
by one. When the next visitor enters R13 - 100 ohm
R15 - 22 kilo-ohm
the house, a different musical tune is R17,R18 - 1 kilo-ohm
heard. In this way, up to 16 different R19 - 82 kilo-ohm
R20 - 470 ohms
musical tunes will be played on suc- R21 - 10 kilo-ohm
cessive entry of the visitors. After that R22 - 220 kilo-ohm
the musical tunes are repeated. Capacitors:
Maximum count of display is 99. C1 - 10µF, 16V electrolytic
C2,C9,C4,C16 - 0.01µF ceramic disc
After displaying 99, counter is Fig. 2: IR transmitter C3,C7,C8,
automatically reset to zero and starts C18,C19,C20 - 0.1µF ceramic disc
counting again. Fig. 1 gives the overall or BD140) is used in IRED (infrared emit- C5,C14 - 47pF ceramic disc
C6 - 100µF, 16V electrolytic
view of the system. ter diode) driver stage at the output. This C10 - 2.2µF,16V electrolytic
transmitter module emits modulated C11 - 2.2nF ceramic disc
C12 - 0.04µF ceramic disc
infrared light. Two IREDs are connected
Description in series for more range and wider
C13
C15
-
-
10µF,16V electrolytic
4.7µF,16V electrolytic
The circuit comprises the following parts: directivity. The module can transmit IR C17 - 1000µF, 25V electrolytic
1. IR transmitter rays up to 4 metres without use of any Miscellaneous:
DIS 1, DIS 2 - LT543 common-cathode
2. IR receiver external lens. display
3. Melody generator IR receiver circuit (Fig. 3): IR re- RL1 - 6V, 100-ohm DPDT relay
4. Counter with display ceiver module is fully transistorised. It LS - Speaker, 8-ohm, 0.5W
X1 - 230V AC primary to 12V-0-
5. Power supply. has a tone signal amplifier, a switching 12V,500 mA sec transformer
IR transmitter (Fig. 2): Infrared circuit and relay driver to switch on mu- - PCB, switches, IC sockets
L
inking an electronic project with urement
computer is a real fun, and this o f
project is one such thing. The unknown
project can be used to measure resistance resistor or
(100 ohms – 100 k ohms), capacitance capacitor,
(0.001µF – 100µF) and voltage (1.25V – switch S4
5V) by interfacing your personal compu- is kept in
ter to the simple circuit presented here. the posi-
t i o n
shown in
Description Fig. 1.
The circuit consists of a 555 timer operat- During
ing in the astable mode. This timer gen- measure-
erates square wave output at a frequency ment of
dependent on the values of external tim- unknown
ing components like Ra, Rb and C (see voltage be-
Fig. 1). Hence, the output frequency is tween the
indirectly a measure of the values of these above-
external components. mentioned
The output of this circuit is fed to the limits,
parallel port of the computer. The switch S4
frequency of the output pulses is measured is to be
by the software part of the project. From flipped to Fig. 1: Schematic circuit diagram of CompuMultimeter
this measured frequency, the value of the the other
unknown component is calculated using side. ponents that can be measured are dis-
the formula: played on the monitor’s screen.
Frequency f = 1.44 / (Ra+2Rb)C Before selecting a suitable range, ap-
However, from this formula only re-
Software propriate external components (shown in
sistance or capacitance can be measured. The software enables com-
To measure voltage (between the limits munication between the exter- TABLE I
1.25V and 5.00V (Vcc)), the 555 timer is nal circuit and the computer. Unknown Ra C Frequency Duty Cycle
used as a voltage controlled oscillator The codes have been written and Resistance
Range
(VCO) or a voltage–to-frequency converter. compiled in ‘C’. The software is
100 ohm 1k 10µF 120 Hz – 48 Hz 91% - 66%
The voltage at pin 5 (control) of the timer a user-friendly one with GUI
1k -10k 1k 10µF 48 Hz – 6.82 Hz 66% - 52%
varies the frequency of the timer. Thus (graphics user interface). 10k-100k 10k 1µF 48 Hz – 6.82 Hz 66% - 52%
by calibrating the frequency with some First of all the
known values of voltages at pin 5 of the mode of operation, TABLE II
IC, unknown voltages can be found by i.e. resistance or ca- Unknown Cap. Range Ra Rb Freq. Range Duty Cycle
applying them across pin 5 and ground. pacitance or voltage
0.001µF – 0.01µF 1M 1M 481 Hz – 48.1 Hz 66%
Suitable known standard values of Ra, measurement, is 0.01µF – 0.1µF 100k 100K 481 Hz – 48.1 Hz 66%
Rb and C are selected with the help of selected interac- 0.1µF – 1µF 10k 10K 481 Hz – 48.1 Hz 66%
rotary switches S1, S2 and S3 respectively, tively. The range of 1µF – 10µF 1k 1K 481 Hz – 48.1 Hz 66%
as described later in the text. During meas- values of the com- 10µF – 100µF 100 100 Ohm 481 Hz – 48.1 Hz 66%
TABLE III Table I) are changes pin 2 (data bit #1) of the parallel PARTS LIST
Input voltage selected us-
Frequency port from logic 0 to logic 1. This pin is Semiconductors:
1.25 1310 ing the ro- connected to pin 4 of the 555 timer, which IC1 - NE555 timer
1.50 1260 t a r y is the RESET pin, and the timer action Resistors (all 1/4W, ± 5% carbon, unless
1.75 1053 switches. begins only when it is high. After this stated otherwise):
2.00 842 Once the the program enters a ‘for loop’ that scans R1,R12 - 1 Meg-ohm
2.25 715 R2,R11 - 100 kilo-ohm
range has the port address to which the output of
2.50 595 R3,R10 - 10 kilo-ohm
2.75 513 been se- the timer is connected (data bit #8 of port
R4,R9 - 1 kilo-ohm
3.00 441 lected, logic 379 hex) for exactly five seconds. This is R5,R8 - 100 ohm
3.25 371 1 is passed done by using the statement ‘inp(0x379)’ R6 - 47 ohm
3.50 317 to the paral- where 0x379 is the input port address R7 - 56 ohm
3.75 270
4.00 225 lel port us- and it returns a byte from this hardware Capacitors:
4.25 183 ing the ‘out- port address. C1 - 0.01µF ceramic disc
4.50 183 put (0x378, Each time the port is scanned, the byte C2 - 10µF,16V electrolytic
4.75 155 C3 - 1µF,16V electrolytic
1)’ state- returned is compared with the previous
5.00 125 Miscellaneous:
ment, where value. If these are not the same, it implies
- 25-pin, male, female 'D'
0x378 is the output port address. This that either a high-to-low or a low-to-high
connectors, ribbon cable
transition has occurred. Thus counting and PCB etc.
the number of such transitions, until the
end of the ‘for loop,’ gives twice the number ordinary multimeter. The unknown ca-
of cycles in five seconds. From this data, pacitance (Cx in Fig. 1) is placed between
the number of cycles in one second, i.e. pin 6 and ground (arm C) of the IC. Other
the frequency, is found. This is the value external components, i.e. Ra and Rb, are
of ‘f’ in the above formula. The program selected as per Table II.
calculates the unknown value, i.e. the 3. To measure the voltage within the
value of the component, from this value range 1.25V to 5V, the same is to be con-
of ‘f.’ As the ‘for loop’ terminates, the 555 nected across pin 5 of 555 IC and ground.
IC is disabled by bringing its pin 4 to logic In the above two modes (i.e. while measur-
0. Sending 0 to the port using the ing resistance or capacitance values), this
statement ‘outp(0x378, 0) does this. Thus pin was grounded through a 0.01µF capaci-
Fig. 2: Actual-size PCB layout for the circuit the timer is activated only when the pro- tor. This reduces any noise at this pin and
gram scans the parallel port. the pin is maintained steadily at 2/3Vcc by
The three modes of operation are a potential divider inside the IC. Because
presented below: of this reason, whenever the external ca-
1. To measure resistance, the range pacitor charges to a voltage higher than 2/
of resistance that is to be measured is to 3Vcc (voltage at pin 5), the output state
be first known as in the case of any changes and the capacitor starts discharg-
ordinary multimeter. The unknown re- ing. Again, when its potential reduces to 1/
sistance (Rx in Fig. 1) is placed between 3Vcc, the output changes.
pins 6 and 7 (in Rb arm) of the IC. Other However, in this mode of operation
external components (Ra and C) are se- pin 5 is forced to an external voltage. This
lected with the help of Table I. causes the output state to change when
2. To measure capacitance, the range the capacitor’s voltage reaches the exter-
of capacitance that is to be measured is nal voltage while charging and reaches
Fig. 3: Component layout for the PCB to be known first, as in the case of any half of the external voltage while discharg-
Reader Comments: The author N.V. Venkatarayalu replies: log f=v log b + log a
❑ I have completed the software and hard- From Table III published in the con- which is of the form y=mx+c
ware successfully, and it is working well. struction project, an exponential depend- where y=log f, x=v, m=log b, and
I, however, want to know as to how we ence of frequency on voltage can be no- c=log a.
calculate the constants ‘a’, ‘b’ from curve ticed. So, an exponential regression of the The standard procedure for linear re-
fitting using (f-frequency) and (v-voltage), form f = a(b)V would be best suited. To gression available in any numerical math-
and also how we arrive at the formula f = find the constants ‘a’ and ‘b’ the expres- ematics book can be used to find ‘m’ and
a(b)V from linear regression? sion is reduced to the linear form by tak- ‘c’ and hence the constants ‘a’ and ‘b’. The
S. Suresh Kumar ing the logarithm of both sides in the values of ‘a’ and ‘b’ are found to be
Alwarkurichi above equation, i.e. 3080and 0.524 respectively. ❑
H
ere is a simple and inexpensive system for cities like Mumbai and New blanking etc. The circuit of calling number
circuit to identify the calling Delhi. Many companies have already identification system presented here will
telephone number of an incoming advertised their products which can cost around Rs 300 including the cost of a
telephone call. Recently the telecommu- display the calling number with added simple calculator which has been used in
nication department has introduced the features like storage of the previous this project for displaying the calling
facility of calling number identification calling numbers and undesired number number.
T
esting the winding polarity of which suits portable battery-powered op- ‘-’ marked probe leads are connected to
transformers, especially those of eration. winding terminals with identical ‘dot’ po-
multi-winding SMPS, audio and To test the relative polarity between larity. On the contrary, red LED when
power transformers, is a common require- any two windings, the user has to con- ‘on’ will indicate reverse dot polarity of
ment in the industry. An instrument nect only two sets of probes (or crocodile the two windings.
which could easily and quickly test the clips) to the respective winding terminals, The circuit is based on the principle
winding polarity would be extremely use- the reference winding and any other that when any winding of a transformer
ful for not only the industry but also the winding. The polarity is indicated with is excited with a voltage pulse, all other
electronics hobbyists and enthusiasts. the help of two LEDs with respect to the coupled windings generate pulses of vary-
The circuit of transformer polarity reference winding probe leads marked + ing amplitude decided by the turns ratio.
tester given here can be easily fabricated (red) and - (black). The green LED when The ‘dot’ ends of all the windings gener-
using commonly available components. ‘on’ would indicate that the two windings ate voltages in phase with the ‘dot’ end of
The supply voltage selected is 9V, are in phase, that is, the ‘+’ marked and the excited winding. This presents the pos-
M
any timer circuits have been can be used for inputting BCD data to a while its power supply circuit is given in
published in EFY in the past. register inside the chip. The contents of Fig. 3. Other than the power supply and
But this circuit based on dedi- this register are compared with the count ground connections, certain points of Fig.
cated application-specific IC (ASIC) ICM held in the counter and the results appear 1 (A through D) need to be connected
7217A is quite versatile and compact. at output pins 2 (ZERO or Z) and 3 (EQUAL (through use of jumper wires) to various
ICM 7217A comprises a 4-digit decade or E). When both counter and register points (E through K in Fig. 2) for various
counter with multiplexed LED display driv- contents are zero, pin 2 output becomes modes of operation, as per Table I.
ers. ASIC versions with suffix A and C are logic 0 (active) and when contents of There are three modes of operation
meant for common-cathode and the counter and register are equal, pin 3 output which have been covered in this article.
versions with nil or B suffix are meant for goes logic 0 (active). These features are These modes can be used for various ap-
common-anode LED displays. The A and made use of in this circuit. plications. Many other modes, limited only
nil suffix versions have a maximum count by one’s own imagination, are also possi-
of 9999 while suffix C and B versions, ble.
which are primarily meant for timing ap-
Description As mentioned earlier, ICM 7217A ver-
plications, have a maximum count of 5959. The schematic diagram of versatile pro- sion is used with common-cathode LED
The BCD I/O port pins (7 through 4) grammable timer is given in Figs 1 and 2 displays. The average segment current is
Fig. 1: Circuit diagram showing interfacing of ICM 7217A with 7-segment displays and thumbwheel switches
T
he facility of knowing your call- India earlier, has since been extended to January 1999.
er’s telephone number before an- the normal telephone users also in Delhi, MTNL/DoT telephone exchanges
swer-ing the call, which had been Mumbai and some other cities of India transmit the telephone number of calling
available to cellular phone users only in through MTNL and DoT since 1st party just before the first ring while in
M
ains frequency meters are used wave pulses, which are then routed to a down sine wave pules are first filtered and
on control panels of almost all phase-locked loop (PLL). The PLL multi- then clipped using 5.1-volt zener diode
electrical equipment and thus plies the incoming mains frequency by a D3. These clipped pulses are directly fed
these are used in the industry in large factor of 100 and the resulting frequency to the input of CMOS phase-locked loop
numbers. The circuit presented here is displayed in a counter with a resolution CD4046 (IC1). IC 74LS390 (IC2), which is
converts the mains AC voltage to square of 0.01 Hz. a dual decimal counter; it divides the volt-
age-controlled oscillator (VCO) output fre-
quency by a factor of 100. This divided
Description frequency and the input mains frequency
The circuit is divided into are constantly tracked and kept in lock by
three sections: the PLL.
1. Power supply and Thus the frequency output of the VCO
clipping circuit (Fig. 1). is actually the mains frequency multiplied
2. PLL, counter and by 100. This frequency will be centred
display (Fig. 2). around 5 kHz (based on mains nominal
3. Control circuit to frequency of 50 Hz). The output from VCO
generate timing pulses for is fed to a 4-digit decade counter cum
counting the output from display driver IC 74C926 (IC3).
VCO (Fig. 3). CD4060 (IC4) is a binary counter/
Fig. 1: Power supply and clipper circuit The mains stepped- divider/oscillator IC which uses a 32.768
Fig. 4: Actual-size single-sided PCB for the circuits given in Figs 1 through Fig. 5: Component layout for the PCB shown in Fig. 4
T
his is an interesting circuit which which is, in fact, the decimal equivalent transistor, as explained later in the next.
displays a person’s age on the ba- of the binary address. The two decimal The EPROM is kept always in ‘read’ mode
sis of clues provided by the person. numbers after decoding by BCD to 7-seg- and the answer switch S10 (push-to-off) is
This could be an amusing party game which ment decoders/drivers are displayed as connected to the ‘display blank’ mode of
could also be used to guess a number. two LSB digits on common-anode displays both the 74LS47 ICs, so that the display
DIS1 and DIS2. remains blank when the answer button is
Since the circuit is restricted to show not pressed.
Description the age up to 150 years, the third decimal There are eight push-to-on switches,
At the heart of the circuit is an EPROM. display is configured to show either ‘1’ or to S1 to S8, which are connected to eight
The clues provided by an individual are remain blank. In case the display has to separate latches realised from sixteen 2-
converted into a binary address for the show decimal number equal to or greater input NAND gates (N1 to N16) from IC1
EPROM. In each of the memory locations, than 100, the ‘b’ and ‘c’ segments of the through IC4 (74LS00). One LED is con-
a two-digit decimal number is stored in third display digit are activated, making nected to each of the latched outputs. The
its binary-coded decimal (BCD) format, use of logic circuit and an LED driver LEDs remain glowing when the corre-
Operation
Before starting the game, one must
press ‘reset’ switch S9 to ensure
that all the LEDs are in off state
initially. There are eight blocks of
numbers displayed on the front
display panel and each block is
associated with a switch and an
Fig. 2: Actual-size single-sided PCB pattern suggested for the circuit of Fig. 1 LED indicator. First, the person
whose age has to be guessed has to
thoroughly search for his/her age
(in full years) in each of the eight
blocks. Then the switches (S1
through S8) corresponding to
those blocks in which his/her age
figures, should be pressed (indi-
cated by lighting of the corre-
sponding LEDs mounted next to
each of the eight switches) one
after the other. Once all the corre-
sponding switches have been
pressed, you may press the answer
pushbutton (S10) to get the age
displayed on the board.
Logic
In fact, the numbers in each block
are so arranged that by pressing
the corresponding switches, you
Fig. 3: Component layout for the PCB of Fig. 2
are generating a binary number which is
PARTS LIST equivalent to the age (in decimal number).
This binary number acts as address for
Semiconductors: Resistors (all ¼ W, ± 5% carbon, unless
IC1-IC4 - 74LS00 quad 2-input stated otherwise): EPROM, and the BCD data at that
NAND gate R1-R12 - 2.2-kilo-ohm location, when converted to decimal, is
IC5 - 2732 EPROM (4096x8) bit R13-R20 - 390-ohm equivalent to the hex address itself.
IC6-IC8 - 74LS20 dual 4-input R21 - 100-ohm
NAND gate R22-R27 - 1.5-kilo-ohm Single-sided PCB for the circuit shown
IC9 - 74LS21 dual 4-input AND R28-R32 - 1-kilo-ohm in Fig. 1 is given in Fig. 2 while its com-
gate ponent layout is given in Fig. 3. Please
Capacitors:
IC10 - 74LS32 quad input OR
gate
C1, C2 - 0.1µF ceramic disc note that outputs from IC5 (pins 14, 15,
IC11 - 74LS08 quad 2-input AND Miscellaneous: 16 and 17) have been brought to pins 1-4
gate DIS1-DIS3 - LT542 common-anode of SIP ‘A’ connector those from transistors
IC12, IC13 - 74LS47 BCD to 7-segment display (collectors) T4-T1 have been brought to
decoder/driver S1-S9 - Tactile microswitch (N/O)
IC14 - 74LS04 hex inverter S10 - Tactile microswitch (N/C) SIP ‘B’. These are to be extended to I/Ps
T1-T6 - BC547 npn transistor LED1-LED10 - Red LEDs of gates N18-N32 (except N26) using
jumper wires. Correct programming of the
displayed is 100 or more. This will be clear put of gate N25 is logic 1, and if the answer EPROM is the key to the successful op-
from EPROM’s hex data stored at various push switch is pressed, both inputs to AND eration of the circuit. Hence the program-
addresses as shown in Table I. When out- gate N26 are logic 1. This results in for- ming should be done carefully. ❑
O
ver two billion chip-cards are ex- There is no limit to the extent to connector of the parallel port.
pected to be in circulation world- which the parallel port of the PC can be External power supply can be derived
wide by the year 2000. Chip-cards used as it provides ample number of TTL from a 4.5V battery as the system con-
are the future of money and business. compatible input and output lines. The sumes a very small amount of power be-
They represent an untapped source of op- present project uses parallel port (LPT1) cause the contacts are made only during
portunities for various businesses—ATM/ for conveying data to and from the chip- the transactions and that too for a few sec-
electronic cash, credit card payments, card in a serial fashion.
medical/employee information manage- Lines from two ports of
ment, security/loyalty checking, etc. Rec- LPT1—port A with ad-
ognising this, the banks, card companies, dress 378H and port B
telecom operators, transit authorities and with address 379H—are
even government bodies are already de- used for this purpose.
veloping chip-card projects. The use of serial mode
A chip-card stores and processes in- of data transfer is not sur-
formation on a chip (i.e. an integrated prising because a chip-card Fig. 1: Block diagram of chip-chip reader-programmer
circuit) embedded in the card. A mini- should have as few elec-
mum amount of hardware is needed to trical contacts as possible
build a chip-card as shown in the block for its reliable operation.
diagram of Fig. 1. The use of a PC is not This leads to the use of se-
inevitable; instead of PC, a standalone rial E2PROM as the data
microprocessor system capable of input/ storage IC of the chip-card.
output (I/O) operations and some memory The contacts of chip-
can be used. But PC offers user-friendly card include the power
interface as well as opens doors to many connections (Vcc and Gnd),
new applications. Other chip-card appli- data lines (one each for in-
cations include its use as a credit card, a put and output) and two
telephone card, an attendance card for control input lines (chip-
factory employees and an electronic door- select and clock)—all op-
lock system. erating at TTL levels. Fig.
2 shows the schematic dia-
PARTS LIST gram of the chip-card
Semiconductors: reader including its con-
IC1 - NM93C46 1024-bit serial nection to the 25-pin D Fig.2: Schematic circuit diagram of chip-card reader-programmer
E2PROM
D1 - 1N4148 switching diode
LED1 - Red LED TABLE I
Resistors (all ¼ W, ± 5% carbon, unless Instruction set for NM93C46
stated otherwise): Start Operation Address Data Mode
R1 - 220-ohm Bit Code
Miscellaneous: 1 10 A5, A4, A3, A2, A1, A0 — Read register at address A5-A0
- 5-pin SIP connector 1 01 A5, A4, A3, A2, A1, A0 D15..D0 Write register at address A5-A0
- 25-pin male/female D 1 11 A5, A4, A3, A2, A1, A0 — Erase register at address A5-A0
connectors with ribbon 1 00 11XXXX — Erase/write enable
cable 1 00 00XXXX — Erase/write disable
- 4.5V DC power supply 1 00 10XXXX — Erase all registers
source 1 00 01XXXX D15..D0 Write all registers
Fig. 6: Component layout for PCB of Fig. 5 screen for the same are shown in Figs 3 board. This second PCB (the actual chip-
and 4 respectively. The other part of the card) and its component layout are shown
onds only. This will be clear from the fact assembly containing the E2PROM IC and in Figs 5 and 6 respectively.
that the circuit is assembled in two parts on other circuit components is assembled on The components on chip-card com-
two different PCBs. One of the PCBs has a separate PCB with contact plates on prise only one chip (NM93C46—a 1024-
contact plates (on the top side, i.e. compo- the bottom side such that when this PCB bit serial E2PROM) and a few passive com-
nent side) which are connected to the 25- is placed over the former PCB with their ponents per card to store the data. This
pin parallel port of PC using five leads and contact plates properly aligned, the cir- results in a very compact sized chip-card.
the external supply (4.5V) using two leads. cuit gets completed for programming/ If further reduction is needed, as in the
The actual-size PCB and the silk transaction processing via the PC key- case of a mobile telephone handset, an
Software Program
/* Chipcard Reader Programmer System by setbkcolor(EGA_BLACK); printf(“ \n 1. Viewing Card Details “);
H.K.BHARUCHA & A.A.RANA */ setcolor(EGA_WHITE); printf(“ \n 2. Data Entry”);
#include <stdio.h> rectangle(LEFT,TOP,RIGHT,BOTTOM); printf(“ \n 3. Exit”);
#include <conio.h> moveto(LEFT*2,TOP*2); printf(“\n YOUR CHOICE :”);
#include <graphics.h> lineto(RIGHT,TOP*2); scanf(“ %d”,&ch);
#include <stdlib.h> moveto(LEFT*2+10,TOP*2+10); switch(ch)
#include <string.h> lineto(RIGHT,TOP*2+10); {
settextstyle(TRIPLEX_FONT,HORI_DIR,FONT_SIZE); case 1: view();
#define PORTA 0x378 /* Address for LPT1 */ settextjustify(CENTER_TEXT,CENTER_TEXT); break;
#define PORTB 0x379 outtextxy(x,y,”CHIP CARD READER / case 2: data_ent();
#define CS 0x01 PROGRAMMER”); break;
#define STARTBIT 0x01 outtextxy(x,y+100,” DEVELOPED BY:”); case 3: exit(0);
#define ID_ADD 0x05 outtextxy(x,y+150,” H.K.Bharucha & default: printf(“\n Invalid Choice”);
#define BAL_ADD 0x0f Rana Amisha”); }
#define ID_NO 31572 delay(500); }
#define HORI_DIR 0 setcolor(EGA_BLACK); } /* end of main */
outtextxy(x,y,“CHIP-CARD READER
/* INITIALIZATION OF THE PROTOTYPES PROGRAMMER”); /*Function to write a word(16-Bit) to EEPROM*/
FOR THE MAIN PROGRAM */ outtextxy(x,y+100,”DEVELOPED BY:”); void write_9346(int my_add,unsigned int
void enable_9346(void); outtextxy(x,y+150,” H.K.Bharucha & Rana my_data)
void write_9346(int my_add,unsigned int Amisha”); {
my_data); delay(500); int i,new_add,new_data;
void disable_9346(void); } long int j;
unsigned int read_9346(int my_add); closegraph(); / * outportb(PORTA,CS); /* Give chip select high
void write_bit(int data); Back to the text mode */ to write a bit */
int read_bit(); getch(); write_bit(STARTBIT); /* Give startbit to write
void deposit(void); while(try!=3) /* MAIN MENU */ a bit,refer Table.1*/
void withdrawal(void); { write_bit(0x00); /* Give mode bit 1 for write
void data_ent(); printf(“ \n ENTER PASSWORD:”); operation */
void view(); for (i=0;i<8;i++) write_bit(0x01); /* Give mode bit 2 for write
{ operation */
void main(void) pass[i]=getch(); j=0x20;
{ printf(“ %c”,st); for(i=0; i<6; i++)
char pwd[]=”CHIPCARD” ,pass[10], } {
FONT_SIZE=4,st[]=”*”, ch; /* CHIPCARD is pass[i]=’\0'; new_add=(my_add & j);
used as pass-word */ if(strcmp(pass,pwd)!=0) write_bit(new_add);
int LEFT,RIGHT,TOP,BOTTOM; { j=j>>1;
int i,x,y,try=0; printf(“\n Invalid password ! ! !”); }
int driver,mode; printf(“\n Try Again ! !”); j=0x8000; /* j is a 16-bit masking number */
detectgraph(&driver,&mode); try++; for(i=0; i<16; i++)
initgraph(&driver,&mode,”d:\\bc\\bgi”); } {
/* path of bgi driver may be different on else new_data=(my_data & j); /* mask all except
different systems */ { current bit */
x=getmaxx()/2; break; write_bit(new_data);
y=getmaxy()/2; } j=j>>1;
enable_9346(); if(try==3) }
delay(1000); { outportb(PORTA,0x00); /* Remove chip select */
write_9346(ID_ADD,ID_NO); printf(“Only three trials allowed !!\n }
delay(1000); Exiting from program ...”);
disable_9346(); exit(1); /* FUNCTION TO WRITE SINGLE BIT IN TO
/* Setup & Display Opening Screen in Graphics } SERIAL E2PROM */
Mode. */ } void write_bit(int data)
LEFT=x/3; for(;;) {
RIGHT=x; /* Main Menu Loop */ if (data==0)
TOP=y/4; { {
BOTTOM=y-y/4; clrscr(); data=(CS); /* Continue to give chip select */
while(!kbhit()) printf(“\n Main Menu”); outportb(PORTA,data);
{ printf(“\n *********”); }
A
lthough better modes of com- Keyboard
munication such as voice section: Here
communication are available, matrix key- +
Miscellaneous:
S1-S20 - SPST push-to-on keyboard/
tactile switch
S21 - DPDT switch
- Piezo buzzer
again. This will continue until the key is responding to various letters of the The actual-size, single-sided PCB for
open, i.e. until another key is pressed. English alphabets, numerals and some the circuit is given in Fig. 2 and its com-
The volume can be controlled by varying punctuation marks used in this project ponent layout is shown in Fig. 3.
volume control VR2. The Morse code cor- (keyboard) is given in Table I. ❑
T
he circuit presented here can be
used to remotely control a number
of electrical or electronic gadgets
connected to it. Unlike IR remote control,
this circuit employs FM transmission and
reception, and hence it can be used for
comparatively longer range. Any gadget
can be switched on/off by keying the
number allocated to it. The keyboard used
with the transmitter is similar to those
used in basic version of DTMF telephones.
The system is thus composed of two sub-
systems which are described below.
Description
Code generator and transmitter. The
code generator part is shown in Fig. 1. It is
a standard DTMF generator built around
IC1, UM91215B. IC1 generates the DTMF Fig. 1: Schematic diagram of DTMF coder-transmitter
signal corresponding to the number
entered from the keyboard. The signal thus
generated is fed to an FM transmitter. As
a number of FM transmitter circuits (for
example, Quality FM Transmitter by
Pradeep G. published in April ’98 (repro-
duced in Electronics Project Vol. 19) have
been published in EFY earlier, which can
be suitably adopted. The circuit of the
transmitter is therefore not included here.
The operating range of the present system
would, however, depend on the range of
the transmitter.
Receiver and decoder. The circuit
diagram of receiver and decoder is shown
in Fig. 3. The receiver being a common FM
receiver kit readily available in the mar-
ket, no circuit is given for it either.
The output of the FM receiver, which
is a replica of the DTMF signal keyed in Fig. 2: Actual-size PCB layout for circuits in Figs 1 and 3
at the remote transmitter end, is fed to
DTMF decoder IC 8870P (IC2) which This 4-bit binary number is fed to IC3, outputs of IC3 will go high. A predeter-
gives the binary output corresponding to which is a 4-line to16-line decoder IC. De- mined sequential output from IC3 acti-
the signal received from the transmitter. pending on the binary input, one of the vates IC4 via two flip-flops IC5(a) and
N
owadays inverters using tubular is far worse in rural areas. For a fully the battery fully, fairly quickly, the charger
or automobile lead-acid batteries discharged battery of 150 Ah or higher reverts to trickle mode of charging and
have becomes more popular be- capacity you may be able to just replen- maintains the battery in fully charged con-
cause of their higher Ah (ampere-hour) ish the charge if you use 20-hour rate dition by replenishing the lost charge.
rating and longer life. However, to (i.e. 1/20th of the Ah capacity of the bat- Over-discharged batteries should not be
recharge these types of batteries, very tery). But for this you must have assured charged using the normal charging rate.
high charging current is required. Major- mains supply for 20 hours per day, which Their output voltage should first be brought
ity of inverter manufacturers use charger is not always possible. Hence 20-hour up to a safe level using a much lower charg-
transformers capable of charging at the charging rate is not quite practical, and ing current, and thereafter it could be
maximum current rating of 10 amperes. thus charging at 10-hour rate may be charged using the normal charging current.
In most cities, the electricity board/ more appropriate to replenish the charge The charger should changeover to trickle
authorities do not provide mains supply in reasonable time. charging mode when voltage across its cells
for even 20 hours in a day. The condition Batteries need charging in two steps, reaches its maximum permissible value.
TABLE I i.e. float/normal There are quite a few charging methods
Component / Battery Voltage 6V 12V 24V
mode (10-hour used in different chargers, but here a simple
to 20-hour rate) constant voltage with sine phase angle
Transformer X1 (Sec.) 7.5 15 30
Relay RL1 6V, 100-ohm 12V, 200-ohm 24V, 200-ohm and trickle control is employed, without sacrificing
Resistors (R7, R8) 680-ohm 1k 2.2k charging mode. quality and performance. Battery charger
Zeners (D4, D5) 3.3V 9.1V 17V If normal mode should have requisite built-in protections
Resistor (R6) * May be test selected between 330-ohm and 2k. is able to charge so that it is not only capable of protecting the
battery but is also capable of
protecting itself.
The charger circuit
presented here is meant for
charging 24-volt batteries at
normal/float rate of 20
amperes (i.e. 10-hour rate for
200Ah capacity batteries).
This charger can easily be
modified to cover batteries of
other voltages and ampere-
hour ratings. The suitable
component selection for
batteries of other voltages are
shown in Table I.
This charger incorporates
the following protections and
indicators:
1. Fuse protection on
mains side.
2. Power factor improv-
ing capacitor at mains side.
3. Moulded case circuit
Fig. 1: Schematic diagram of fast battery charger breaker (MCB) on battery side.
E
very microprocessor or micro con- one can put the contents of one or more modating the higher address lines to
troller based project needs an earlier EPROMs into one of the faster attain increased memory size.
EPROM (or EEPROM) for its pro- and denser EPROMs of today. Past tech-
gram memory. Many day-to-day appli- nology needed 25V for programming, as
ances like photocopier, film-developing with the 2716 (2k) EPROM, but n ow most
Description
machine, printer, etc use EPROMs. PCs EPROMs are programmable at 12.5V. So, A dedicated EPROM programmer-cum-
also need EPROMs for their motherboard the risk is less. emulator circuit is presented here. It is
and various controller cards. Present-day The majority of today’s projects use convenient for programming small code
EPROMs have much larger memory. To- the 8k or 16k EPROMs, even though the applications by entering data and burn-
day it is possible to have 1 MB of pro- code programmed therein may not exceed ing it into the EPROM or EEPROM. The
grammable memory in a single IC (27800). 2k. These 8k and higher size devices are data can be first entered into the RAM of
The full BASIC interpreter of a basic 28-pin types, while the 2k (2716) have the EPROM programmer and later trans-
computer (refer EFY Dec. 1990 issue, only 24 pins. The numbering of the pins ferred to program the EPROM. Addition-
reproduced in Electronics Project Vol. 11) of these devices is shown in Fig. 1, indi- ally, there is an application for using this
can go into one EPROM of 16k. cating that the extra four pins are accom- unit to emulate an EPROM in the target
Software for typical
projects and robotic kits
also need EPROMs to be
programmed.
The EEPROM (electri-
cally erasable PROM), in
addition to this family, can
be programmed at any
random location and
operates on a voltage of
only +5 volts. One can elec-
trically erase and
reprogram any memory
cell in such an EEPROM.
The 2864A is a popular 8k
device of this type.
Earlier machines such
as a film-processing ma-
chine used to have four
EPROMs (2716) of 2k
each. Now we can
conveniently put all that
code in one 2764 EPROM.
The flexibility of a copier
is an advantage in that Fig. 1: The common pin numbering method followed for accommodating 24-28-pin ICs in 28-pin DIP sockets.
Readers Comments: by keyboard into the RAM of the pro- ing data permanently into an EPROM
❑ 1. How can a hexdump be pro- grammer and then transferred (written) chip by suitable application of higher volt-
grammed? into the EPROM chip. age pulses in sequence, which is the
2. I have not found the contents of the 2. In the Z80 programmer article, method for entering data into an EPROM,
monitor EPROM (2716/64). Does it mean there is a program listing given, along in a nonvolatile manner. This unit (i.e.,
that it could be loaded with the monitor with the code (i.e., numbers). These num- the Z80-based programmer) has the
program of the 8088 given in the ‘Learn bers have to be entered into an EPROM needed circuitry for this.
To Use Microprocessors’ book? fixed in the Z80 programmer board. For Remember again, that as far as the
3. Please let me know the steps for this purpose, one has to use another EPROM is concerned, its contents are just
loading a 2716 with character generator EPROM programmer, as the present Z80 numbers in the range 0-255, written in
listing in the article, i.e., how the program programmer is not yet ready! its cells. A 2716 has 2k (2048) cells, a
is to be written in Z80 assembly language? The program that makes this ‘Z80 Pro- 2764 has 8k (8192) cells, and so on. The
Praveen Shankar grammer’ work is specific to it and hence Z80 assembly language has no connection
Haridwar only this programmer will work with it. with this. The unit uses a Z80 chip and so
The author, Prof. K. Padmanabhan The 8088 monitor program pertains to the we have given the operating program for
replies: 8088 kit only and is totally different. the unit in terms of Z80’s instruction set,
1. Programming any EPROM means 3. The numbers which go into the in the form of Z80’s assembly language.
filling its memory locations with code, character generator 2716 are, as given in The character generator codes are
i.e., numbers. Each cell in the chip is the article. Enter these numbers one-by- just numbers which give the pattern
written with a particular code, i.e., a one using the keyboard into the Z80-based of dots for each and every character—A,
number between 0 and 255 (or 00 to FF programmer unit and then run the pro- B, C, ... etc, while they appear on the
in hexadecimal notation). A ‘hexdump’ is gram for burning this data into the 2716 CRT screen. These numbers do not
just a series of numbers which occupy EPROM. In other words, use the present have anything to do with the Z80’s in-
these cells in the EPROM. In an EPROM Z80-based program unit to burn any struction sets, or for that matter, any
programmer, these numbers are entered EPROM with data. ‘Burning’ means writ- other microprocessor. ❑
A
mongst the 16-bit family of Intel ily, it has all of them at least partially. signing and proto-typing of the 8x9x prod-
microcontrollers, the 8098 is the For example, instead of eight analogue ucts. With its facilities, one can build a
one which is more economical and input channels on the main IC, this 48- prototype of the target product, develop
useful for developing a simple system for pin version has provision for four. Like- firmware for it, and debug and test its
understanding the architecture and soft- wise, the high-speed input and output fa- operation prior to the product entering
ware details of 8x9x family. Housed in a cilities are also available in a lesser quan- the manufacturing stage.”
48-pin DIP package (Fig.1), it has an 8- tity than in the main IC with the grid As the iSBE-96 is both expensive and
bit external data bus which is convenient chip carrier. Though the hardware fea- unobtainable, one Mr Coates developed
for interfacing to the byte-wide memory tures are present in slightly reduced pro- and published a system board working
IC’s data bus. Although it does not pos- portion in the 48-pin version of 8098, yet with a dumb terminal or PC as the host.
sess full features of the main 8x9x fam- all the software features of the main chip On this system, programs are developed
are fully supported by this smaller ver- only at machine-code level, by
sion as well. downloading instructions from the PC, or
In order to evaluate and understand the dumb terminal, which the system
the features and various other aspects of board executes. Even this is not a suffi-
the 8x9x family hardware and software, ciently handy system for quick and eco-
it is essential to have a system board nomical software development on this very
which is operating with the IC. Such sys- complex chip.
tems are not yet readily available in In- Therefore, it was decided (by the au-
dia, though Intel, itself markets a system thors) to develop and present a dedicated,
known as iSBE-96. As per Intel, “It is a simple but effective system development
tool available to designers for developing board/kit around this 8098, to enable all
systems based on the 8096 of its software and multi-tasking features
microcontroller. It uses the IBM PC to to be tested/experimented with and used
download to the iSBE-96, and is used in to develop suitable boards for the needed
typical development environment for de- instrumentation applications.
4
+5V
4
5
3
+5V
14
7
2
1
14
7
14
+5V
14
+5V
+5V
+5V
33
14
Unlike a simple beginner’s microproc- display for effectively using its software module LT-111R from Philips. Such dis-
essor kit, such as the 8085 or Z-80 kits repertoire. Therefore this development plays are now commonly available in our
with 7-segment and LED displays, this board has been designed using a 16-char- country from multiple sources.
development system needs alphanumeric acter, single-line alphanumeric display As instructions have to be entered for
Description
OPCODE
OPCODE
OPCODE
OPCODE
STATE➀
STATE➀
STATE➀
STATE➀
BYTES
BYTES
BYTES
BYTES
BYTES
BYTES
TIMES
TIMES
TIMES
TIMES
TIMES
TIMES
The circuit is described with refer-
STATE
STATE
OPERANDS
with very-low-level analogue signals.
OPCODE
OPCODE
OPCODE
OPCODE
Also, full 8-bit ports are not available;
STATEÀ
STATEÀ
STATEÀ
STATEÀ
BYTES
BYTES
BYTES
BYTES
BYTES
BYTES
TIMES
TIMES
TIMES
TIMES
TIMES
TIMES
STATE
STATE
only some bits are available for those
ports.
LOGICAL INSTRUCTIONS As with most Intel processors, the
AND 2 60 3 4 61 4 5 62 3 6/11 3 7/12 63 4 6/11 5 7/12 8-bit data bus is multiplexed with the
AND 3 40 4 5 41 5 6 42 4 7/12 4 8/13 43 5 7/12 6 8/13 low order address lines. However, in
ANDB 2 70 3 4 71 3 4 72 3 6/11 3 7/12 73 4 6/11 5 7/12
the 8x9x, there are two versions of the
ANDB 3 50 4 5 51 4 5 52 4 7/12 4 8/13 53 5 7/12 6 8/13
OR 2 80 3 4 81 4 5 82 3 6/11 3 7/12 83 4 6/11 5 7/12 address latch signal; one of them is
ORB 2 90 3 4 91 3 4 92 3 6/11 3 7/12 93 4 6/11 5 7/12 called ALE and the other is called ADV.
XOR 2 84 3 4 85 4 5 86 3 6/11 3 7/12 87 4 6/11 5 7/12 A 74LS373 IC is used for segregating
XORB 2 94 3 4 95 3 4 96 3 6/11 3 7/12 97 4 6/11 5 7/12
and latching A0 through A7 signals
DATA TRANSFER INSTRUCTIONS
LD 2 A0 3 4 A1 4 5 A2 3 6/11 3 7/12 A3 4 6/11 5 7/12
from the AD0-AD7. The data bus is
LDB 2 B0 3 4 B1 3 4 B2 3 6/11 3 7/12 B3 4 6/11 5 7/12 buffered using a 74LS245 bidirectional
ST 2 C0 3 4 – – – C2 3 7/11 3 8/12 C3 4 7/11 5 8/12 buffer. This is enabled by the RD sig-
STB 2 C4 3 4 – – – C6 3 7/11 3 8/12 C7 4 7/11 5 8/12 nal for data flow direction towards the
LDBSE 2 BC 3 4 BD 3 4 BE 3 6/11 3 7/12 BF 4 6/11 5 7/12
LDBZE 2 AC 3 4 AD 3 4 AE 3 6/11 3 7/12 AF 4 6/11 5 7/12
8098 data bus.
STACK OPERATIONS (internal stack) A dual 2-line to 4-line decoder IC,
PUSH 1 C8 2 8 C9 3 8 CA 2 11/15 2 12/16 CB 3 11/15 4 12/16 74LS139, is used as address decoder
POP 1 CC 2 12 – – – CE 2 14/18 2 14/18 CF 3 14/18 4 14/18 for memory and input-output address
PUSHF 0 F2 1 8 range selection. Address lines A14 and
POPF 0 F3 1 9
STACK OPERATIONS (external stack)
A15 are used to select a set of four
PUSH 1 C8 2 12 C9 3 12 CA 2 15/19 2 16/20 CB 3 15/19 4 16/20 groups of memory addresses in one of
POP 1 CC 2 14 – – – CE 2 16/20 2 16/20 CF 3 16/20 4 16/20 the decoders in the 64k address range
PUSHF 0 F2 1 12
POPF 0 F3 1 13
as under:
JUMPS AND CALLS 1. 0000H-3FFFH 2. 4000H-7FFFH
MNECONIC OPCODE BYTES STATES MNEMONIC OPCODE BYTES STATES 3. 8000H-BFFFH 4. C000H-FFFFH
LJMP E7 3 8 LCALL EF 3 13/16Ä The first group is meant for
SJMP 20-27Ã 2 8 SCALL 28-2FÃ 2 13/16Ä EPROM area, which contains the moni-
BR[ ] E3 2 8 RET F0 1 12/16Ä
tor program. The second address group
TRAPÂ F7 1
Notes: is used for input-output devices, and
À Number of state times shown for internal/external operands. therefore the ready pin 16 of the 8098
 The assembler does not accept this mnemonic is brought low when this group is
à The least significant 3 bits of the opcode are concatenated with the following 8 bits to form an 11-bit, 2's selected. This group is further subdi-
complement, offset for the relative call or jump vided into four smaller ranges in the
Ä State times for stack located internal/external.
Å The asssembler uses the generic jump mnemonic (BR) to generate this instruction. second decoder of 74LS139 as under:
1. 4000H-4FFFH 2. 5000H-5FFFH
quencies down to 4MHz could be used. 4 HSI.1
Here an 8MHz crystal has been used. The 5 HSI.2 or HSO.4
actual system clock is one-third of the crys- 6 HSI.3 or HSO.5
tal frequency and the state time is thus 7 HSO.0
325 ns (250 ns with 12MHz crystal). 8 HSO.1
Pins 11 and 37 are the ground or Vss 9 HSO.2
pins while pins 38 and 46 are connected 10 HSO.3
to positive 5 volts or Vcc. The reference 13 Port 2 bit 5 or PWM output
voltage for the analogue-to-digital coverter 43 Port 0.4 or analogue channel 4
section is applied at pin 45, which is also 42 Port 0.5 or analogue channel 5
connected here to +5V. Pin 44 is the ana- 40 Port 0.6 or analogue channel 6
logue ground pin. Though this has conti- 41 Port 0.7 or analogue channel 7
nuity with the digital ground or Vss, its 1 Transmit data or Port 2 bit 1
track has to be separately brought out for 2 Receive data or Port 2 bit 0
inputting the analogue signals. The vari- It may be noted that due to paucity of
ous high-speed input-output pins are given pins on this 48-pin chip, some pins assume
below for quick reference. a dual role, controlled by software, while
Pin Pin designation/ some functions are missing (not available).
no. function For example, analogue channels 0 through Fig. 6: Shows author’s prototype of 8098
3 HSI.0 3 for analogue input are not available development board
C2 81 70 ST 70, [80]+ ; Store from 70, 71 into address contains only a zero. Use of zero register addressing is depicted
; 8400 and increment in the following instruction:
E0 50 F1 DJNZ 50, Read ; Decrement word count Code Label Mnemonics Comments
; register A1 01 44 44 50 LD REG1 (50), ; Load reg. 1 with the con-
; and repeat read & store op. tents
27 FE Here: SJMP Here 4444H [0] ; of 4444H+0H
This is just equivalent to a direct or absolute memory ad-
4. Based or Indexed Addressing mode dressing.
The following is an example of short-indexed addressing.
This index can have values from -127 to +128. 6. Carry and Borrow in 8098
There is another form called long-indexed addressing. In In 8098, the C flag is set if there is no borrow in either a
this a full address range indexing is possible. subtract or compare instruction.
Code LabelMnemonics Comments CNP 50, #55 ; Compare the contents of
A1 20 84 50 LD REG 1, #8420H ; Reg1 IS 50 ; internal
; Load word into 50,51
A3 50 04 60 LD REG 2, 4 [reg1] ; Load word pointed to by TABLE VII
; reg. 1 + 4 into reg. 2 (60) HSO Command Tag Format
07 50 INC REG1 ; Increment register 1 D7 D6 D5 D4 D3 D2 D1 D0
A3 50 05 70 LD REG3, 5 [REG1] ; Load word pointed to X T D I n n n n
; by Reg1 +5 into Reg. Where X = Do not care
; 3(70) T = Timer2/Timer1
27 FE Here: SJMP Here D = Set/Clear HSO pin if relevant
Long Range Indexing: I = Interrupt On/Off
C3 51 00 10 60 ST REG2, nnnn = 0 - 5 = HSO0 - HSO5
1000H [REG1] ; STORE Contents of nnnn = 6 = HSO0 AND HSO1
; Register 2 at location nnnn = 7 = HSO2 AND HSO3
; pointed to by REG1 + 1000H nnnn = 8 - B = Software timers 8-B
nnnn = E = Reset Timer 2
5. Zero Register Addressing nnnn = F = Start ADC
There is a zero register or SRF at 0000H, which always
M
ost hi-fi audio CD systems It can retain data for a period of more than PARTS LIST
nowadays are available with ten years, including the current settings of Semiconductors:
remote control. However, no such volume, treble, balance, bass, as well as the IC1 - TDA7315 digitally controlled
circuit is available for adding to the AF on/off status of the main amplifier unit or audio processor
IC2 - MC68HC705KJ1CP
power amplifiers made as hobby projects. the relay status. The various audio param- Motorola microcontroller
The design of such an add-on circuit along eters can be stored in just six bytes. (GVC-AUD-257)
with remote control is presented here. It Mains power failure is quite common IC3 - 24C02 I2C serial EEPROM
can be used by hobbyists as an attachment in India. This does not allow the last set- IC4 - 7805 fixed regulator +5V
IC5 - 7809 fixed regulator +9V
to their audio power amplifiers. tings of volume, tone and balance to re- IC6 - µPD6121 infrared remote
This design is based on audio control- main intact. To overcome this the control
ler TDA7315 from SGS-THOMSON and microcontroller unit (MCU) must store all T1,T2,T3 - BC547 npn transistor
audio settings of the user in memory T4 - 2SC2001 npn transistor
Motorola microcontroller MC68HC705KJ1.
D0-D7 - Red LED
The microcontroller, after programming (EEPROM). The memory ensures that D8, D10-D11 - 1N4007 rectifier diode
with the specific software code for the cur- even after a power trip, the MCU will D9 - 8.2V,0.5W zener
rent application, has been renamed GVC- read the latest saved settings from the D12 - IR LED
AUD-257. Other construction projects by EEPROM. Resistors (all ¼ W, ± 5% carbon, unless
the author using the same series of Using two lines, SCL (serial clock) and stated otherwise):
R1,R2,R15,R16- 10-kilo-ohm
microcontrollers, which can be referred to SDA (serial data), the microcontroller can R3,R4,R14 - 1-kilo-ohm
for additional details, have been published read and write six bytes for all the audio R0,R5-R9,
in EFY in Jun. ’97 (Set-Top Converter) parameters. For more details on I2C bus R12,R13 - 330-ohm
reproduced in Electronics Project Vol. 18 and memory interfacing, please refer to R10,R11 - 5.6-kilo-ohm
R17 - 2-ohm, 0.5W
and Caller ID project, elsewhere in this Caller ID construction project, elsewhere R18,R19 - 200-kilo-ohm
volume. In addition to audio controller in this volume.
Capacitors:
and microcontroller the circuit comprises At power ‘on,’ the last-saved audio set- C1 - 10µF, 16V electrolytic
the following standard parts that are used tings are read by the MCU. In case memory C2-C4,C7,
in any normal system: IC cannot be read by the microcontroller, C19,C20 - 0.1µF ceramic disc
volume LED will blink three times to C15,C16,C9,
1. Power supply
C10,C11,C13 - 0.1µF polyester
2. LED indicator panel to indicate sta- indicate the problem. The possible reasons C5,C6 - 33pF ceramic disc
tus/keys pressed could be either a bad memory IC, or a C8 - 22µF, 25V electrolytic
3. Relay to switch on/off the supply to discontinuity/shorting of its tracks, or C12,C14 - 2.7nF polyster
C17,C18 - 2.2µF, 16V electrolytic
the power amplifier or the main unit improper insertion of the IC in its socket. C21,C22 - 220pF ceramic disc
The following parts are used in re- Under the circumstances, the unit will C23 - 10µF, 50V electrolytic
mote systems for VCR, TV, etc: still work, but it will not remember the Miscellaneous:
1. Memory (24C02). last settings and will select the centre RL1 - 12V, 150 ohm, SPST relay
2. Remote handset with 12 keys values of treble, balance and bass. Volume OEN Pt. No. 57DP-12-1C6
3. IR receiver for remote operation will be set at 50 per cent of the maximum XTAL - 4MHz quartz crystal
Y - 455kHz, ceramic resonator
Functionality of these parts is explain- value and the relay will be off. Loudness - Battery 1.5V, pencil cell
ed below with reference to Figs 1 and 3. and mute will also remain in the off mode. - IR sensor module
A remote handset can be used to change - Remote control handset,
the settings as desired. complete with keyboard
Description Audio controller. TDA7315 is a sin-
- Connectors for audio input-
output and power supply
Memory. 24C02 is an I2C bus compatible gle-chip I2C bus-compatible audio control- - 12V DC, 250mA battery
2k-bit EEPROM, organised as 256 x 8 bits. ler which is used to control all functions eliminator
figure out how the custom code for the IR receiver module. This is a 3-pin Relay. This relay is used to switch off
present remote control circuit has been device incorporating surface mount IC. the main power amplifier circuit. Thus,
arrived at. The key code for each key is Two pins are for +5V supply and ground when the unit is switched off from re-
annotated on the keys in Fig. 3. Grounding while the third pin is for data output. IR mote, supply to the amplifier circuit is
of SEL pin 7 results in bit D7 of key code to receiver module receives the data sent by switched off, and this saves electricity.
be set to 1. Hence, key at intersection of row remote handset, amplifies, demodulates Only the circuit in this construction arti-
0 and column 0 would generate 80H as the and converts it to MCU-compatible volt- cle remains active and waits for any re-
key code. Complete remote code table for age format and outputs it on its data out- mote key operation. Relay can be used to
the present circuit configuration is given put pin. The MCU can decode this signal control AC supply or DC supply of the
in Table V. and act as per the key pressed. amplifier as desired. This choice is left to
Readers Comments: ware, software, and documentation for 6121 (not available at Internet site of
❏ Can I use an IR sensor of the type developing projects using Motorola NEC)?
used in Philips CTV in the circuit? MC68HC705KJ1 MCU? Are there any Ronak Chokshi
❏ Is it possible to add a key-pad at the books available on this microcontroller Baroda
processor board, so that it can be oper- and I2C bus technology? ❏ Is TDA7315, which after program-
ated even without a remote control unit? Somnath Bhattacharyya ming is renamed as GVC-AUD257,
❏ Can we have PCB layout of remote Calcutta readily available in the market?
transmitter unit? ❏ What should be put in place of the ❏ Is the remote set with key-pads and
❏ Could you tell me from where to get sensor module for IR sensing? cabinet available with Kits‘n’Spares?
ready programmed microcontroller for the ❏ Where is the entire assembly of the ❏ What is the change observed when
circuit? project to be connected in an audio sys- 200k resistance is connected to pin 12 or
❏ Could I have addresses of vendors tem (CD system for example)? pin 13 of IC 6121 in remote control?
who can supply development tools, hard- ❏ How can I get data-sheet of processor ❏ I think there is no I/O pin free in the
O
ne of the most exciting and ad- board may be replaced by
venturous expeditions of this a conventional 8085 kit,
century was done not by a hu- but the port addresses
man being but by a small machine called have to be modified in the
Soujurner. It was a kind of rover that software accordingly.
traversed all the ridges and grooves on a 3. An IR or a RF link.
planet whose terrain was unknown to the Here an IR link has been
man of yesteryears. Well, before you be- used to reduce the com-
gin to think that a science fiction story is plexity of the project. But
going to be told, the author would like to with FM transmitters
enlighten you about the relevance of and receivers being eas-
Soujurner to this project, Soujunior. ily available in the mar-
The basic technology of Soujurner, as ket, all one has to do is Fig. 2: 8255 control word register
all technicians might know, consists of a to connect the FM trans-
receiver unit that receives signals or com- mitter in the final output stage at the
mands from humans on earth and ex- respective ends.
ecutes the instructions on the remote 8085 microprocessor-based control
planet. It also has an on-board microproc- unit. As we all know, the 8085 micro-
essor which helps it to take decisions on processor is intrinsically an 8-bit micro-
its own, in environments that are alien to processor, but it is more than sufficient
human kind. In this project a similar con- for real-time applications where rugged-
cept is used. Although it would not be as ness is a more important parameter than
complex as the Rover, it serves its pur- speed and complexity. The device has 40
pose. pins, and there is no need to discuss the
significance of each pin on the IC as it is
readily available in any microprocessor
Description handbook. But one significant pin which
This project basically consists of the many of us do not use much on the kits is
following modules (refer block diagram of the SID pin 5. It is the serial input data
Fig. 1). pin that can be used to get data serially
1. A PC from which information is into the microprocessor at the desired rate. Fig. 3: PC-transmitter interface
transmitted to the control unit wirelessly, There is also a complementary SOD pin 4
using either IR or RF beam. (not used here) which is used as serial tion in the software to convert it into an
2. An 8085 control unit receives the data output pin. The SID line is used by interrupt driven one.
signals serially and executes the instruc- using a software instruction called RIM Interfacing of the 8085 to the exter-
tions after it receives the execute com- in the 8085 assembly mnemonic. The demo nal world has been done using 8255 chip
mand from the PC. The microprocessor system here is not an interrupt driven (programmable peripheral interface or
one, al- PPI) which is present on most of the 8085
though it kits. The 8255 IC consists of 4 ports (port
requires A, port B, port C, and a control port or
only a register). Ports A through C can be
slight configured to operate as either input or
Fig. 1: Block diagram of Soujunior modifica- output ports depending on our require-
Software
The source code for the software at the
PC end and at the receiver end is given
below. The former software is written in
‘Turbo C’ while the latter software, to be
stored in the EPROM of 8085 kit, is writ-
ten in 8085 Assembly language.
The PC-end software is interactive.
When you run the program on the PC, it
prints the the following message on the
Fig. 7: Component layout for the PCB
computer screen:
8085 kit continuously scans the SID line. made available from port A as well as Enter Instruction key!
When it detects a low signal it identifies it port B of 8255. In response, you are required to enter
as the start bit. The first instruction bit is The outputs PA0 through PA3 (as well any one of the letters from ‘a’ through ‘e,’
scanned after a delay of 15 ms, i.e. at the as PB0 through PB3) of 8255 have been or ‘x’. While letters ‘a’ through ‘e’ are to
middle position of the first data bit. The used here to light LEDs (LED1 to LED4 be used for different instructions, letter
remaining three data bits are like-wise and LED5 to LED8 respectively). Open- ‘x’ is used for prompting the execution of
scanned after 10ms delay so that the scan- collector hex buffer/driver ICs 74LS07 the previously entered instructions.
ning is done at the middle position of each have been used to augment the output The binary codes transmitted in re-
bit. An instruction sequence comprising a drive capability of 8255 ports. sponse to depression of each of the
start bit 1 followed by binary bits 0010, as In actual practice an 8085 control unit abovementioned letters on the keyboard,
available on SID pin of 8085, is graphi- may not be required. But when the device together with messages printed on the
cally depicted in Fig. 5. (The logic level of to be controlled at the receiver end re- screen, are summarised in Table I. The
transmitted data is complement of the data quires some intelligence of its own (such last column indicates the LEDs at output
at SID pin). as a robot), a microprocessor board in- of register A and register B of 8255 at
It then stores the instruction compris- cluding on-board RAM, ROM, and PPI 8085 kit end which will sequentially light
ing four bits in sequential RAM addresses. facilities is essentially required. Such a up as a result of execution of specific in-
Readers Comments: mitter circuit to be in working condition. to be used. LEDs did glow in our prototype.
❑ Please answer the following queries But we don’t know how to check the re- As mentioned in the text, output pin of
regarding this circuit: ceiver circuit. the IR receiver module should be ‘high’
1. Should we cover the receiver mod- 5. We used Microsoft kit and port ad- when there is no IR transmission. It should
ule during reception as it receives only in dress 41h for Port A, 42h for Port B, and go ‘low’ when a modulated IR beam falls on
dark? 43h for Port C. Is there any possibility of it. Please check if you have used correct pin
2. Can we use FM receiver instead of error due to this address usage? connections in the module and whether the
the receiver module? K.R. Anuradha module’s frequency matches with transmit-
3. Did LEDs in your transmitter and Through e-mail ter’s modulating frequency.
receiver circuit glow? During our demo, EFY: IR receiver module receives in day- If you have used a different kit, you
LEDs in the transmitter and receiver did light too, so it need not be covered. We have have to change the port addresses (together
not glow. used IR receiver module during testing and with control word register address) in the
4. Using CRO, we confirmed the trans- it worked satisfactorily. FM receiver is not receiver-end program. ❑
A
t present, most uninterruptible are two basic configurations: high pass PARTS LIST
power supply (UPS) systems and low pass. Semiconductors:
available in the market provide The low pass type is generally pre- T1,T2,T3 - BC548 npn transistor
square wave output, which is unsuitable ferred because the feedback network at- T4,T5,T6,T7 - BC549 npn transistor
for powering those equipment which have tenuates harmonics of the fundamental T8,T9 - IRF250, n-channel power
rotating machinery such as induction mo- frequency, resulting in purer sine wave MOSFET
D1,D2 - 1N4007 rectifier diode
tors and blowers. Also, for computer sys- output. Accordingly, the low frequency D3,D4 - 12V, 1W zener diode
tems, which make use of linear power sup- model has been adopted here, which has
plies (for maintaining lower noise levels), resistors in the series arm and capacitors Resistors (all ¼-watt, ± 5% carbon, unless
square wave input results in higher noise in the parallel arms. The applicable for- stated otherwise):
level. mulas for the given configuration are: R1-R3,R5,R8 - 22-kilo-ohm
R4,R12 - 4.7-kilo-ohm
Sine wave (230V AC at 50 Hz) in- (a) Frequency R6,R10 - 68-kilo-ohm
verter is the ideal choice for powering R7,R23,R24 - 470-ohm
devices such as EPABX, cordless phone, R9 - 92-kilo-ohm
medical electronics equipment and even where C denotes shunt arm capaci- R11,R19,R20 - 100-ohm
TV, VCR, or computer etc, during mains tance and R the series arm resistance val- R13,R14 - 1-kilo-ohm
R15,R17 - 15-kilo-ohm
failure. Circuit of such an inverter, using ues. R16,R18 - 1.5-kilo-ohm
MOSFETs in the final power amplifier (b) Minimum required current gain = R21,R22 - 10-kilo-ohm
stage, is presented here. 56 [in common emitter configuration – for VR1,VR2 - 4.7 kilo-ohm pot
sustaining oscillations] Capacitors:
In Fig. 2, R = R1 = R2 = R3 = 22 kilo- C1,C2,C3 - 0.47µ, 25V tantalum
The Circuit ohm and C=C1=C2=C3=0.47µF provide a
C4,C6 - 1µF, 25V electrolytic
C5,C8 - 100µF, 16V electrolytic
An RC coupled oscillator has been cho- frequency of approximately 50 Hz. C7 - 10µF, 25V electrolytic
sen for developing the gate drive for the As amplitude of sine wave output from C9,C10 - 0.1µF polyster
final MOSFET power amplifier circuit (re- transistor T1 is quite low, it is amplified C11,C12 - 47µF, 25V electrolytic
fer Fig. 2) as it is inherently stable. There by transistors T2 and T3. The collector C13* - 12 or 16µF, 440V AC,
paper
load for transistor C14 - 0.1µF ceramic disc
T3 is a 9-volt
transistor radio’s Miscellaneous:
driver trans- X1 - Driver transformer
former. Capacitor (9V transistor radio type)
X2* - 9V-0-9V AC, 16A
C7 (10µF) was primary to 200V,0.75A
test selected for secondary transformer
the optimum - Battery 12V, 40Ah
pulse shape and - Heat sink, mica washers
amplitude (18V - Multi-strand teflon
insulated wire, teflon
peak-to-peak washers
across primary). - Heat sink compound
The value of ca-
pacitor C7 would its parameters may differ widely from one
depend upon the manufacturer to the other.
driver trans- With this circuit, a sine wave with a
Fig. 1: Oscilloscope picture of the sine wave output waveform former used, as peak amplitude of 6-volt across secondary
T
he course on microprocessors in vided in this kit. This is in addition to data, and mnemonics in the format as
most electronic engineering insti- the LCD display which shows the depicted in Table II.
tutions begins with Intel 8085. The address and data fields as well as the The second row in the table shows the
main reasons are that it is easy to under- mnemonics. The monitor program of the character slot positions of the LCD mod-
stand, can be taught at any level—school kit has provision for disassembly of in- ule. The third row shows how the high
or college—and covers all the essential structions, i.e., showing the mnemonic address 10H, the low address 00H, and
features of any general-purpose micropro- of the code at every location. While im- the data 3E at that address are shown
cessor. The blackboard teaching for this parting training, the instructor first asks towards the left half (character positions
microprocessor must be supplemented by the trainee to write the codes by refer- 1 to 8), while the mnemonics appear on
both practical training on circuit assem- ring to the instruction set, so that he the right half of the display (character
bly and testing, as well as simple exer- may get familiar with them. Subse- positions 9 to 16).
cises comprising elementary programs for quently, the instructor can check and The kit has provision for an EPROM
gaining confidence in the use of 8085 in- verify if the instructions are as per the (a 2716 or a 2764), which is preprog-
struction set. Although many commercial mnemonics using the disassembler mode rammed with the monitor program firm-
trainer kits are available in the market, (CRL +D). ware, given in Appendix ‘A’ as a hex dump.
with each one possessing certain unique The simply hexadecimal keyboard has This occupies pages 0 to 7 only. If one fits
features, for the purpose of gaining prac- only 16 key switches which make it com- a EPROM 2764, there is plenty of extra
tical knowledge, one should wire up a cir- pact. All commands are entered through space for the instructor to load teaching
cuit board himself. Amongst others, an the extra control (CRL) key. For example, programs for demonstration to students.
instructor should invariably do so before CRL key pressed together with numeric There is an additional socket which
embarking on teaching or writing texts key 1 will set the high address. Similarly, can hold a 6264 (8k RAM) or a 2864 (8k
for microprocessor training classes. Here CRL + 2 keys will set the low address, RAM) EEPROM. EEPROM 2864 is meant
is one such kit, which is not only compact while CRL + 3 keys will execute the pro- for students to try lengthy programs which
but also possesses certain features (needed gram at the current address, and so on. might take few days—with the kit being
for teaching purposes), hitherto not avail- Table I lists all these command instruc- turned off in the evening after the practi-
able in any of the commercial kits. tions. Incidentally, the same commands cal session. The EEPROM 2864 is pro-
This kit comprises an on-board LCD have been used by the authors in their grammed in-situ as one enters data into
display module. It has a 16-character, sin- book ‘Learn to
TABLE I
gle-line, alphanumeric display. This mod- Use Microproces-
ule has an integral microcontroller (such sors,’ with the ex- Command Key Usage for the LCD 8085 Kit
as KS0066 LCD driver IC from Samsung), ception of the key Keys Pressed Function
which easily interfaces to the 8085 kit. for disassembly (CRL + 1) Sets the high address to the value in the display
The module provides character display (CRL + D). (CRL + 2) Sets the low address to the value in the display
(CRL + 3) Executes program at the current address in display
(with contrast adjustment facility), which The LCD (CRL + 4) Decrements the address by one and shows data there
is a very useful feature for showing the module, which (CRL + 7) Stores the data into the address and increments it
mnemonics (e.g. MVI A, etc) on its screen. has a single-line, (CRL + 8)* Increments address only, does not store data
Such display modules are available for 16-character dis- (CRL + D) Starts to disassemble from the current address
about Rs 200. The total cost of compo- play, shows the *Note: CRL + 8 combination is used for disassembly and reading the
nents, including LCD modules, is not kit’s address, on-board EEROM which could be programmed on the kit.
likely to exceed Rs 1500.
Software exercises involving the TABLE II
8085’s arithmetic and logic instructions H. Addr. L. Addr. Data Mnemonics
can be executed and directly verified 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
through the in-built 8-bit LED port pro- 1 0 0 0 3 E M V I A
Description
The complete circuit schematic is shown
in Fig. 1. As with every 8085 circuit, there
is an address latch 74LS373 (IC2). Using
Fig. 1: Schematic diagram of 8085 microprocessor kit
a 6264 RAM in the socket for IC4. placeable part for the kit and each stu- under:
IC5 is the socket in which one can fix dent can have one for his programs, which 0000 - 1FFF Monitor EPROM space (If a 2716
an EEPROM, usually EEPROM 2864, he or she fits into the IC5 socket and is used, it would use 0000-07FF
only)
which is a 5V programmable device. This starts working. Address decoder IC6 2000 - 3FFF RAM address space (If a 6116 is
costs just around Rs 150. This is a re- (74LS139) decodes the address groups as used, it would use 2000-27FF only)
Now (45 4C 45 43 54 52 4F 4E 49 43 53) enter at 2100 onwards: The ascii codes for ‘Electronics.’ This will get displayed on the LCD
module’s display.
Appendix ‘A’
Hex Dump of 8085 Monitor Program for the Kit
Addr. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0000 C3 00 01 FF FF FF CD 50 01 C3 0A 01 FF FF FF FF
0010 4E C3 50 00 CD BF 00 D3 C1 CD BF 00 C3 06 00 FF
0020 FF FF FF FF FF FF FF FF FF FF FF
0030 FF FF FF FF FF FF FF FF FF FF FF
0040 CD 50 00 CD 50 01 C9 FF D3 C0 CD BF 00 C9 FF FF
0050 F5 3E 38 CD 48 00 3E 0E CD 48 00 3E 06 CD 48 00
0060 3E 80 CD 48 00 3E 01 CD 48 00 3E 80 D3 C0 7C E6
0070 F0 0F 0F 0F 0F CD D0 00 CD F0 00 7C E6 0F CD D0
0080 00 CD F0 00 3E 20 CD F0 00 7D E6 F0 0F 0F 0F 0F
0090 CD D0 00 CD F0 00 7D E6 0F CD D0 00 CD F0 00 3E
00A0 20 CD F0 00 79 E6 F0 0F 0F 0F 0F CD D0 00 CD F0
00B0 00 79 E6 0F CD D0 00 CD F0 00 F1 C9 FF FF FF F5
00C0 D5 11 30 09 1B 7A B3 C2 C4 00 D1 F1 C9 FF FF FF
00D0 FE 0A D2 D8 00 F6 30 C9 F6 40 D6 09 C9 3E C1 D3
00E0 C0 06 06 1A 13 CD F0 00 CD BF 00 05 C2 E3 00 C9
00F0 F5 DB C0 E6 80 C2 F1 00 F1 E6 7F D3 C1 C9 FF FF
0100 31 FF 27 21 00 20 4E CD 40 00 FE 40 D2 1C 01 47
0110 79 17 17 17 17 E6 F0 B0 4F C3 07 01 FE 42 C2 25
0120 01 69 C3 06 01 FE 41 C2 2E 01 61 C3 06 01 FE 44
0130 C2 37 01 2B C3 06 01 FE 47 C2 41 01 71 23 C3 06
0140 01 FE 43 C2 70 01 3E C1 D3 C0 3E 47 CD F0 00 E9
0150 DB 02 B7 FA 50 01 CD BF 00 DB 02 B7 00 00 00 F2
0160 59 01 CD BF 00 DB 02 B7 F2 59 01 EE C0 E6 4F C9
0200 4E 4F 50 20 20 20 CC D8 49 20 42 20 53 54 41 58
0210 20 42 49 4E 58 20 42 20 49 4E 52 20 42 20 44 43
021A 52 20 42 20 CD 56 49 20 42 20 52 4C 43 20 20 20
0230 20 45 52 52 20 20 44 41 44 20 42 20 4C 44 41 58
0240 20 42 44 43 58 20 42 20 49 4E 52 20 43 20 44 43
0250 52 20 43 20 CD 56 49 20 43 20 52 52 43 20 20 20
0260 FF 45 52 52 20 20 CC D8 49 20 44 20 53 54 41 58
0270 20 44 49 4E 58 20 44 20 49 4E 52 20 44 20 44 43
0280 52 20 44 20 CD 56 49 20 44 20 52 41 4C 20 20 20
0290 20 45 52 52 20 20 44 41 44 20 42 20 4C 44 41 58
02A0 20 44 44 43 58 20 44 20 49 4E 52 20 45 20 44 43
02B0 52 20 45 20 CD 56 49 20 45 20 52 41 52 20 20 20
02C0 52 49 4D 20 20 20 CC D8 49 20 48 20 D3 C8 4C 44
02D0 20 20 49 4E 58 20 48 20 49 4E 52 20 48 20 44 43
02E0 52 20 48 20 CD 56 49 20 48 20 44 41 41 20 20 20
02F0 20 20 20 20 20 20 44 41 44 20 48 20 CC C8 4C 44
0300 20 20 44 43 58 20 48 20 49 4E 52 20 4C 20 44 43
0310 52 20 4C 20 CD 56 49 20 4C 20 43 4D 41 20 20 20
0320 53 49 4D 20 20 20 CC D8 49 20 53 50 D3 D4 41 20
0330 20 20 49 4E 58 20 53 50 49 4E 52 20 4D 20 44 43
0340 52 20 4D 20 CD 56 49 20 4D 20 53 54 43 20 20 20
0350 20 20 20 20 20 20 44 41 44 20 53 50 CC C4 41 20
0360 20 20 44 43 58 20 53 50 49 4E 52 20 41 20 44 43
0370 52 20 41 20 CD 56 49 20 41 20 43 4D 43 20 20 20
0380 4D 4F 56 20 42 42 4D 4F 56 20 42 43 4D 4F 56 20
0390 42 44 4D 4F 56 20 42 45 4D 4F 56 20 42 48 4D 4F
03A0 56 20 42 4C 4D 4F 56 20 42 4D 4D 4F 56 20 42 41
03B0 4D 4F 56 20 43 42 4D 4F 56 20 43 43 4D 4F 56 20
03C0 43 44 4D 4F 56 20 43 45 4D 4F 56 20 43 48 4D 4F
03D0 56 20 43 4C 4D 4F 56 20 43 4D 4D 4F 56 20 43 41
03E0 4D 4F 56 20 44 42 4D 4F 56 20 44 43 4D 4F 56 20
03F0 44 44 4D 4F 56 20 44 45 4D 4F 56 20 44 48 4D 4F
0400 56 20 44 4C 4D 4F 56 20 44 4D 4D 4F 56 20 44 41
0410 4D 4F 56 20 45 42 4D 4F 56 20 45 43 4D 4F 56 20
0420 45 44 4D 4F 56 20 45 45 4D 4F 56 20 45 48 4D 4F
0430 56 20 45 4C 4D 4F 56 20 45 4D 4D 4F 56 20 45 41
0440 4D 4F 56 20 48 42 4D 4F 56 20 48 43 4D 4F 56 20
0450 48 44 4D 4F 56 20 48 45 4D 4F 56 20 48 48 4D 4F
0460 56 20 48 4C 4D 4F 56 20 48 4D 4D 4F 56 20 48 41
0470 4D 4F 56 20 4C 42 4D 4F 56 20 4C 43 4D 4F 56 20
0480 4C 44 4D 4F 56 20 4C 45 4D 4F 56 20 4C 48 4D 4F
0490 56 20 4C 4C 4D 4F 56 20 4C 4D 4D 4F 56 20 4C 41
04A0 4D 4F 56 20 4D 42 4D 4F 56 20 4D 43 4D 4F 56 20
04B0 4D 44 4D 4F 56 20 4D 45 4D 4F 56 20 4D 48 4D 4F
04C0 56 20 4D 4C 48 4C 54 20 20 20 4D 4F 56 20 4D 41
04D0 4D 4F 56 20 41 42 4D 4F 56 20 41 43 4D 4F 56 20
04E0 41 44 4D 4F 56 20 41 45 4D 4F 56 20 41 48 4D 4F
04F0 56 20 41 4C 4D 4F 56 20 41 4D 4D 4F 56 20 41 41
0500 41 44 44 20 42 20 41 44 44 20 43 20 41 44 44 20
0510 44 20 41 44 44 20 45 20 41 44 44 20 48 20 41 44
0520 44 20 4C 20 41 44 44 20 4D 20 41 44 44 20 41 20
0530 41 44 43 20 42 20 41 44 43 20 43 20 41 44 43 20
0540 44 20 41 44 43 20 45 20 41 44 43 20 48 20 41 44
0550 43 20 4C 20 41 44 43 20 4D 20 41 44 43 20 41 20
0560 53 55 42 20 42 20 53 55 42 20 43 20 53 55 42 20
0570 44 20 53 55 42 20 45 20 53 55 42 20 48 20 53 55
0580 42 20 4C 20 53 55 42 20 4D 20 53 55 42 20 41 20
0590 53 42 42 20 42 20 53 42 42 20 43 20 53 42 42 20
05A0 44 20 53 42 42 20 45 20 53 42 42 20 48 20 53 42
05B0 42 20 4C 20 53 42 42 20 4D 20 53 42 42 20 41 20
05C0 41 4E 41 20 42 20 41 4E 41 20 43 20 41 4E 41 20
05D0 44 20 41 4E 41 20 45 20 41 4E 41 20 48 20 41 4E
05E0 41 20 4C 20 41 4E 41 20 4D 20 41 4E 41 20 41 20
05F0 58 52 41 20 42 20 58 52 41 20 43 20 58 52 41 20
T
he circuit presented here is a code- the pairs, formed by IC2 plus IC5, IC3 PARTS LIST
based electronic locking system to plus IC6, and IC4 plus IC7, is routed via Semiconductors:
control the operation of several ap- push-to-on switches S1, S2, and S3 IC1, IC10 - NE555 timer
pliances. respectively. The three sets (each IC2-IC4 - CD4033 decade counter, 7-
segment decoder and
The circuit uses a three-digit decimal comprising a CD4033, a CD4017, and a 7- driver
coding system for operating any appliance. digit display) function independently with IC5-IC7 - CD4017 decade ring
Thus, for each appliance a unique three- the reset pin 15 of all CD4017 and CD4033 counter
digit code, from numbers 101 to 999, is ICs tied together. On reset, only the Y0 IC8 - CD4073 triple 3-input
AND gate
selected. outputs of the ring counter ICs (CD4017) IC9 - ULN2003 high-current
Although this circuit can be used to are high, while all other outputs (Y1 Darlington driver
control as many as 999 appliances, for the through Y9) are low. At this instant, the IC11 - UM66 musical tone
generator
sake of simplicity, the operation of just output of all CD4033 counters would also T1 - BC548 npn transistor
three appliances is being shown here. Ad- correspond to zero count and thus the D1-D5 - IN4007 rectifier diode
ditional appliances, if required, can be display would show 000. D6 - 3.1V zener diode
wired via the 10-pin connectors provided When the first clock pulse is applied to LED1-LED3 - Green LEDs
DIS.1-DIS.3 - LT543, 7-segment
in the circuit. For the operation of each any of the CD4017-CD4033 pairs, the high common cathode display
appliance, a manually-operated appliance- output of CD4017 shifts from Y0 to Y1. At
Resistors (all ¼ W, ± 5% carbon, unless
specific toggle switch is turned on prior to the same time the count on its paired stated otherwise):
the selection of the appliance code. CD4033 advances from zero to one and R1-R2 - 22-kilo-ohm
The code selection is done through the corresponding seven-segment also R3-R23,
R26-R28 - 1-kilo-ohm
three push-to-on switches, with each one displays 1. For the second clock pulse, the R24 - 100-kilo-ohm
associated with a specific digit. The se- high level shifts to Y2 output, the count on R25 - 100-ohm
lected number is displayed on three 7- the paired CD4033 increments by one Capacitors:
segment displays for a short duration. On count, and the corresponding display shows C1 - 0.1µF, 10V polyster
selection of any appliance, the counters 2. The count can be incremented by a C1 - 33µF, 25V electrolytic
and the displays are automatically reset. maximum of nine clock cycles when Y9 C2, C4, C5 - 0.01µF ceramic disc
C3 - 47µF, 25V electrolytic
However, the selected appliance stays on output goes high and the corresponding
Miscellaneous:
due to latching action of the relay, through display also shows 9. On the next clock Xtal - 3.579545 MHz crystal
a pair of its own contacts. A fresh selec- (tenth), the Y0 output again goes high and S1-S3 - Push-to-on switch
tion is accompanied by a short-duration the display also shows 0. Thereafter, the S4 - SPDT changeover switch
musical note. Arrangement for manual cycle repeats itself. S5-S7 - Simple on/off switch
RL1-RL3 - 6V, 100-ohm DPDT relay
resetting of the counters and displays is The outputs of ICs CD4017 (IC5 RL4 - 6V, 100-ohm SPDT relay
also included. through IC7) are connected to the inputs - Bergstrip male/female
of three 3-input AND gates N1, N2, and connectors
N3 inside IC8 (CD4073). Depending upon
The circuit the desired code for any given appliance’s connected for control of appliance number
The circuit consists of a 555 timer (IC1) operation, one can make corresponding 1 through high-current Darlington array
which is wired as an astable multivibrator connections from the outputs of CD4017 IC ULN2003 (input pin 2 and output pin
with 50 per cent duty cycle and a clock- ICs to the AND gate used for controlling 15) to DPDT relay RL1. When relay RL1
period of one second. The output of IC1 is the operation of the specific appliance. For energises, assuming switch S5 is in on po-
used as clock for CD4033 decade counter example, if you want code for appliance 1 sition, the relay gets latched as it receives
cum display driver ICs (IC2 through IC4) to be 794, then connect output Y7 of IC5, the positive supply via the switch and
and CD4017 Johnson ring counter ICs Y9 of IC6 and Y4 of IC7 to the inputs of ground via one of its N/O contacts. Thus,
(IC5 through IC7). In fact, the clock to AND gate N1. The output of gate N1 is once an appliance is operated after its cor-
Readers Comments:
❑ The display runs continuously from 0 The author, Vijay D. Sathe, replies: cuit given in Fig. 1 for switching purposes.
to 9, without stopping. I have assembled Mr Patil should check the tracks of the To enter the code 794, switch S1 should
the circuit on a self-etched PCB. push-to-on switches S1, S2, and S3—they be pressed seven times, S2 nine times,
Rakesh P. Patil may be shorted. He may remove the 555 and S3 four times.
Thane circuit from the system and use the cir- ❑
I
nduction motors are popular due to would depend on contactor and motor cur- without protections offered by the circuit
their low-cost, sturdy construction, rent ratings. The three phases from the of Fig. 2, is possible. The C and D points
fast pick-up, low maintenance ex- DOL starter are extended to the auto- are shorted (via switch S1 in off position)
penditure and good efficiency. The DOL matic starter circuit of Fig. 2 via points whereas E and F points remain open. In
(direct-on-line) starters and star/delta marked R’, Y’, and B’. The other points this state, relay contacts have no effect
starters used for starting and running of which are to be extended to Fig. 2 are on the DOL starter operation. The motor
induction motors provide coarse type of marked C through F. All the points can be switched on by momentary
protections against voltage fluctuations marked identically in Figs 1 and 2 are to operation of start switch S6 (green button).
and single phasing. Induction motors are be connected together. Please note that red (R) phase is always
very sensitive to low voltage and single Functions of switches and relays. connected to one side of the EM (electro-
phasing during which they draw a heavy To understand the circuit operation, it is magnetic) coil of contactor. The blue (B)
current and can burn out unless switched essential to know the effect of switches phase gets extended to the other side of
off within few seconds of occurrence of S1 through S6 and contacts of relays RL1 contactor coil through switch S6 (in
such conditions. This makes the require- and RL2 in on and off conditions. These depressed state), normally made contacts
ment of a sensitive protective device ab- are discussed below. of stop switch S5 (red button) and shorted
solutely essential to avoid burning of in- When switches S1 and S2 are off, only C and D points (via switch S1 in off
duction motors under such conditions. manual operation of the DOL starter, position). Once the contactor coil is
The circuit of an automatic starter,
incorporating the important features given
below, is described here. It is meant to be
used in conjunction with a DOL starter.
1. Under-voltage and over-voltage
cutout.
2. Single phasing prevention.
3. Automatic start on resumption of
proper conditions.
4. 24-hour programmable off timer
(on completion of actual run-time of the
motor).
5. Specially suited for remote opera-
tion of induction motor.
6. Simple, easy to construct, and low-
cost.
The circuit
As the circuit being described is required
to be used with a DOL starter, the inter-
nal diagram of the same is given in Fig.
1. The three phases (R, Y, and B) enter-
ing the starter are passed via fuses F1,
F2, and F3. The current rating of the fuses Fig. 1: Internal wiring diagram of a typical DOL starter
H
ere is a telephone line vigilant
circuit to guard against misuse
of your telephone lines. It moni-
tors telephone lines round-the-clock and
provides visual as well as an audio warn-
ing (when someone is using your tel-
ephone lines) which can be heard any-
where in the house.
Another advantage of using this cir-
cuit is that one comes to know of the mis-
use and snapping of the lines (due to any
reason) instantaneously, on its occurance.
This enables the subscriber to take neces-
sary remedial measures in proper time.
Various telephone line conditions and
resulting audio-visual indications avail-
able from the circuit are summarised in
Table I.
Even when the subscriber himself is
using his telephone (handset off-cradle)
while the vigilant circuit is on, the buzzer
beeps once every 5 seconds since the vigi-
lant circuit cannot distinguish between
self-use of the subscriber lines or its mis-
use by any unauthorised person. Thus to
avoid unnecessary disturbance, it is ad-
visable to install the vigilant unit away
from the phone. However, if one wishes to
fit the unit near the telephone then switch
S1 may be flipped to ‘off’ position to switch
off the buzzer. But remember to flip the
switch to ‘on’ position while replacing the
handset on cradle.
Irrespective of telephone line polarity C1 is used to check telephone line condi- not affected.
at the input to the circuit, proper DC po- tion as per Table I. This circuit draws neg- The circuit may be divided into two
larity is maintained across C1 due to ligible current from telephone line; parts. The first part comprises zener D9,
bridge rectifier comprising diodes D1 to D4. thus when it is connected to the telephone transistors T1 to T4 and diode D5. It is
The DC voltage developed across capacitor line, the normal telephone operation is used to verify whether telephone line loop
is intact or discontinuous. The second part
TABLE I comprising zener D10 and transistors T5
S. No. Telephone line Green Red Line Audio indication to T10 is used to check whether telephone
condition LED LED Voltage line is in use (or misuse) or not.
1. Telephone line Not Lit Lit 0V Continuous sound The zener diode D9 (3.3V) conducts
disconnected when phone line loop is intact and not bro-
2. Phone line in Lit Lit 9V DC Beep, once every ken. On conduction Zener D9 provides for-
use (H/S off-cradle) (approx.) 5-seconds ward bias for transistors T1, T2 and T3 to
3. Phone line not in use Lit Not Lit 48V DC No sound conduct and reverse bias for T4 to cut off.
(H/S on-cradle) As a result, green LED lights but no sound
V
oltage variations and power cuts high as well as low voltages and the volt- D4 is less then 5.6V. As a result transis-
adversely affect various equip age surges. It also gives a melodious tune tor T1 is in ‘off’ state. The DC voltage at
ment such as TVs, VCRs, music when mains power resumes after a break. the cathode of zener diode D5 is greater
systems and refrigerators. This simple cir- When mains voltage is normal, the than 5.6V and as a result transistor T2 is
cuit will protect the costly equipment from DC voltage at the cathode of zener diode in ‘on’ state. Consequently, relay RL1 gets
L
ight emitting diodes are advanta- sequencing operations. In the circuit only first clock pulse, pin 3 goes low and pin 2
geous due to their smaller size, one of the outputs remains high and goes high. Transistor T6 conducts and
low current consumption and the other outputs switch to high state letter ‘E’ lights up. The preceding letter
catchy colours they emit. Here is a run- successively on the arrival of each ‘W’ also remains lighted because of for-
ning message display circuit wherein the clock pulse. ward biasing of transistor T7 via diode
letters formed by LED arrangement light The timer NE555 (IC1) is wired as a D21. In a similar fashion, on the arrival
up progressively. Once all the letters of 1Hz astable multivibrator which clocks of each successive pulse, the other letters
the message have been lit up, the circuit the IC2 for sequencing operations. On of the display are also illuminated and
gets reset. reset, output pin 3 goes high and drives finally the complete word becomes visible.
The circuit is built around Johnson transistor T7 to ‘on’ state. The output of On the following clock pulse, pin 6 goes to
decade counter CD4017BC (IC2). One of transistor T7 is connected to letter ‘W’ of logic 1 and resets the circuit, and the
the IC CD4017BE’s features is its provi- the LED word array (all LEDs of a letter sequence repeats itself. The frequency of
sion of ten fully decoded outputs, making array are connected in parallel) and thus sequencing operations is controlled with
the IC ideal for use in a whole range of letter ‘W’ is illuminated. On arrival of the help of potmeter VR1.
Readers Comments: The author, V. Kannan, replies: say that transistors T1 to T7 (2N3053)
❑ The circuit seems to have been made In reply to Pradeep’s letter, I would like have a maximum current-rating of 700mA,
unnecessarily complicated. All diodes can to say that the idea of using IC whereas transistor 2N3055 has a current-
be eliminated by using 8-bit register IC 7AHCT164 is good, but the actual circuit rating of 3A-5A, which is not necessary.
74HCT164 in place of decade counter IC was designed using two 4017 ICs to ob- If transistor 2N3053 is not available, tran-
4017. tain a miltiplexed display. Since the cir- sistor 2N3447 or any npn transistor of
Pradeep G. cuit became too complicated, it was re- 500mA to 700mA current-rating can be
Alappuzhu drawn for simplicity keeping the basic used.
❑ Since the transistors T1 to T7 (2N3053) idea unchanged—allowing room for Cascading of diodes, as mentioned by
are not readily available in the market, multiplexing operations. Louis Mandya, would have the following
can we use transistor 2N3055 instead? In reply to Sundaresh, I would like to effect: base-terminal voltage of each suc-
V. Sundaresh
Salem
❑ Although the above-mentioned circuit
is functioning well, it can be further sim-
plified by using lesser number of diodes as
shown in Fig. 1.
Louis Mandya
Mandya
❑ What is the maximum number of LEDs
that can be used per word?
Ajay Gupta
Pantnager
❑ Can we increase or decrease the number
of characters in the message?
Faisel K. Qazi
New Mumbai Fig. 1: Suggested circuit for moving message display
COLOUR
SENSOR
TONY GLADVIN GEORGE
C
olour sensor is an interesting
project for hobbyists. The circuit
can sense eight colours, i.e. blue, 13
green and red (primary colours); magenta,
yellow and cyan (secondary colours); and
black and white. The circuit is based on
the fundamentals of optics and digital
electronics.
The object whose colour is required to
be detected should be placed in front of
the system. The light rays reflected from
the object will fall on the three convex
lenses which are fixed in front of the three
LDRs. The convex lenses are used to con-
verge light rays. This helps to increase
the sensitivity of LDRs.
Blue, green and red glass plates
(filters) are fixed in front of LDR1, LDR2
and LDR3 respectively. When reflected
light rays from the object fall on the
gadget, the coloured filter glass plates
determine which of the LDRs would get
triggered. The circuit makes use of only
‘AND’ gates and ‘NOT’ gates.
When a primary coloured light ray
falls on the system, the glass plate cor-
responding to that primary colour will
allow that specific light to pass through.
But the other two glass plates will not
A
high voltage power supply is a
very useful source which can be TABLE
effectively used in many appli- Details of the Transformer Windings
cations like biasing of gas-discharge tubes Windings No. of Standard wire
and radiation detectors etc. Such a power turns gauge (SWG)
supply could also be used for protection of Primary 50 31
property by charging of fences. Here the Feedback 12 31
current requirement is of the order of a Secondary 1650 41
few microamps. In such an application,
high voltage would essentially exist
between a ‘live’ wire and ground. When
this ‘live’ wire is touched, the discharge
occurs via body resistance and it gives a
non-lethal but deterrent shock to an in-
truder.
The circuit is built around a transis-
torised blocking oscillator. An important
element in this circuit is the transformer.
It can be fabricated using easily available
ferrite core. Two ‘E’ sections of the core
are joined face-to-face after the enamelled
copper wire wound on former is placed in
it. The details of the transformer windings
are given in the Table.
In this configuration, the primary wind- The primary oscillations amplitude is stant load, the final voltage can be ad-
ing and the feedback winding are arranged about 24V(p-p). This gets further ampli- justed by varying the supply voltage. The
such that a sustained oscillations are fied due to the large step-up ratio of the present configuration gives 2 kV for an
ensured once the supply is switched on. transformer and we get about 800V(p-p) input DC voltage of 15 V. Though higher
The waveform’s duty cycle is asymmetri- across the secondary. A simple series volt- voltages could be achieved by increasing
cal, but it is not very important in this age multiplier (known as Cockroft-Walton input supply, one word of caution is
application. Please note that if the oscilla- circuit) is used to boost up this voltage necessary: that the component ratings
tions do not occur at the ‘switch-on’ time, in steps to give a final DC voltage of about have to be kept in mind. If the ratings are
the transformer winding terminals of the 2 kV. exceeded then there will be electrical
feedback or the primary winding (but not The output voltage, however, is not discharges and breakdowns, which will
both) should be reversed. very well regulated. But if there is a con- damage the device.
M
any a times one needs an ex- application as bell sound generator, The dual-tone ring signal is output from
tra telephone ringer in an ad- requires very few external parts. It is pin 8 of IC1 and its volume is adjusted
joining room to know if there is readily available in 8-pin mini DIP pack. by volume control VR1. Thereafter, it is
an incoming call. For example, if the Resistor R3 is used for bell sensitivity impressed on the piezo-ceramic sound
telephone is installed in the drawing room adjustment. The bell frequency is control- generator.
you may need an extra ringer in the
bedroom. All that needs to be done is to
connect the given circuit in parallel with
the existing telephone lines using twin
flexible wires.
This circuit does not require any ex-
ternal power source for its operation. The
section comprising resistor R1 and diodes
D5 and LED1 provides a visual indica-
tion of the ring. Remaining part of the
circuit is the audio ringer based on IC1
(BA8204 or ML8204). This integr- ated
circuit, specially designed for telec- om
H
ere is a handy zener diode for four 1.5V batteries and the remaining quired AC voltage across transformer’s
tester which tests zener diodes one-third is sufficient for accommodating 230V AC terminals. This AC voltage is con-
with breakdown voltages ex- this circuit. In this circuit a commonly verted to DC by diode D1 and filter capaci-
tending up to 120 volts. The main ad- available transformer with 230V AC pri- tor C2 and is used to test the zener diodes.
vantage of this circuit is that it works mary to 9-0-9V, 500mA secondary is used R3 is used as a series current limiting
with a voltage as low as 6V DC and in reverse to achieve higher AC voltage resistor.
consumes less than 8 mA current. across 230V AC terminals. After assembling the circuit, check DC
The circuit can be fitted in a 9V bat- Transistor T1 (BC547) is configured voltage across points A and B without
tery box. Two-third of the box may be used as an oscillator and driver to obtain re- connecting any zener diode. Now switch
T
he circuit of automatic emer- tery voltage is about 10.2V, or to 325 mA Thus, relay RL3 is ‘on’ and relay RL4 is
gency light presented here has when battery voltage is about 13.5V. ‘off.’
the following features: When the battery charges to 13.5V But as soon as the battery voltage
1. When the mains supply (230V AC) (as set by VR2), zener diode D17 breaks falls to about 10.2V (as set by preset
is available, it charges a 12V battery up down, thereby triggering triac TR1. Now, VR1), zener diode D16 comes out of
to 13.5V and then the battery is discon- since DC is passing through the triac, it conduction, making pin 2 low and pin 3
nected from the charging section. remains continuously ‘on’ even if the gate high to turn ‘on’ relay RL4 and orange
2. When the battery discharges up to current is reduced to zero (by disconnect- LED D13. This also switches off relay
10.2V, it is disconnected from the load ing the gate terminal). Once the battery RL3 and LED D15.
and the charging process is resumed. is fully charged, charging section is cut- Now, if the mains is available, charg-
3. If the mains voltage is available off from the battery due to energisation of ing restarts due to de-energisation of re-
and there is darkness in the room, load relay RL2. This relay remains ‘on’ even if lay RL2 because when relay RL4 is ‘on,’
(bulb or tube) is turned on by taking power the power fails because of connection to it breaks the circuit of relay RL2 and triac
from the mains; otherwise the battery is the battery via diode D10. Switch S4, a TR1. But if the mains supply is not
connected to the load. normally closed switch, is included to present, both relays RL3 and RL1
4. When the battery discharges up to manually restart the charging process if de-energise, disconnecting the battery
10.2V and if the mains is not yet avail- required. from the remaining circuit.
able, the battery is completely discon- Battery disconnect and charging Thus when battery voltage falls to 10.2
nected from the circuit to avoid its fur- restart section comprises an NE555 volts, its further discharge is curtailed.
ther discharge. timer (IC2) wired as
The mains supply of 230V AC is monostable multi-
stepped down to 18V AC (RMS) using a vibrator. When the bat-
230V AC primary to 0-18V AC, 2A sec- tery voltage is above
ondary transformer (X1), generally used 10.2V (as indicated by
in 36cm B&W TVs. Diodes D1 through red LED D15), zener
D4 form bridge rectifier and capacitor C5 diode (D16) remains in
filters the voltage, providing about 25V the breakdown region,
DC at the output. making the trigger pin
Charging section includes 33-ohm, 10- 2 of IC2 high, thereby
watt resistor R2 which limits the charg- maintaining output pin
ing current to about 425 mA when bat- 3 in low voltage state.
A
n ordinary automatic room power
control circuit has only one light
sensor. So when a person enters
the room it gets one pulse and the lights
come ‘on.’ When the person goes out it
gets another pulse and the lights go ‘off.’
But what happens when two persons en-
ter the room, one after the other? It gets
two pulses and the lights remain in ‘off’
state.
The circuit described here overcomes
the above-mentioned problem. It has a
small memory which enables it to auto-
matically switch ‘on’ and switch ‘off’ the
lights in a desired fashion.
The circuit uses two LDRs which are
placed one after another (separated by a
distance of say half a metre) so that they
may separately sense a person going into
the room or coming out of the room.
Outputs of the two LDR sensors, af-
ter processing, are used in conjunction
with a bicolour LED in such a fashion
that when a person gets into the room it
emits green light and when a person goes
out of the room it emits red light, and
vice versa. These outputs are simultane-
ously applied to two counters.
One of the counters will count as +1,
+2, +3 etc when persons are coming into
the room and the other will count as -1,
-2, -3 etc when persons are going out of
the room. These counters make use of
Johnson decade counter CD4017 ICs. The
next stage comprises two logic ICs which
can combine the outputs of the two
counters and determine if there is any
person still left in the room or not.
Since in the circuit LDRs have been
used, care should be taken to protect them
from ambient light. If desired, one may
use readily available IR sensor modules
to replace the LDRs. The sensors are in-
stalled in such a way that when a person
enters or leaves the room, he intercepts
the light falling on them sequentially—
one after the other.
When a person enters the room, first
he would obstruct the light falling on
LDR1, followed by that falling on LDR2.
When a person leaves the room it will be
the other way round.
In the normal case light keeps falling
on both the LDRs, and as such their
TELECOM HEADSET
T.K. HAREENDRAN
A
compact, inexpensive and
low component count
telecom head-set can be
constructed using two readily avail-
able transistors and a few other elec-
tronic components. This circuit is
very useful for hands-free operation
of EPABX and pager communica-
tion. Since the circuit draws very
little current, it is ideal for parallel
operation with electronic telephone
set.
Working of the circuit is simple
and straightforward. Resistor R1
and an ordinary neon glow-lamp
forms a complete visual ringer cir-
cuit. This simple arrangement does
not require a DC blocking capacitor be- The bridge rectifier using diodes D1 Section comprising transistor T1, re-
cause, under idle conditions, the telephone through D4 acts as a polarity guard which sistors R2, R3 and zener diode D6 forms a
line voltage is insufficient to ionise the protects the electronic circuit from any constant voltage regulator that provides a
neon gas and thus the lamp does not light. reversal in the telephone line polarity. low voltage output of about 5 volts.
Only when the ring signal is being Zener diode D5 at the output of this bridge Dial tone and speech signals from ex-
received, it flashes at the ringing rate to rectifier is used for additional circuit pro- change are coupled to the audio amplifier
indicate an incoming call. tection. stage built around transistor T2 and re-
T
he circuit shown here is used to The circuit can be implemented using than 100 kilo-ohms in darkness, is at the
switch on a lamp when the tele- just two ICs. A light dependent resist- heart of the circuit.
phone rings, provided that the ance (LDR), with about 5 kilo-ohms re- The circuit is fully isolated from the
ambient light is insufficient. sistance in the ambient light and greather phone lines and it draws current only
T
his over/under voltage cut-out mains voltages. inside 555 timer ICs. Supply is tapped
will save your costly electrical The circuit features auto reset and from different points of the power supply
and electronic appliances from the utilises easily available components. It circuit for relay and control circuit opera-
adverse effects of very high and very low makes use of the comparators available tion to achieve reliability.
CLAP REMOTE
S. CHANDRA SEKHAR
A
n infra-red or wireless remote erated switch has the advantage that the hand. These switches may be used to con-
control has the disadvantage that transmitter is always with you. This trol lights or fans—or anything else that
the small, handy, remote (trans- project offers a way to control up to four does not produce too loud a sound.
mitter) is often misplaced. The sound op- latching switches with two claps of your To prevent an occasional loud sound
TIME SWITCH
AVNISH PUNDIR
T
his circuit is especially designed one up. The switch circuit described here sides, this time switch can also be used to
for those who often need to wake will come handy; it can be used to switch switch on/off any other electric or elec-
up early in the morning. Ordinary on a TV, radio or tape recorder etc, which tronic gadget at any time. What you need
alarms in electronic watches are not loud will not allow even the laziest amongst us is a simple analogue electronic clock with
enough and very often they fail to wake to ignore their sound for too long. Be- alarm facility and a small circuit to im-
Readers Comments: P. Sasi Kumar receives clock signal via the detector.
❑ In electronic clocks, if we set the alarm Coimbatore At switching on instant, the flip-flop out-
to sound, say, 45 minutes after the set The author Avnish Pundir replies: put at point ‘D’ will be in high state. After
time, the alarm will sound after 45 min- As per your question, the time switch first pulse from detector, point D would go
utes and then stop automatically. How- is going to toggle after 45 minutes ‘if the low and remain so, irrespective of whether
ever, in your circuit, if the clock continues clock pulses arrive again.’ But this can- more pulses arrive or not. So, there cannot
to be used after the set time, it will toggle not happen as the R-S latch is being used be any toggling of flip-flop, until and unless
when the clock pulses arrive again after in the circuit whose one input is perma- there is a power loss or somebody shorts
the set time. nently connected to +Vcc and the other capacitor ‘C2’ momentarily.
H
ere is a simple, versatile circuit
which indicates the level of
water in a tank. This circuit pro-
duces alarm when water level is below
the lowest level L1 and also when water
just touches the highest level L12. The
circuit is designed to display 12 different
levels. However, these display levels can
be increased or decreased depending
upon the level resolution required. This
can be done by increasing or decreasing
the number of level detector metal strips
(L1 through L12) and their associated
components.
In the circuit, diodes D1, D2 and D13
form half-wave rectifiers. The rectified
output is filtered using capacitors C1
through C3 respectively.
Initially, when water level is below
strip L1, the mains supply frequency os-
cillations are not transferred to diode D1.
Thus its output is low and LED1 does not
glow. Also, since base voltage of transister
T1 is low, it is in cut-off state and its
collector voltage is high, which enables
melody generating IC1 (UM66) and alarm
is sounded.
When water just touches level detec-
tor strip L1, the supply frequency oscilla-
tions are transferred to diode D1. It
rectifies the supply voltage and a positive
DC voltage develops across capacitor C1,
which lights up LED1. At the same time
base voltage for transistor T1 becomes
high, which makes it forward biased and
its collector voltage falls to near-ground
potential. This disables IC1 (UM66) and
alarm is inhibited.
Depending upon quantity of water
present in the tank, corresponding level
indicating LEDs glow. It thus displays
intermediate water levels in the tank in
bar-graph style.
When water in the tank just touches
the highest level detector strip L12, the
DC voltage is developed across capacitor
C2. This enables melody generating IC1
(UM66) and alarm is again sounded.
T
he circuit shown here is that of proximately 6.9 volts which is obtained the battery remains on charge via N/O
the IC controlled emergency using diode D5 (1N4148) and 6.2-volt contacts of relay RL1 and current limit-
light. Its main features are: auto- zener D6. The inverting pin of IC1 is ing resistor R2. When battery voltage ex-
matic switching-on of the light on mains connected to the positive terminal of bat- ceeds 6.9 volts (overcharged condition),
failure and battery charger with over- tery. Thus when mains supply is present, IC1 output goes low and relay RL1 gets
charge protection. IC1 comparator output is high, unless de-energised, and thus stops further
When mains is absent, relay RL2 is in battery voltage exceeds 6.9 volts. So tran- charging of battery.
de-energised state, feeding battery supply sistor T1 is normally forward biased, MOSFETs T3 and T4 may be
to inverter section via its N/C contacts and which energises relay RL1. In this state mounted on suitable heat sinks.
switch S1. The in-
verter section com-
prises IC2 (NE555)
which is used in
astable mode to
produce sharp
pulses at
the rate of 50 Hz
for driving the
MOSFETs. The
output of IC3 is fed
to gate of MOSFET
T4 directly while
it is applied to
MOSFET T3 gate
after inversion by
transistor T2. Thus
the power amplifier
built around
MOSFETs T3 and
T4 functions in
push-pull mode.
The output
across secondary of
transformer X2 can
easily drive a 230-
volt, 20-watt
fluorescent tube. In
case light is not
required to be on
during mains fail-
ure, simply flip
switch S1 to off po-
sition.
Battery over-
charge preventer
circuit is built
around comparator
IC1 (LM308). Its
non-inverting pin
is held at a refer-
ence voltage of ap-
A
continuously working wiper
in a car may prove to be a
nuisance, especially when it
is not raining heavily. By using the
circuit described here one can vary
sweeping rate of the wiper from once
a second to once in ten seconds.
The circuit comprises two timer
NE555 ICs, one CD4017 decade
counter, one TIP32 driver transistor,
a 2N3055 power transistor (or
TIP3055) and a few other discrete
components.
Timer IC1 is configured as a
monostable multivibrator which pro-
duces a pulse when one presses
switch S1 momentarily. This pulse
acts as a clock pulse for the decade
counter (IC2) which advances by one
count on each successive clock pulse
or the push of switch S1.
Ten presets (VR1 through VR10),
set for different values by trial and
error, are used at the ten outputs
of IC2. But since only one output of
IC2 is high at a time, only one pre-
set (at selected output) effectively
comes in series with timing resistors
R4 and R5 connected in the circuit
of timer IC3, which functions in
astable mode.
As presets VR1 through VR10 are
set for different values, different time
periods (or frequencies) for astable
multivibrator IC3 can be selected.
The output of IC3 is applied to pnp
driver transistor T1 (TIP32) for driv-
ing the final power transistor T2
(2N3055) which in turn drives the
wiper motor at the selected sweep
speed. The power supply for the wiper
motor as well as the circuit is tapped
from the vehicle’s battery itself. The
duration of monostable multivibrator
IC1 is set for a nearly one second
period.
A
CD-ROM drive can be used as a
stand-alone unit for playing dig-
ital audio CDs without interfac-
ing with a computer. The stereo output of
CD player available at the audio jack can
be amplified using audio input facility
which is normally available on a
tape-deck/tape-recorder or a stereo am-
plifier. Audio socket on front/rear of the
CD-ROM drive is capable of driving head-
phones or speakers of less than 500 mW.
Proper stereo jacks for interconnection
between CD-ROM drive and tape deck
are available from computer/tape recorder
spares vendors. The principle of opera-
tion is illustrated here with the help of
block diagram.
The 4-pin power supply socket avail-
able at the rear of a CD-ROM player is
meant for +5V, ground (two middle pins)
and +12V inputs. The power supply can mains since it has self-contained power routed using a yellow wire and
be easily derived using a conventional supply circuit inside. for +5V a red wire is used, while for
power supply circuit as shown in the fig- While there may be minor differences ground black wires are used with the
ure. If you have an external CD-ROM amongst the available CD-ROM drives’ supply connector.
drive, it can be simply plugged into the external controls, a typical drive’s con- Once the power supply has been
trols are shown in the figure connected correctly, you will notice
here. Please ensure that a that LED indicator on the drive starts
proper power supply connector flashing. Now the digital audio CD can
available from computer spare be loaded after pushing the eject button.
parts vendor is used for A second push of the same button causes
connection to CD-ROM drive. To retraction of CD carriage into the drive.
identify +5V and +12V pins on One can change the track (song) on the
the drive connector, please note CD using play switch on the
that in the computer +12V is CD-ROM drive.
T
his circuit lights up ten bulbs In this circuit, gates N1 and N2 form Depending on the logic state at its pin
sequentially, first in one direction an oscillator. The output of this oscillator 10, the counter counts up or down. During
and then in the opposite direction, is used as a clock for BCD up/down counter count up operation, pin 7 of IC2 outputs
thus presenting a nice visual effect. CD4510 (IC2). an active low pulse on reaching the ninth
S
trobe lights are widely used by For convenience and simplicity, an may be powered by two medium-size dry
disco lovers to create wonderful ordinary neon lamp is used here in place cells (3V) or Ni-Cd cells (2.4V).
visual effects in disco halls and of the conventional Xenon tube. The whole Transistors T1 and T2 in the
auditoria. The circuit of a battery oper- gadget can thus be easily accommodated circuit form a complimentary-pair ampli-
ated portable miniature strobe light, in a small cabinet, such as a mains adap- fier. When switch S1 is momentarily
which can be constructed using readily tor cover, with a suitable reflector for neon depressed, the circuit oscillates because
available inexpensive components, is lamp to give a proper look. Since current of the positive feedback provided via re-
described here. requirement of this circuit is very small, it sistor R2 and capacitor C1 to the base of
T
he circuit presented here can be goes low. This makes transistor T16 to on photo-transistor T8.
used as a lock for important cut-off, and its collector voltage goes high. IC1 will get enabled only when the
electronic/electrical appliances. This logic high on its collector terminal card is completely inserted inside the lock
When card is inserted inside its mecha- will inhibit IC1 as long as light is present mechanism. This arrangement ensures
nism, depending upon the
position of punched hole on
the card, a particular ap-
pliance would be switched
on.
The card is inserted just
like a floppy disk inside the
disk drive. This card should
be rectangular in shape
with only one punched hole
on it.
The circuit uses eight
photo-transistors (T1
through T8). When there is
no card in the lock, light
from incandescent lamp L1
(40-watt, 230V) falls on all
the photo- transistor detec-
tors. Transistor T8 is used
as enable detector for IC1
(74LS244). When light is
incident on it, it conducts
and its collector voltage
PC-BASED 7-SEGMENT
ROLLING DISPLAY
PRASHANT R. DESHMUKH
I
t is very interesting and con
venient to be able to control
everything while sitting at your
PC terminal. Here, a simple hard-
ware circuit and software is used to
interface a 7-segment based rolling
display.
The printer port of a PC pro-
vides a set of points with some act-
ing as input lines and some others
as output lines. Some lines are open
collector type which can be used as
input lines. The circuit given here
can be used for interfacing with
any type of PC’s printer port.
The 25-pin parallel port connec-
tor at the back of a PC is a combi-
nation of three ports. The address
varies from 378H-37AH. The 7 lines
of port 378H (pins 2 through 8) are
used in this circuit to output the
code for segment display through
IC1. The remaining one line of port
378H (pin 9) and four lines of port
37AH (pins 1, 14, 16, 17) are used
to enable the display digits (one a
time) through IC2.
The bits D0, D1 and D3 of port
37AH connected to pins 1, 14 and
17 of ‘D’ connector are inverted by the After the display of all characters/ The program for rolling display is
computer before application to the pins digits in this way, the cycle repeats itself given in the listing DISP.C above. What-
while data bit D2 is not inverted. There- over and over again. Because of this rep- ever the message/characters to be dis-
fore to get a logic high at any of former etition at a fairly high rate, there is an played (here five characters have been
three pins, we must send logic 0 output to illusion that all the digits/characters are displayed), these are separated and stored
the corresponding pin of port 37AH. continuously being displayed. DISP1 is to in an array. Then these are decoded.
Another important concept illustrated be physically placed as the least signifi- Decoding software is very simple. Just
by the project is the time division cant digit. replace the desired character with the
multiplexing. Note that all the five 7- IC1 (74LS244) is an octal buffer which binary equivalent of the display code. The
segment displays share a common data is primarily used to increase the driving display code is a byte that has the
bus. The PC places the 7-segment code capability. It has two groups of four buff- appropriate bits turned on. For example,
for the first digit/character on the data ers with non-inverted tri-state outputs. to display character ‘L’, the segments to
bus and enables only the first 7-segment The buffer is controlled by two active low be turned on are f, e and d. This is equiva-
display. After delay of a few millisec- enable lines. IC2 (75492) can drive a maxi- lent to 111000 binary or 38 hex.
onds, the 7-segment code for the digit/ mum of six 7-segment displays. (For Please note that only limited charac-
character is replaced by that of the next driving up to seven common-cathode dis- ters can be formed using 7-segment dis-
charter/digit, but this time only second plays one may use ULN2003 described in play. Characters such as M, N and K
display digit is enabled. the previous circuit idea.) cannot be formed properly.
CONTACTLESS AC MAINS
VOLTAGE DETECTOR
PRADEEP G.
T
his is a CMOS IC (CD4033) based input impedance is ex-
circuit which can be used to de- tremely high and thus the
tect presence of AC mains volt- induced voltage is sufficient
age without any electrical contact with to clock the counter IC. Thus
the conductor carrying AC current/volt- display count advances rap-
age. Thus it can be used to detect mains idly from 0 to 9 and then
AC voltage without removing the insula- repeats itself. This is the
tion from the conductor. Just take it in indication for presence of
the vicinity of the conductor and it would mains supply. Display stops
detect presence of AC voltage. advancing when the unit is
If AC voltage is not present, the dis- taken away from the mains
play would randomly show any digit (0 carrying conductor.
through 9) permanently. If mains supply For compactness, a 9-
is available in the conductor, the electric volt PP3 battery may be
field would be induced into the sensing used for supply to the
probe. Since IC used is CMOS type, its gadget.
H
ere is a simple technique for ter are not used. When a wave is found, limit (UL) of frequency is given by
measuring frequencies over along with its time-period and frequency UL=19xN5 Hz. Thus for MOD 16 counters
quite a wide frequency range components, its measurement precision in UL≈20 MHz, and for MOD 10 counters
and with acceptable accuracy limits us- percentage is also calculated and dis- UL≈1.9 MHz. Care should be taken to
ing a PC. It follows the basic technique of played. Number of data taken in 54.9 ms ensure that this upper limit is within the
measuring low frequencies, i.e. at low is also displayed. operating frequency range of counter IC
frequency, period is measured for a com- As stated above, the lower starting used. Precision of measurement is a ma-
plete wave and frequency is calculated range is about 19 Hz. Data is read for chine-dependent parameter. High-speed
from the measured time-period. approximately 54.9 ms. Thus, the lowest machines will have better precision com-
Cascaded binary counters are used for possible frequency that can be measured pared to others. Basically, precision de-
converting the high-frequency signals into is 1/.0549 Hz. Lower frequency range de- pends directly upon the number of data
low-frequency signals. The parallel port pends only on the sampling time and is read in a standard time. Precision of mea-
of a computer is used for data input from practically fixed at 19 Hz (18.2 Hz, to be surement varies inversely as the value of
binary counters. This data is used for precise). Upper frequency range depends MOD counter used. Precision is high when
measuring time and calculating the on factors such as value of the MOD coun- MOD 10 counters are used in place of
frequency of the signal. ter used and the operating frequency MOD 16 counters, but this will restrict
The block diagram shows the basic range of the counter IC. If MOD-N coun- the upper limit of frequency measurement
connections of the counters and parallel ter is used (where N is an integer), upper and vice-versa.
port pin numbers on 25-pin ‘D’ connector
of a PC (control register 379 Hex is used
for input). External hardware is used only
for converting the higher frequency sig-
nals into low frequency signals. Thus, the
major role in frequency-measurement is
played by the software.
The PC generates a time-interrupt
at a frequency of 18.21 Hz, i.e. after
every 54.92 millisecond. Software uses
this time-interrupt as a time-reference.
The control register of the PC’s parallel
port is read and the data is stored con-
tinuously in an array for approximately
54.9 ms using a loop. This stored data is
then analysed bit-wise. Initially, the
higher-order bit (MSB or the seventh-
bit) of every array element is scanned
for the presence of a complete square
wave. If it is found, its time period is
measured and if not then the second-
highest order bit (sixth bit) is scanned.
This operation is performed till the third
bit and if no full square wave is still
found, an error message is generated
which indicates that either there is an
error in reading or the frequency signal
is lower than 19 Hz.
Lower three bits of the control regis-
M
void interrupt new_clock (); if(st==3) /* calculate frequency of the wave */
static int t;
A
{mul=1; for(j=3;j<k;j++) mul=mul*MOD;count--;
void main() printf(“%d %f %d “,k,mul,count);
R
{ /* tick = Time for which LPT will be read */ tm=((count*div)/mul); fq=1/tm; pri=(100.0/count);
G
float div,mul,tick=54800.0; /* tick is in micro sec. */ gotoxy(20,7); printf(“Frequency = %0.3lf Kilo Hz “, fq*1000);
double fq,tm,pri; gotoxy(20,10); printf(“Time = %0.3lf micro sec “, tm);
O
char data[50000],c; gotoxy(15,23); printf(“Precision = %0.5lf percent of main
R
int count,ls,ps,k,j,N,st; frequency”,pri);
P
unsigned i; gotoxy(15,24); printf(“Samples taken in %0.2f ms = %d “, tick/
old_clock = getvect(0x08);///* capturing time vector */ 1000, i);
setvect(0x08,new_clock); /* assigning new time vector */ break;
do }
{ i=0; t=0; clrscr(); if(st<3 && k==3) /* no complete wave was present */
gotoxy(25,1); printf(“FREQUENCY MEASUREMENTS”); { gotoxy(24,7); printf(“Error in Reading ...!”); }
gotoxy(23,17); printf(“Press any key to Pause.....”); } } t=0; i=0;
while(!kbhit()) /* reading LPT between two time interrupts */ }
{ /* use “inp(LPT)” if using MS product */ getch(); gotoxy(13,21);
while(t<8) while(t>2 && t<4) {data[i] = inportb(LPT); i++; }} printf(“ Press E Esc for Exit any other key to continue”);
if(t==8) c=getch();
{ div=tick/i; }while (c!=27 && c !=’e’ && c!=’E’);
for(k=7;k>2;k—) /* analyzing each bit of read data */ setvect(0x08,old_clock); /* assigning original time interupt */
{ N=1; for(j=0;j<k;j++) N=N*2; }
st=0; count=0; void interrupt new_clock() /* new time interrupt service */
ps=(data[0] & N); ls=ps; { t++; (*old_clock)(); }
for(j=0;j<i;j++)
T
he given circuit, when connected its equivalent BCD number that corre- cuit which converts an input of ‘10102’
in parallel to a telephone, dis- sponds to the dialled number. This bi- into ‘00002’ without affecting the inputs
plays the number dialled from the nary number is stored sequentially in 10 ‘1’ through ‘9’. This is accomplished by
telephone set using the DTMF mode. This latches each time a number is dialled from gates N13 through N15 (IC11) and N1
circuit can also show the number dialled the phone. The first number is stored in (IC12).
from the phone of the calling party. This IC5A (1/2 of CD4508) while the second The storing of numbers in respective
is particularly helpful for receiving any number is stored in IC5B and so on. The latches is done by IC2 (4017). The data
number over the phone lines. binary output from IC1 for digit ‘0’ as valid output from pin 15 of IC1 is
The DTMF signal—generated by the decoded by IC1 is 10102 (=1010), and this used to clock IC2. The ten outputs of IC2
phone on dialling a number—is decoded cannot be displayed by the seven-segment are sequentially connected to the store
by DTMF decoder CM8870P1 (IC1), which decoder, IC10. Therefore the binary out- and clear inputs of all the latches,
converts the received DTMF signal into put of IC1 is passed through a logic-cir- except the last one, where the clear
Readers Comments: 2. The pin connections of DIS1 to DIS9 ❑ I have the following queries regarding
❑ I would like to have the following doubts are not mentioned properly. How should this circuit:
clarified: we connect them? 1. What is meant by DTMF mode?
1. What is the function of external Sunny Hercleas 2. Can the proposed circuit be used in
reset switch S2? How it is used? Hyderabad a telephone set that doesn’t have the
T
his circuit can control any one out counter acts as a master-controller for the IC1 (74LS193) is a presettable up/
of 16 devices with the help of two system. A visual indication in the form of down counter. IC2 and IC3 (74LS154) (1
push-to-on switches. An up/down LEDs is also available. of 16 decoder/demultiplexer) perform dif-
40-METRE DIRECT
CONVERSION RECEIVER
PRADEEP G.
U
sing the circuit of direct-conver- into the gate of first FET (T1) through control VR1. An audio output from the
sion receiver described here, one 10pF capacitor C16. The VFO is tuned to AF amplifier is connected to an 8-ohm, 1-
can listen to amateur radio QSO a frequency which differs from the watt speaker.
signals in CW as well as in SSB mode in incoming CW signal frequency by about 1 The receiver can be powered by a 12-
the 40-metre band. kHz to produce a beat frequency note in volt power-supply, capable of sourcing
The circuit makes use of three the audio range at the output around 250mA current. Audio-output
n-channel FETs (BFW10). The first of transformer X1, which is an audio stage can be substituted with a readymade
FET (T1) performs the function of ant./ driver transformer of the type used in L-plate audio output circuit used in
RF amplifier-cum-product detector, transistor radios. transistor amplifiers, if desired. The
while the second and third FETs (T2 and The audio output from transformer X1 necessary data regarding the coils used
T3) together form a VFO (variable fre- is connected to the input of audio amplifier in the circuit is given in the circuit
quency oscillator) whose output is injected built around IC1 (TBA820M) via volume diagram itself.
U
sually the circuits for generation clock pulse has a very low amplitude Preset VR1
of 1Hz clock for applications in of the order of a few milli-volts which is offset null
digital clock and counter circuits cannot be used to drive the digital cir- control used to
make use of ICs in conjunction with a cuits directly. This low-level voltage is adjust proper
crystal and trimmer capacitors, etc. How- amplified several times by op-amp IC 1Hz pulse at the
ever, similar or better accuracy can be CA3140. output terminal
achieved using a chip-on-board (COB) The op-amp CA3140 is connected in ‘E’. Connect one
device found inside a digital clock, which a non-inverting mode, and its gain is set LED in series
is readily available in the market for by resistors R4 and R3. Capacitor C2 with 220-ohm
Rs 15-20. This COB consists of IC, ca- reduces the AC gain and unwanted stray resistor between
pacitors and quartz crystal, etc which are pick-up and thus improves stability of the terminal ‘E’
mounted on its surface. It works on 1.4 the circuit. and ground and adjust preset VR1 till
volt DC source. This COB can be used to The input impedance of IC CA3140 the LED blinks once every second.
derive 1Hz clock. is very high and thus there is no drop at When using the COB, affix the same
on a general-pur-
pose PCB using rub-
ber based adhesive
and solder the ter-
minals neatly using
thin single-strand
wire.
Lab Note: The
COBs used in dif-
ferent watches may
differ some-what in
their configuration.
But by trial-and-
error one can
always find out the
appropriate points
corresponding to
Resistor R1, capacitor C3, diodes D1 the input when 1Hz clock signal of low points A, B, C and D. Figure of a second
and D2 shown in the circuit convert 5V level is connected across its input termi- COB used by EFY Lab is shown along-
DC into 1.4V DC. A ½Hz clock is avail- nals from the COB. Amplified 1Hz clock side. The points A and B (on the COB
able at terminals A and B with a phase pulse is available at its output pin 6, used by us) were observed to have
difference of 90o. The two outputs, are which is further amplified by transistors complementary 1Hz outputs and hence
combined using capacitors C1 and C2 to T1 and T2 to drive the digital clocks and anyone (only) could be used as input to
obtain a complete 1Hz clock. This 1Hz timers. opamp CA3140.
T
his jam circuit can be used in quiz as well as 8-input NAND gate 74LS30 of any other switch S1 through S8 has
contests wherein any participant (IC3). The output of IC3 thus becomes no effect. Thus, the contestant who
who presses his button (switch) logic 0 which, after inversion by NAND presses his switch first, jams the display
before the other contestants, gets the first gate N2, is applied to latch-enable pin 11 to show only his number. In the unlikely
chance to answer a question. The circuit of IC1. With all input pins of IC2 being event of simultaneous pressing (within
given here permits up to eight contestants logic 1, its BCD output is 0000, which few nano-seconds difference) of more than
with each one allotted a distinct number is applied to 7-segment decoder/driver one switch, the higher priority number
(1 to 8). The display will show the number 74LS47 (IC6) after inversion by hex in- (switch no.) will be displayed.
of the contestant pressing his button before verter gates inside 74LS04 (IC5). Thus, on Simultaneously, the logic 0 output of gate
the others. Simultaneously, a buzzer will reset the display shows 0. N1 drives the buzzer via pnp transistor
also sound. Both, the display as well as When any one of the push-to-on BC158 (T1). The buzzer as well the
the buzzer have to be reset manually using switches—S1 through S8—is pressed, the display can be reset (to show 0) by
a common reset switch. corresponding output line of IC1 is momentary pressing of reset switch S9
Initially, when reset switch S9 is mo- latched at logic 0 level and the display so that next round may start.
mentarily pressed and released, all out- indicates the number associated with the Lab Note: The original circuit sent
puts of 74LS373 (IC1) transparent latch specific pressed switch. At the same time, by the author has been modified as it did
go ‘high’ since all the input data lines are output pin 8 of IC3 becomes high, which not jam the display, and a higher number
returned to Vcc via resistors R1 through causes outputs of both gates N1 and N2 switch (higher priority), even when
R8. All eight outputs of IC1 are connected to go to logic 0 state. Logic 0 output of pressed later, was able to change the dis-
to inputs of priority encoder 74LS147 (IC2) gate N2 inhibits IC1, and thus pressing played number.
D
ew (condensed moisture) ad- can be procured from authorised service lar dual op-amp IC LM358N which is con-
versely affects the normal per- centres of reputed companies. The author figured here as a comparator. (Note that
formance of sensitive electronic used the dew sensor for FUNAI VCP only one half of the IC is used here.) Un-
devices. A low-cost circuit described here model No. V.I.P. 3000A (Part No: 6808- der normal conditions, resistance of the
can be used to switch off any gadget 08-04, reference no. 336) in his prototype. dew sensor is low (1 kilo-ohm or so) and
automatically in case of excessive In practice, it is observed that all dew thus the voltage at its non-inverting ter-
humidity. sensors available for video application minal (pin 3) is low compared to that at
At the heart of the circuit is an inex- possess the same electrical characteris- its inverting input (pin 2) terminal. The
pensive (resistor type) dew sensor ele- tics irrespective of their physical shape/ corresponding output of the comparator
ment. Although dew sensor elements are size, and hence are interchangeable and (at pin 1) is accordingly low and thus noth-
widely used in video cassette players and can be used in this project. ing happens in the circuit.
recorders, these may not be easily avail- The circuit is basically a switching When humidity exceeds 80 per cent,
able in local market. However, the same type circuit made with the help of a popu- the sensor resistance increases rapidly.
As a result, the non-inverting pin becomes
more positive than the inverting pin. This
pushes up the output of IC1 to a high
level. As a consequence, the LED inside
the opto-coupler is energised. At the same
time LED1 provides a visual indication.
The opto-coupler can be suitably
interfaced to any electronic device for
switching purpose.
Circuit comprising diode D1, resistors
R8 and R6 and capacitor C1 forms a low-
voltage, low-current power supply unit.
This simple arrangement obviates the
requirement for a bulky and expensive
step-down transformer.
Y
ou can play this game alone
or with your friends. The
circuit comprises a timer IC,
two decade counters and a display
driver along with a 7-segment
display.
The game is simple. As stated
above, it is a scoring game and the
competitor who scores 100 points
rapidly (in short steps) is the win-
ner. For scoring, one has the option
of pressing either switch S2 or S3.
H
ere is a handy gadget for test-
ing of infrared (IR) based re-
mote control transmitters used
for TVs and VCRs etc.
The IR signals from a remote control
transmitter are sensed by the IR sensor
module in the tester and its output at
pin 2 goes low. This in turn switches on
transistor T1 and causes LED1 to blink.
At the same time, the buzzer beeps at
the same rate as the incoming signals
from the remote control transmitter. The
pressing of different buttons on the re-
mote control will result in different pulse
rates which would change the rate at
which the LED blinks or the buzzer
beeps.
When no signal is sensed by the Capacitor C1 smoothes DC input are effectively grounded and do not inter-
sensor module, output pin 2 of the sen- while capacitor C2 suppresses any spikes fere with the functioning of the circuit.
sor goes high and, as a result, transistor appearing in the input supply. The proposed layout of the box containing
T1 switches off and hence LED1 and Proper grounding of the metal case the circuit is shown in the figure. The 9-
buzzer BZ1 go off. This circuit requires will ensure that the electromagnetic emis- volt DC supply from the eliminator can
5V regulated power supply which can be sions which are produced by tube-lights be fed into the jack using a banana-type
obtained from 9V eliminator and con- and electronic ballasts etc (which lie plug.
nected to the circuit through a jack. within the bandwidth of receiver circuit)
T
he circuit is a MOSFET based output at slightly elevated minimum volt- will get triggered, pulling down the gate
linear voltage regulator with a age drop. Trimpot VR1 in the circuit is used voltage to ground, and thus limiting the
voltage drop of as low as 60 mV for fine adjustment of the output voltage. output current. The circuit will remain
at 1 ampere. Drop of a fewer millivolts is Combination of capacitor C5 and resistor latched in this state, and input voltage
possible with better MOSFETs having R2 provides er-
lower RDS(on) resistance. ror-amplifier
The circuit in Fig. 1 uses 15V-0-15V compensation.
secondary output from a step-down trans- The circuit is
former and employs an n-channel provided with a
MOSFET IRF540 to get the regulated 12V short-circuit
output from DC input, which could be as crow-bar protec-
low as 12.06V. The gate drive voltage re- tion to guard the
quired for the MOSFET is generated us- components
ing a voltage doubler circuit consisting of against over-
diodes D1 and D2 and capacitors C1 and stress during ac-
C4. To turn the MOSFET fully on, the cidental short at
gate terminal should be around 10V above the output. This
the source terminal which is connected to crow-bar protec- Fig. 2
the output here. The voltage doubler feeds tion will work as
this voltage to the gate through resistor follows: Under normal working conditions, has to be switched off to reset the circuit.
R1. Adjustable shunt regulator TL431 the voltage across capacitor C3 will be The circuit shown in Fig. 2 follows a
(IC2) is used here as an error amplifier, 6.3V and diode D5 will be in the off state similar scheme. It can be utilised when
and it dynamically adjusts the gate volt- since it will be reverse-biased with the the regulator has to work from a DC rail
age to maintain the regulation at the out- output voltage of 12V. However, during in place of 15V-0-15V AC supply. The gate
put. output short-circuit condition, the output voltage here is generated using an LM555
With adequate heatsink for the will momentarily drop, causing D5 to con- charge pump circuit as follows:
MOSFET, the circuit can provide up to 3A duct and the opto-triac MOC3011 (IC1) When 555 output is low, capacitor C2
will get charged through di-
ode D1 to the input voltage.
In the next half cycle, when
the 555 output goes high, ca-
pacitor C3 will get charged to
almost double the input volt-
age. The rest of the circuit
works in a similar fashion as
the circuit of Fig. 1.
The above circuits will help
reduce power-loss by allowing
to keep input voltage range to
the regulator low during ini-
tial design or even in existing
circuits. This will keep the out-
put regulated with relatively
low input voltage compared to
the conventional regulators.
The minimum voltage
drop can be further reduced
using low RDS(on) MOSFETs or
Fig. 1 by paralleling them.
H
ere is an interesting circuit for
a magnetic proximity switch
which can be used in various
applications.
The circuit, consists of a reed switch
at its heart. When a magnet is brought
in the vicinity of the sensor (reed switch),
its contacts close to control the rest
of the switching circuit. In place of the
reed switch, one may, as well, use a
general-purpose electromagnetic reed re-
lay (by making use of the reed switch
contacts) as the sensor, if required. These
tiny reed relays are easily available as
they are widely used in telecom prod-
ucts. The reed switch or relay to be used a consequence its output at pin 3 used. Note that the flip-flop is wired in
with this circuit should be the ‘normally goes high for a short duration and toggle mode with data input (pin 5) con-
open’ type. supplies clock to the clock input nected to the Q (pin 2) output. On receipt
When a magnet is brought/placed (pin 3) of IC2 (CD4013—dual D-type of clock pulse, the Q output at pin 1
in the vicinity of the sensor element flip-flop). LED D2 is used as a response changes from low to high state and due to
for a moment, the contacts of the indicator. this the relay driver transistor T1 gets
reed switch close to trigger timer This CMOS IC2 consists of two inde- forward-biased. As a result the relay RL1
IC1 wired in monostable mode. As pendent flip-flops though here only one is is energised.
SIMPLE LOW-COST
DIGITAL CODE LOCK
A. JEYABAL
M
any digital code lock circuits lock circuit is presented in this article. 2. Elimination of power amplifier tran-
have been published in this Here the keying-in code is rather unique. sistor to energise the relay.
magazine. In those circuits a Six switches are to be pressed to open 3. Low cost and small PCB size.
set of switches (conforming to code) are the lock, but only two switches at a time. An essential property of this electronic
pressed one by one within the specified Thus a total of three sets of switches code lock is that it works in monostable
time to open the lock. In some other cir- have to be pressed in a particular se- mode, i.e. once triggered, the output
cuits, custom-built ICs are used and posi- quence. (Of these three sets, one set is becomes high and remains so for a period
tive and negative logic pulses are keyed repeated.) The salient features of this of time, governed by the timing
in sequence as per the code by two circuit are: components, before returing to the quies-
switches to open the lock. 1. Use of 16 switches, which suggests cent low state. In this circuit, timer IC
A very simple low-cost digital code that there is a microprocessor inside. 555 with 8 pins is used. The IC is inex-
T
his circuit generates a musical through a player’s hand will vary as the the sensor.
tone whose pitch varies as the hand’s distance varies from the sensor. The output of hand proximity detec-
distance of the hand from the sen- The sensor plate is connected to an tor is fed to IC2(a) which forms a voltage
sor varies. It consists of two stages: unstable op-amp IC1(a) (1/2 µA747) which controlled oscillator. The output of oscil-
1. Hand proximity detector oscillates at varying frequency in the lator at pin 12 of IC2 is a triangular
2. Oscillator and output stage neighbourhood of 20 kHz. This frequency wave whose frequency lies in the audio
The detector portion consists of a sen- lies in the slew rate limited range. Thus range. This output is fed into power stage
sor plate (10cm x 10cm) which can be output at pin 12 of IC1 is a triangular realised from µA741 (IC3) acting as a
made from an aluminium sheet, or we wave whose peak varies with frequency. voltage amplifier followed by a power
may use a circular loop (10cm in diam- This is followed by a peak detector wired stage which uses TIP 122 (npn) and
eter) made from an insulated copper or around IC1(b).The net output of proxim- TIP127(pnp) power Darlingtons connected
aluminium wire. The capacitance between ity detector is a voltage whose magnitude in class AB complementary push-pull con-
the sensor plate (or loop) and ground depends upon distance of hand from figuration. Their output is fed into an 8-
M
usical and voice-generating has three terminals. One lead is con- Remote control receiver module
electronic calling bells are very nected to a compact 9V PP3 battery and VG40R is connected in input side of the
popular nowadays. These call- the other is connected to negative termi- musical bell as shown in the figure.
ing bells use a pair of wires between the nal of the battery. Central terminal is Dimensions of receiver module are
switch and bell circuit. The circuit idea connected to trigger switch as shown in 4.5cm x 2.1cm x 1.3cm. This module is
described here is for a remote wireless the diagram. The transmitter’s standby also sealed and has three external
calling bell which can work up to a dis- current is only 5 microamperes. Thus a terminals. One terminal is positive and
tance of about 15 metres. 9V PP3 battery would have a long life the other is negative across which a 3V
For wireless operation, a pair of sealed when used in this circuit. When micro battery is connected. The third terminal,
VHF remote control transmitter and switch S1 is pressed, a modulated signal the trigger terminal, is connected to
receiver modules have been employed. is transmitted which has a reception input of musical circuit as shown in the
Transmitter module VG40T is com- range of about 15 metres (50 feet) from diagram. Standby current drawn by
pact, measuring 3.4cm x 2.9cm x 1cm. It the transmitter module. the receiver module is about 300 micro-
amperes.
No PCB is required for the
transmitter because transmit-
ter module does not need any
external component. Transmit-
ter generates VHF signals of
about 300 MHz frequency. PCB
of musical section is freely
available from the components
vendors at a low cost. Modules
can be connected to the circuit
with a short length of flexible
Fig. 1: Transmitter Fig. 2: Receiver wire.
Connect a 9V PP3 battery
SIMPLE TELEPHONE
PRIVACY CIRCUIT
RAJ K. GORKHALI
W
hen several telephone exten- ceasing conduction
sions use one telephone line when current is too low
pair, it becomes possible for an- to sustain it.
other extension user to overhear your con- Diacs permit the
versation. This very simple circuit arrange- ringing tone to pass,
ment prevents that possibility, cutting off since they conduct
all extensions except the one in use, with both ways as long as
no discernible effect on performance. peak voltage exceeds
As the diagram shows, each handset their break-over volt-
is connected via a diac. The telephone line age of ± 25V to 35V.
voltage is around 48V DC when all If an extension then
handsets are on hook and it drops to 6V to lifts its handset, breakdown occurs at to 10V.
10V DC when any one of the handsets is that diac and the extension is operative If two handsets are lifted simulta-
lifted. Diacs start to conduct when the since the diac is conducting with 6V now neously, the one with the diac of lower
applied voltage is above their breakover across it and with a current of around 20 breakover voltage will be activated. Thus
voltage of ± 25 to 35V DC and continue to mA through the handset. The other diacs at one time only one of the several exten-
conduct when voltage drops to a low level, cannot break over at this voltage of 6V sions become operative.
T
here are a number of codes in use code or vice versa using EXCLUSIVE OR and S1(b) are in position 1, the circuit
in digital systems. One such code (XOR) gates. Only the modes of connec- works as a binary-to-Gray code converter.
is the Gray code. A number in tion of the XOR gates differ. This is illus- In position 2 of these switches, it func-
natural binary can be converted to Gray trated in Fig. 1(a). When switches S1(a) tions as a Gray-to-binary code converter.
I
n a quiz show, a contestant who press their buttons. The present circuit data lines of RAM against the current
presses his button before any other can be used for a maximum of four con- address (on its address lines A0 through
contestant gets the top priority for testants. A3). A sixth 74LS121 (IC10) is used for
answering the quiz. Similarly, the prior- The answer button allocated to each viewing/checking the contestants’ prior-
ity of the other contestants is decided by contestant is used in conjunction with a ity for answering the quiz and also for
the order in which each one presses his/ non-retriggerable monostable flip-flop clearing contents of the selected RAM lo-
her answer button. 74LS121. These mono flip-flop ICs (IC5 cation by writing 0000 against it.
In this circuit, the main role is played through IC8) function with switches S1 For understanding the circuit opera-
by IC3 (74LS89) which is a 64-bit RAM through S4 respectively. IC4, which is tion, assume that switch S7 is in normal
organised as 4-bit x 16-word array. It is again a 74LS121 flip-flop, is used for gen- position, switch S8 is open and counter
used for storing the sequence in which erating a write pulse (active low) for writ- IC2 (74LS93) is reset (with the help of
the contestants, during a quiz contest, ing the status (Q output logic level) on switch S6) so that all of its output pins
DUAL-CHANNEL DIGITAL
VOLUME CONTROL
SHEENA K.
T
his circuit could be used for re- S1 and S2. To vary the pulse width of two quad bi-polar analogue switches in
placing your manual volume con- pulses from IC1, one may replace timing each of the two CD4066 ICs (IC3 and
trol in a stereo amplifier. In this resistor R1 with a variable resistor. IC4). Each of the output bits, when high,
circuit, push-to-on switch S1 controls the Operation of switch S1 (up) causes the short a part of the resistor network com-
forward (volume increase) operation of binary output to increment while opera- prising series resistors R6 through R9
both channels while a similar switch S2 tion of S2 (down) causes the binary output for one channel and R10 through R13
controls reverse (volume decrease) opera- to decrement. The maximum count being for the other channel, and thereby con-
tion of both channels. 15 (all outputs logic 1) and minimum trol the output of the audio signals be-
Here IC1 timer 555 is configured as count being 0 (all outputs logic 0), it re- ing fed to the inputs of stereo amplifier.
an astable flip-flop to provide low-fre- sults in maximum and minimum volume Push-to-on switch S3 is used for reset-
quency pulses to up/down clock input respectively. ting the output of counter to 0000, and
pins of pre-setable up/down counter The active high outputs A, B, C and thereby turning the volume of both chan-
74LS193 (IC2) via push-to-on switches D of the counter are used for controlling nels to the minimum level.
N
owadays, usage of overhead tank latched by resistor R1 and transistor T1
(OHT) with an electrically oper- is biased to cut-off state, and hence both
ated water pump is a common relay RL1 and motor M are in off state.
sight. The pump, being a costly item, When we push switch S1 momentarily,
should be protected against damage due the input of inverter gate N1 becomes high
to high and low voltages. People find it and output of gate N2 also becomes high.
very inconvenient to switch off the pump As a result, transistor T1 turns on and both
even when their OHT starts overflowing, relay RL1 and motor are activated (pro-
specially when they are busy or it is rain- vided transistors T2 and T3 are forward
ing. This circuit provides a solution for all biased). When water level in OHT
such problems. The main features of this touches the sensors, input of N1 become
circuit are: low, which turns relay RL1 off and the
1. Low and high voltage cut-off motor stops. The motor can be turned off
2. Automatic switching off of motor manually also by pushing switch S2 at
when overhead tank is full any time. Transistors T2 and T3 are both
3. Use of convenient push-to-on but- forward biased if the line voltage is
tons for switching on and switching off of within certain low and high voltage limits, a pre-determined value, output of gate
motor. as explained below. N4 becomes high, which turns off
The heart of the circuit is IC CD4011, When the voltage level rises above a transistor T3 and relay RL1. Thus when
which has four inverter gates. When the pre-determined value, input to gate N3 the mains AC voltage (or the DC voltage
circuit gets 12V power supply, capacitor becomes high and its output become low, sample derived from mains) is above or
C1 pulls input of N1 low, and this causes which turns off transistor T2 and also the below certain limits, which could damage
the output of N2 to go low. This state is relay. When the voltage level drops below the pump motor, the supply to the motor
is cut-off.
D2 provides a constant DC voltage
to IC1.
For setting the low voltage cut-off,
adjust potmeter VR2 in such a way that
when supply voltage goes below 190V,
output of N4 goes high. Similarly, for
setting the high voltage cut-off, adjust
potmeter VR1 in such a way that when
supply voltage goes above 250V, output
of N3 goes low. The high and low cut-off
voltages can be changed according to
the requirement for a given motor.
Two wires are needed to connect the
circuit to the sensors which are fitted
in the OHT. Sensors must be fitted as
shown in figure. A simple power supply
circuit is also shown here. The circuit
can be assembled on a general-purpose
PCB and housed in an eliminator case
which is easily available in the market.
Use good-quality insulated wire to con-
nect sensor to the circuit.
T
he circuits previously published, lished in various circuit ideas and also voltage through diode D6 and resistor R6.
and also those which are used in incorporated in the devices available in When the supply fails, capacitor C2
majority of voltage stabilisers sold the market. discharges through resistors R7 and R8
in the market, either use too many com- This circuit is most economical as and the base-emitter junction of transis-
ponents to perform what is after all a both the above-mentioned functions tor T3. If the supply is resumed after the
simple task, or perform this task badly, are implemented using only three tran- set time delay, capacitor C2 will be com-
or both. Some elaborate designs use 555 sistors, and needs only a single contact pletely discharged and transistor T3 would
timers and comparator ICs but the delay (N/O type) relay. Since the operating remain cut-off.
is present at the start of each power-up. forces are not shared amongst multiple If the supply resumes before capacitor
Other circuits implement the time contacts, the relay with a single C2 has been completely discharged,
delay correctly as the minimum time contact is sturdier than multiple contact transistor T3 turns on and clamps
between power off and power on. types. The time delay is entirely electronic, the base of transistor T2, preventing
That is, time delay is not executed if does not use relay contacts for switching it from turning on. The emitter current
the power failure lasts longer than and comes into operation only when of transistor T3 (about 200 microamperes)
the set time delay. But then, this type needed. is insufficient to actuate the relay.
of time delay uses relay contacts for When relay RL1 operates, its contacts When, after the required delay, transistor
switching the timing capacitor around - connect the supply voltage to the com- T3 turns off, the base of transistor
but the relay contacts designed pressor in the refrigerator. At the same T2 rises to the fraction of the supply
for high current do not switch time, capacitor C2 charges to the supply voltage set by preset VR1. If this voltage is
low voltages very
well. And slight
misalignment or
wear and tear of the
contacts is reflected
in erratic timing.
The circuit
presented here uses
the principle of
charging a capacitor
during the ‘on’ time
and discharging it
through a resistor
during the ‘off’ time.
This is implemented
electronically, avoid-
ing relay contacts.
Consequently, the
relay can be a simple
‘normally off’ type.
The rest of the circuit,
including the voltage
sensing part, is the
same as that pub-
INFRARED CORDLESS
HEADPHONE
PRADEEP G.
U
sing this low-cost project one can sistor amplifier to drive two series-con- LED1 in transmitter circuit functions as
reproduce audio from TV with- nected IR LEDs. An audio output a zener diode (0.65V) as well as supply-
out disturbing others. It does not transformer is used (in reverse) to couple on indicator.
use any wire connection between TV and audio output from TV to the IR transmit- IR receiver uses 3-stage transistor
headphones. In place of a pair of wires, it ter. Transistors T1 and T2 amplify amplifier. The first two transistors (T4
uses invisible infrared light to transmit the audio signals received from TV and T5) form audio signal amplifier while
audio signals from TV to headphones. through the audio transformer. Low- the third transistor T6 is used to drive a
Without using any lens, a range of up to impedance output windings (lower gauge headphone. Adjust potmeter VR2 for max.
6 metres is possible. Range can be ex- or thicker wires) are used for connection clarity.
tended by using lenses and reflectors with to TV side while high-impedance wind- Direct photo-transistor towards IR
IR sensors comprising transmitter and ings are connected to IR transmitter. LEDs of transmitter for max. range. A 9-
receiver. This IR transmitter can be powered from volt battery can be used with receiver for
IR transmitter uses two-stage tran- a 9-volt mains adapter or battery. Red portable operation.
S
tabilisers incorporating auto cut- 1. One relay with single changeover relay at serial No. 1.
off arrangement are manufac- contacts To operate the stabiliser, it is to be
tured by most of the reputed 2. One relay with two changeover con- plugged into a mains wall socket and
manufacturers using different methods. tacts the following sequence of operations is
The stabiliser circuit presented here 3. One start push-button, a DPDT to be performed:
makes use of the following major compo- changeover switch and a rotary switch Start push-button is momentarily
nents to provide the auto cut-off facility: 4. One bridge rectifier to energise the pressed so that the neutral line connec-
SIMPLE ANALOGUE-TO-
DIGITAL CONVERTER
B.P. LADGAONKAR
N
ormally analogue-to-digital con- here is configured around ADC 0808, (digitisation). This EOC output is coupled
verter (ADC) needs interfacing avoiding the use of a microprocessor. The to SC input, where falling edge of EOC
through a microprocessor to con- ADC 0808 is an 8-bit A-to-D converter, output acts as SC input to direct the ADC
vert analogue data into digital format. This having data output lines D0-D7. It works to start the next conversion.
requires additional hardware and neces- on the principle of successive approxima- As the conversion starts, EOC signal
sary software, resulting in increased com- tion. It has a total of eight analogue input goes high. At next clock pulse EOC out-
plexity and hence the total cost. channels, out of which any one can be se- put again goes low, and hence SC is en-
The circuit of A-to-D converter shown lected using address lines A, B and C. abled to start the next conversion. Thus,
Here, in this case, input chan- it provides continuous 8-bit digital output
nel IN0 is selected by ground- corresponding to instantaneous value of
ing A, B and C address lines. analogue input. The maximum level of
Usually the control signals analogue input voltage should be appro-
EOC (end of conversion), SC priately scaled down below positive refer-
(start conversion), ALE (ad- ence (+5V) level.
dress latch enable) and OE The ADC 0808 IC requires clock
(output enable) are interfaced signal of typically 550 kHz, which can
by means of a microprocessor. be easily derived from an astable
However, the circuit shown multivibrator constructed using 7404 in-
here is built to operate in its verter gates. In order to visualise the
continuous mode without using digital output, the row of eight LEDs
any microprocessor. Therefore (LED1 through LED8) have been used,
the input control signals wherein each LED is connected to respec-
ALE and OE, being active-high, tive data output lines D0 through D7.
are tied to Vcc (+5 volts). The Since ADC works in the continuous mode,
input control signal SC, being it displays digital output as soon as ana-
active-low, initiates start of logue input is applied. The decimal
conversion at falling edge of the equivalent digital output value D for a
pulse, whereas the output given analogue input voltage Vin can
signal EOC becomes high after be calculated from the relationship
completion of conversion
H
ere is a sleep-switch circuit that nary output as it counts up the input sistor T1 (normally conducting) when set
can be easily converted into a pulses and IC5 decodes/converts them to time is reached. When transistor T1 cuts
wake-up timer. A dual-mode time 1-of-10 outputs (units). Similarly, the IC6- off, its collector goes high to reset oscilla-
setting makes the system versatile. The IC7 pair provides tens output since IC6 tor IC1, and thus count at output of IC4
circuit is low-cost and can function as a clock input pin is connected to D output and IC6 gets locked. For resetting or
precise timer. pin of IC4. restarting, the power supply to the circuit
The heartbeat produced by IC1 is a Rotary switches S2 and S3 can be set should be switched off and then switched
sharp 1Hz square wave signal having a to select any time between either 0 to 99 on again.
duty cycle of 50 per cent. This is achieved seconds or 0 to 99 minutes, depending The BCD outputs of IC4 and IC6 are
by using a 4.194304MHz crystal in combi- upon the position of mode switch S1. converted to seven-segment outputs by
nation with discrete components around Switches S2 and S3 could also be replaced IC9 and IC10 to drive the units and tens
it. The 1Hz output of IC1 is connected to by thumb-wheel type switches or 10-posi- displays respectively for indicating
IC2 as well as one of the terminals of tion DIP switches with one of their side elapsed time continuously. The relay con-
switch S1. IC2 is configured as divide-by-6 terminals shorted together to serve as a tacts (normally open and normally closed)
counter while IC3 further divides the pole. Please note that IC5 and IC7 (74145) can be suitably used to energise or de-
output of IC2 by ten to produce one-minute have active low outputs. energise an alarm after the preset delay.
output at its pin 12. This is brought to the The outputs from switches S2 and S3 It can thus be used as wake-up alarm or
second terminal of two-way switch S1 to are input to a two-input OR gate inside sleep timer.
help select either the ‘minutes’ or the ‘sec- IC8 (7432) to obtain active low output on If you want to de-energise the relay,
onds’ mode of operation for IC4. completion of the set time delay to deacti- say after 30 minutes, then set switch S1
The decade counter IC4 provides bi- vate relay RL1 through relay driver tran- to minutes mode, S2 to 0 and S3 to 3, and
A
battery is a vital element of any 15 to 20 per cent. sophisticated method.
battery-backed system. In many It is therefore necessary for all con- Input from the battery under test is
cases the battery is more expen- cerned to monitor the charge level of their applied to LM3914 IC. This applied volt-
sive than the system it is backing up. batteries continuously. But, in practice, age is ranked anywhere between 0 and 10,
Hence we need to adopt all practical mea- many of the battery users are unable to depending upon its magnitude. The lower
sures to conserve battery life. do so because of non-availability of rea- reference voltage of 10.1V is ranked ‘0’ and
As per manufacturer’s data sheets, a sonably-priced monitoring equipment. The the upper voltage of 13.8V is ranked as
12V rechargeable lead-acid battery should circuit idea presented here will fill this ‘10.’ (Outputs 9 and 10 are logically ORed
be operated within 10.1V and 13.8V. When void by providing a circuit for monitoring in this circuit.) The calibration procedure
the battery charges higher than 13.8V it the charge level of lead-acid batteries con- of reference voltages is explained later.
is said to be overcharged, and when it tinuously. The circuit possesses two vital IC 74LS147 is a decimal-to-BCD pri-
discharges below 10.1V it can be deeply features: ority encoder which converts the output
discharged. A single event of overcharge • First, it reduces the requirement of of LM3914 into its BCD complement. The
or deep discharge can bring down the human attention by about 85 per cent. true BCD is obtained by using the hex
charge-holding capacity of a battery by • Second, it is a highly accurate and inverters inside IC 74LS04. This BCD
WINDOW/FENCE CHARGER
T.K. HAREENDRAN
C
ircuit of a compact electrified win-
dow/fence charger is presented
here. The circuit is intended to
produce non-lethal mild shock to keep
away intruders.
It comprises transistors T1 and T2
which form an astable (free-running)
multivibrator with the associated resis-
tors and capacitors. The pulse repetition
rate is determined by the values of RC
time constant. With the component val-
ues used, it is about 6 Hz. The pulse
spacing can be increased by increasing
the values of resistors R3 and R4.
A high voltage generator is realised
with the help of an ordinary step-down
transformer and a medium-power tran- the pulse activity. and its output triggers switching
sistor which follows the astable When power is initially applied, ca- transistor T3. As a result, capacitor C3
multivibrator. Output of the astable pacitor C3 is charged through resistor is rapidly discharged via secondary wind-
multivibrator, from the collector of tran- R6. This RC network is used deliber- ing of transformer X1. Consequently, a
sistor T2, is directly connected to the base ately to limit the maximum output power high voltage is induced in the primary of
of switching transistor T3 to generate applied to the fence/window frame. At X1. At next pulse, the process repeats
high-amplitude pulses. LED D1 indicates the same time, oscillator starts working itself.
Readers Comments:
❑ The multivibrator stage comprising T3. Kindly suggest the required modifica- conduction of transistor T3 measures 0.8
transistors T1 and T2 works well, but when tions. volt (correct) and the circuit gave 150V
I connect the base of switching transistor J.T. Joglekar (peak) pulses at around 150ms intervals.
T3 (D313) to the collector of transistor T2, Nagpur On reducing the value of resistor R5 from
the collector voltage drops to 0.4 volt and EFY: We’ve retested the circuit and 4.7k to 1k, the pulse amplitude increased
and hence it is unable to drive transistor found that the collector voltage during to 250V (peak).
N
ormally the base of a cordless unit through diode D3. A green LED and the cost of the backup unit, includ-
phone has an adaptor and the is used to indicate the presence of AC ing the box and cells, would not exceed
handset has Ni-Cd cells for its mains. Rs 300. Hence the circuit is well worth
operation. The base unit becomes inop- Each Ni-Cd cell costs around Rs 34, the investment.
erative in case of power fail-
ure. Under such conditions, it
is better to provide a backup
using Ni-Cd cells externally.
Here is a simple power
supply back-up circuit which
can be used with cordless
phone SANYO CLT-420 or
similar sets.
The working is simple.
When AC mains is present,
Ni-Cd cells are charged
through IC LM317L, which
is wired as a current source.
Also, diode D3 is reverse-
biased, which keeps Ni-Cd cells
isolated from positive rail.
When AC mains goes off, the
Ni-Cd cells provide supply
to the cordless phone base
Readers Comments: From where can I get the cabinet to To improve the Ni-Cd cells’ life, they
❑ The Cordless Phone Backup circuit has house the circuit and the cells? should be charged and used. Charged
no protection circuitry to avoid overcharg- Abhay K. Changedia cells should not be stored for long
ing of cells. Can an LED be added to Pune periods (even three days). To keep the
indicate supply availability from the The author, P.V. Vinod Kumar, cells in good condition, they must be dis-
backup during a power failure? Please give replies: charged—once a month—by shorting
the details of LM317. Can I use this circuit I have designed the circuit for a cord- them with the parallel combination of
for a cordless phone which runs on 9V, less phone that runs on a 12V adaptor. To two 4.7-ohm, 10W resistors. This should
800mA? use my circuit with Sanyo CLT-6700, you be done periodically to erase the memory-
Tribikram Kar will need a new 12V adaptor. effect of Ni-Cd cells.
56 APO Inside the base unit of Sanyo CLT You can buy a plastic box from any
❑ My cordless, Sanyo CLT-6700, has a 420 cordless phone there is a 7805 regu- plastic shop to use it as a cabinet. It is
9V-250mA adapter. Please suggest a modi- lator. Hence, giving anything above 8V is better to make a battery pack rather
fication to this circuit so that I can use it sufficient for the base unit to operate. One than using cell holdres. To make one,
with my cordless phone. may use either a 12V adaptor or 8.4V Ni- solder and interconnect cells together to
The number of cells required, as Cd cells or 6AA cells. make the pack compact. Fold the cells
shown is 1.2V×7 (=8.4V) for a 12V adap- Keeping the simplicity and the cost of on a thick paper and tape them. Take
tor. Please explain how will it work with the circuit in mind. I have compromised out two leads for positive and negative
8.4V? on the cell-protection feature. connections.
T
he dice has been used to deter- a good idea to use a buffer to prevent is taken from a look-up table. This acts as
mine one’s fortune from the ear- accidental damage to the PC. the translator between random number
liest days of civilisation. It has Arrange the seven LEDs on a vero- generator and display.
been used by gamblers, fortune tellers and board, or other suitable mounting plate If necessary, similar display unit can
statisticians alike. Dice made of wood, sil- exactly as per pattern shown in the fig- be connected to the second parallel port
ver, ivory, etc can be seen in many museums. ure. Connect the circuit to parallel port of the computer to simulate throwing of
A hi-tech die can be built around a designated LPT1 on the computer. If port two dice simultaneously. The modification
computer using a handful of LEDs and LPT2 is to be used, a minor modification necessary to the program is quite simple,
an IC, as shown in the figure. is necessary in the software. Just change and is left as an exercise for the reader.
Seven LEDs are arranged in the shape the line Good luck!
of the dots on a die. While a real die is a “#define PORT 0X378” to
“#define PORT 0X278” and the rest /* TEST.C */
#include <dos.h>
remains as it is. #include <stdio.h>
There is a small test program TEST.C #include <conio.h>
written using Borland C to test the inter- #include <stdlib.h>
#define PORT 0X378
face. Switch on 5V power supply and run main ()
the test program. Every time you press a {
key, LEDs 1 through 7 light up one by int i;
for (i=1; i < 0X7F; i *=2)
one, in the same order. This order is im- {
cube having six faces, this electronic die portant—otherwise the circuit will work printf (“Press any key…\n”)’
outportb (PORT, ~i);
has a single face, on which the dot pattern but the dot pattern on the die will not be getch ();
would change dynamically. consistent. Recheck the connections if }
These LEDs are activated using the these appear out of order. outportb (PORT, 0XFF);
}
parallel port of a PC. The interface circuit Now we are ready to test our fortune.
necessary for this is given in the figure. It Run the program DICE.C and press any /* DICE.C */
comprises seven LEDs connected to buffer/ key. With every key-stroke your die will #include <dos.h>
#include <stdio.h>
driver IC 74245 through current-limiting appear to roll. Finally, when it settles #include <conio.h>
resistors. down, it displays a random digit, between #include <stdlib.h>
#define PORT 0X378
The buffer helps to protect the com- one and six. Press ESC to terminate the #define ESC 0X1B
puter circuitry in case something goes program. int code[6] = {0XBF, 0XF3, 0X9E, 0XD2, 0X92,
wrong with this circuit. Whenever a home- The program makes use of the ran- 0XC0};
void run();
made gadget is connected to the PC, it is dom () function of the compiler to gener- main()
ate the pseudo random number. The com- {
int number;
puter, using some fixed algorithm, gen- printf (“press any key to throw the die. ESC to
erates this number. In this sense it is not exit…\n”);
strictly ‘random,’ since a true random randomize (); /* initialize the generator */
while (getch() !=ESC)
number is completely unpredictable, and {
cannot be generated by any mathemati- number = random(6);
cal formula! That is why it is called a printf (“%4d”,number+1);
run ();
pseudo random number. But do not worry, outportb (PORT, code [number]);
this level of randomness is sufficient for }
all day-to-day needs. outportb (PORT, 0XFF); /* all off */
}
To make it even more random, we have /*———————————————————*/
used the randomise () function. This takes void run ()
{
a clue from the real-time clock of the com- /* create running LEDs effect */
puter to initialise or ‘seed’ the random int i;
number generator. So we are assured that for (i=1; i < 0X7F; i *=2)
{
each time the program is started, we get a outporb (PORT, ~i);
different sequence of digits. delay (200);
Note how the bit pattern necessary to }
}
light the different combinations of LEDs /*———————————————————*/
H
ere is a teleremote cir-
cuit which enables
switching ‘on’ and ‘off’ of
appliances through telephone lines.
It can be used to switch appliances
from any distance, overcoming the
limited range of infrared and radio
remote controls.
The circuit can be used to
switch up to nine appliances (cor-
responding to the digits 1 through
9 of the telephone key-pad). The
DTMF signals on telephone instru-
ment are used as control signals.
The digit ‘0’ in DTMF mode is used
to toggle between the appliance
mode and normal telephone opera-
tion mode. Thus the telephone can
be used to switch on or switch off
the appliances also while being
used for normal conversation.
The circuit uses IC KT3170
(DTMF-to-BCD converter), 74154
(4-to-16-line demult-iplexer), and
five CD4013 (D flip-flop) ICs. The
working of the circuit is as
follows.
Once a call is established (af-
ter hearing ring-back tone), dial
‘0’ in DTMF mode. IC1 decodes
this as ‘1010,’ which is further
demultiplexed by IC2 as output O10
(at pin 11) of IC2 (74154). The ac-
tive low output of IC2, after inver-
sion by an inverter gate of IC3
(CD4049), becomes logic 1. This is
used to toggle flip-flop-1 (F/F-1)
and relay RL1 is energised. Relay
RL1 has two changeover contacts,
RL1(a) and RL1(b). The energised
RL1(a) contacts provide a 220-ohm
loop across the telephone line
while RL1(b) contacts inject a
10kHz tone on the line, which in-
dicates to the caller that appliance
mode has been selected. The 220-
ohm loop on telephone line discon-
nects the ringer from the telephone
line in the exchange. The line is
Readers Comments: for inverters and flip-flops are easily avail- the other may be used to send a beep
❏ 1. Can we get some confirmation that able, I suggest their use. tone on the line when the appliance turns
the state of the appliance has really 5. Instead of using separate driving on.
toggled? stages for the relays, I suggest the use of 2. Readers are welcome to make their
2. Can we include some electronic cheaply available relay driving IC ULN own modifications to the circuit—like in-
security system (such as code lock), 2003. cluding code lock.
so that only the owner can use this K.P. Deshmukh 3. IC UM66 may be used in place of
facility? Solapur the 10kHz oscillator.
3. Instead of the 10 kHz oscillator used The author R. G. Kale replies: 4 & 5. I agree with the suggestions
for return tone, can the three-pin melodi- 1. Relays with two changeovers may put forward by the reader.
ous IC UM66 be used? be used for getting a confirmation about Keep the circuit disconnected while
4. In the circuit both TTL and CMOS the state of the appliance. One changeover making outgoing calls to prevent un-
ICs have been used. As TTL counterparts contact may be used for the appliance and wanted switching of the devices.
S
ometimes, while dialing a num- of the ribbon cable. Thereafter, connect it the telephone circuitry so that it does not
ber on the telephone, we may back to the telephone circuitry as shown affect the working of the calculator—since
press a wrong key, but by using in Fig. 1. The resistors are used to buffer
a simple calcu-
lator’s display
we can check
whether the di-
aled number is
correct or not.
This can be done
as follows.
Disconnect
the ribbon cable
of the key-pad
from rest of the
telephone cir-
cuitry and insert
a series resis-
tance of 27 kilo-
ohm in all ten
(nine in some
key-pads) wires Fig. 1 Fig. 2
8253 PROGRAMMABLE
INTERVAL TIMER
JUNOMON ABRAHAM
T
he circuit presented here is based counter IC 8253. IC 8253 was primarily It contains three independent 16-bit
on the commercially available designed for use as an MCS-80 periph- counters that can operate in any one of
programmable interval timer/ eral, but is now used in conjunction with the six modes (refer Table II(C)). It can
LOW-COST TRANSISTORISED
INTERCOM
PRADEEP G.
S
everal intercom circuits have ap-
peared in EFY using integrated
circuits. The circuit described here
uses three easily available transistors
only. Even a beginner can easily assemble
it on a piece of veroboard.
The circuit comprises a 3-stage resis-
tor-capacitor coupled amplifier. When ring
button S2 is
pressed, the ampli-
fier circuit formed
around transistors
T1 and T2 gets con-
verted into an asym-
metrical astable
multivib-rator gen-
erating ring signals. transistor T3 to drive the speaker of ear- is 10 to 15 mA only. Thus a 9-volt PP3
These ring signals piece. battery would have a long life, when used
are amplified by Current consumption of this intercom in this circuit.
AUTOMATICALLY CONTROLLED
STREET LIGHTS
YOGESH PRASAD
T
he circuit given here
can be used for
automatically
switching ‘on’ and switching
‘off’ the streetlights at ap-
propriate time. The circuit
uses a light-dependent 6
photo-resistor (LDR) as the
sensor whose resistance
changes in accordance with
the surrounding light’s in-
tensity. The circuit is so ad-
justed that when it turns
dark, the relay is energised
and the lights are switched
on, and during daylight they
go off automatically. The
LDR used should have a
‘dark’ resistance of about 15
mega-ohms, which may drop
to around 15 kilo-ohms in
bright daylight.
The LDR is
used in conjunc-
tion with a compa-
rator (IC LM311).
When it gets dark,
the voltage across *
the LDR increases
and thus voltage
VA>VT (refer cir-
cuit), and so the
output of the com-
parator goes high. *
This in turn for- *
T
hese are the days of competitive alarm can be reset for a fresh start. piezo-buzzer becomes active and gives
examinations. Nowadays, stu- The heart of the circuit is a CMOS IC out a tone. This buzzer also beeps for a
dents are required to answer a set CD 4060. It has a built-in oscillator and a few seconds at half the set time. Transis-
of objective type of questions in a given 14-stage divider, wherein the basic oscil- tor T1 prevents further oscillations after
time which may extend to 15 minutes, 30 lator frequency is divided by 16,384. Here the elapsed time. Red LED1 is used as
minutes, or one hour. Speed and accuracy the oscillator frequency may be set using activity indicator.
win the race. Practice helps in achieving potmeter VR1 (in series with resistor R1) For simplicity, 6-volt supply is chosen
it. and capacitor C1. Potmeter VR1 is ad- for operation of the circuit. To obtain 6V
Here is a timer that gives an alarm justed for a time period of 15 minutes at supply one may either use five Ni-Cd cells
after a preset time of 30 minutes. It also output Q12 (pin 2). The output Q13 (pin 3) or four dry cells. A charger circuit is not
gives out a few beeps at half the selected will go ‘high’ after 30 minutes. Use a multi- included here as a host of charger circuits
time period. The timer could be pro- turn potmeter for better accuracy. have appeared in EFY on and off.
grammed for other periods as well. The When Q13 goes high, the 3-terminal However, you may use a standard bridge
Y1
Y2
Y3
PROTECTING THREE-PHASE
INDUCTION MOTORS
ANKUR BAL
D
amage to induction motor is rangement. For the purpose of explana-
mostly caused by unchecked op- tion, let us assume that blue (B) phase is
eration during single-phase fail- missing. Since none of the three relays
ure. In case of a single-phase blackout, can energise, none of the phase outputs
the motor continues to run on the remain- is available. Now, if yellow (Y) phase is
ing two phases, endangering the windings. missing, relay RL3 will not energise, and
The given arrangement of three relays, thus yellow and blue phase output will
as shown in the figure, disconnects the not be available. Similarly, if red (R)
remaining two phases in the event of a phase is missing, relay RL2 will not en-
single-phase failure, thus stopping and ergise, and thus red and yellow phase out-
protecting the motor. One of the three puts will not be available. The motor
phases may still remain connected to the resumes normal operation automatically
motor, but that is not much cause for con- as soon as all the three phases are re-
cern because of the absence of a rotating stored.
magnetic field in the motor. 230-volt AC relays, with appropriate
Three 230-volt relays with single contact ratings, should be selected (de-
changeover contacts are used in this ar- pending on motor ratings).
T
his Electronic Project volume shown in Fig. 1, ter. It can transmit signals up to 15
contains a circuit idea “Wireless which just meas- metres without any aerial. The operating
Musical Calling Bell” which is uses ures 34 mm x 29 frequency of the transmitter is around
VG40T and VG40R VHF remote control mm x 10 mm, can 300 MHz. The following circuits, using
modules. be used to operate VG40R remote control receiver module
After its publication many readers all remote control (measuring 45 mm x 21 mm x 13 mm),
wanted to develop remote control switches receiver-cum- can be used to:
to control mains load using these compact, switch combina- (a) activate a relay momentarily,
sealed VHF remote control modules. A tions described in (b) activate a relay for a preset pe-
few designs for remote control switches, this project. A com- riod,
using VG40T and VG40R remote control pact 9-volt PP3 (c) switch on and switch off a load.
pair, are shown here. battery can be used To activate a relay momentarily (see
The miniature transmitter module Fig. 1 with the transmit- Fig. 2), the switch on the transmitter unit
Fig. 3
is pressed, and correspondingly
a positive voltage is obtained at
output pin of VG40R module.
This voltage is used to biasing
the relay driver transistor. The
relay gets activated by just press-
ing push-to-on micro switch on
the transmitter unit. The relay
remains energised as long as the
switch remains pressed. When
the switch is released, the relay
gets deactivated. Any electrical/
electronic load can be connected
via N/O contacts of the relay.
To activate a relay for a pre-
set period (refer Fig. 3), the switch
on the transmitter unit is pressed
Fig. 4
momentarily. The transistor gets
base bias from VG40R module.
As a result the transistor conducts and ter 4017 IC are used. Here the 4017 IC is To switch off the relay, press the transmit-
applies a trigger pulse to IC 555, which is wired as a flip-flop for toggle action. This ter switch again. This process can be re-
wired as a monostable multivibrator. The is achieved by connecting Q2 output to peated. Time delay of monostable
relay remains activated for the preset time reset terminal while Q1 output is unused. multivibrator is set for about one second.
is determined by the pulse width of the Q0 output of IC2 is used for energising the Note: Short length of shielded wire
monostable multivibrator. Time delay can relay. The relay is activated and deacti- should be used between VG40R receiver
be varied from a few seconds to a few vated by pressing the transmitter switch module output and the rest of the circuit.
minutes by adjusting timing components. alternately. So, to activate the load, just The transmitter with 9V battery must be
To switch on and switch off a load press the transmitter switch once, mo- housed inside a nonmetallic (say, plastic)
(refer Fig. 4), a 555 IC and a decade coun- mentarily. The relay will remain activated. cabinet for maximum range of operation.
T
his circuit of a sequential card corresponding LDRs if there is no hole IC chips, a CD4017B CMOS decade coun-
scanner can be used for any type (cut) on the card at the specific position, ter, a CD4043B SR latch, and a few other
of control application. The card, and vice versa. The resulting output from discrete components. The timer IC1
when inserted into its slot, will get aligned the scanner can be used for control appli- configured as an astable flip-flop, gener-
in such a fashion that light from the scan- cations. ates the clock for the CD4017B. An LED is
ning LEDs will be blocked from falling on The circuit consists of five NE555 timer connected at the timer output (pin 3) for
DIVIDE-BY-N COUNTER
USING IC 7442
PRAMOD KUMAR
T
he combination of ICs 7490 and this circuit we can realise a divide-by-n ger less than ten using rotary switch S1.
7447 is normally used as decade counter. Selected output of IC 7442 is used For example, if one wants to use the
counter cum seven-segment de- to reset decade counter 7490. circuit as divided-by-4 counter, the pole of
coder/LED display driver. It advances from In the circuit diagram, timer IC 555 rotary switch should be kept on output Q4
‘0’ to ‘9’ after each clock pulse and the count is used in astable mode. Output of this of IC4. The display would advance from 0
can be displayed on a 7-segment common- IC is used as clock for IC 7490. The out- to 3. On next clock pulse the Q4 output of
anode LED display such as LT542. The put of IC 7490 is connected to IC 7447 IC4 would go high after inversion by IC5
count/display repeats itself after every and IC 7442 in the usual manner. Out- (7404) and reset counter IC 7490 to zero.
tenth pulse. On several occasions, one needs put of 7447 IC is used to drive common- As a result the display would not be able to
to reset the counter after n counts. This can- anode LED display LT542. Rotary switch show the number 4 for a perceptible period.
not be accomplished by the above-men- S1 selects one of the ten outputs of IC4 Hence the maximum number displayed
tioned pair of ICs 7490 and 7447 alone. (after inversion by IC5 or IC6 inverter appears to be one less than the selected
A method for tackling the problem with gates). Pole of switch S1 is wired to pins division factor. Similarly, when we select
the help of rotary switch S1 and an addi- 2 and 3 of IC 7490, which are reset pins. division-by-2, the counter will show 0 and
tional IC 7442 is shown in the circuit. With Now one can select division by any inte- 1 repetitively.
T
he DTMF (dual tone multi-
frequency) tone generator
chip UM95089 generally
used in telephony for tone dialing
(used here as part of remote IR
transmitter) and DTMF tone de- Fig. 1: Block diagram of DTMF remote switching board
coder (tone to 4-bit binary output) chip
CM8870 (used in remote switching board)
are at the heart of this circuit.
The tone generator chip UM 95089
(IC1) has the capability to generate 16
different pairs of tones with the help of
3.5795MHz quartz crystal, XTL1. A key
matrix type switching system has been
provided, for selecting a particular fre-
quency pair. The coresponding output
available at pin 16 of the IC1. This signal
is amplified and used for modulating in-
frared light with the help of transistor T1
and IR LED1.
The infrared signal is detected by the
infrared sensor, converted into electrical Fig. 2: IR transmitter
H
ere is a novel idea
for using the printer
port of a PC, for con-
trol application using soft-
ware and some interface
hardware. The interface cir-
cuit along with the given soft-
ware can be used with the
printer port of any PC for con-
trolling up to eight equip-
ment. for only one device, being controlled by
The interface circuit D0 bit at pin 2 of the 25-pin parallel port.
shown in the figure is drawn Identical circuits for the remaining data
LONG-RANGE FM TRANSMITTER
PRADEEP G.
S
everal circuits for constructing FM For better results, assemble the cir- (Note: No core (i.e. air core) is used
transmitters have been published cuit on a good-quality glass epoxy board for the above coils)
in EFY. The power output of most and house the transmitter inside an alu- L3 – 7 turns of 24 SWG wire close
of these circuits were very low because no minium case. Shield the oscillator stage wound with 3mm diameter air core.
power amplifier stages were incorporated. using an aluminium sheet. L4 – 7 turns of 24 SWG wire-wound
The transmitter circuit described here Coil winding details are given below: on a ferrite bead (as choke)
has an extra RF power amplifier stage, L1 – 4 turns of 20 SWG wire close Potentiometer VR1 is used to set the
after the oscillator stage, to raise the wound over 8mm diameter plastic former. centre frequency whereas potentiometer
power output to 200-250 milliwatts. With L2 – 2 turns of 24 SWG wire near top VR2 is used for power control. For hum-
a good matching 50-ohm ground—plane end of L1. free operation, operate the transmitter on
antenna or multi-element Yagi antenna,
this transmitter can provide reasonably
good signal strength up to a distance of
about 2 kilometres.
The circuit built around transistor
T1 (BF494) is a basic low-power vari-
able-frequency VHF oscillator. A varicap
diode circuit is included to change the
frequency of the transmitter and to pro-
vide frequency modulation by audio sig-
nals. The output of the oscillator is about
50 milliwatts. Transistor T2 (2N3866)
forms a VHF-class A power amplifier. It
boosts the oscillator signals’ power four
to five times. Thus, 200-250 milliwatts of
power is generated at the collector of
transistor T2.
P
iezo buzzer is a low-cost, low etc). Many of us think that its application transistor). This transistor acts as an elec-
power consuming, space-saving, is limited to sophisticated instruments and tronic switch.
PCB-mountable device. It can domestic appliances. However, many low- The piezo buzzer described here is of
work on a wide range of supply voltages— cost useful devices can be constructed by continuous type, and its construction
starting from 1.5V to 27V. It is a self- simply adding a transistor to it. This ex- would cost around Rs 20. When applying
oscillating handy sounder with a variety tra transistor provides the third high-im- more than 12V, please confirm its maxi-
of sound modes (continuous, intermittent, pedance control terminal (base of the mum supply voltage rating, as some buzz-
L
ots of power supply circuits have ment is more, say around 19-20A, then power supply gives 12V ± 0.25V DC at
been printed by different maga- some minor changes are necessary in the 1.5A max. The IC SI-3120CA is a 5-pin,
zines. Here is a simple home- current rating of transformer and bridge hybrid dropper-type regulator with a
brew, high-current power supply unit rectifier, etc. One can also substitute tran- maximum input voltage (VIN) of 35V and
(PSU). The speciality of this PSU is very sistor T1 with two 2N3773 transistors (in power dissipation (PD) of 18 watts. The
good performance despite the minimum parallel). Noise filter circuit to be used IC has a number of internal protections,
use of components. The PSU delivers between the 230V AC mains and the trans- including overvoltage, overcurrent, and
12V output at 12A. At input a noise former input is shown in Fig. 2. However, overheat protections. Specified VIN range
suppressor is added. The ready-made you may also use readymade ELCOM noise is 13V to 30V. Its ripple rejection factor
noise suppressors like ‘Schaffner’ NO- filter for the purpose. This PSU is easy to is 54dB. Further, there is no need for ex-
FU1211, Switzerland, or equivalent are assemble, RF immune, and overvoltage/ ternal protections like crowbar. Use of
easily available in the market. Series- reverse-polarity protected. heat sink for the IC is recommended. You
pass transistor T1 2N6320 or 2N 6321 is General-purpose. This is a general- may use it with a mains stepdown trans-
used for this circuit. (During testing at purpose power supply for your shack, former of 0-22V AC, 2A secondary rating.
EFY lab, BD 249 transistor with current which can be used for QRP transceiver Diode 1N4007 is a reverse polarity pro-
rating of 25A was substituted.) It is a operation, testing of QRP RF amplifiers, tection diode.
high-current, high-voltage transistor with and VFO or other general-purpose appli- Discrete PSU For QRO (Fig. 3).
power dissipation rating of 300W. The cations like 2m/70cm handheld rigs. There This PSU design is meant for QRO trans-
components comprising 14V zener D2, is no need for external components other ceivers (50W) and RF linear amplifiers,
resistors R2, R3, and SCR T2 (BT151 than two capacitors and one diode. The etc. IC LM396 is a high-current voltage
used at EFY during testing) form the
crowbar protection circuit to short-circuit
the input AC voltage and blow fuse F1
in case the output voltage crosses 14V
DC level.
Use a heat sink with adequate heat
dissipation capability along with a cool-
ing fan for transistor T1. However, a small
heat sink is adequate for regulator IC
7812. The diode across the output is for
reverse polarity protection. All compo-
nents are available in the market. You
may use a mains step-down transformer
with 0-20V AC, 15A secondary rating for
the circuit. The SCR should be of 18A,
200V type. Ferrite beads (FB) at base and
output terminals avoid RF interference.
Use a 16A, 200V PIV (peak inverse volt-
age rating) bridge rectifier, followed by a
15,000µF, 60V-rated capacitor for rectifi-
cation and filtering.
One can use this power supply circuit
for high-current applications like HF and
VHF mobile stations. If current require- Fig. 1: Economical high current power supply unit
M
any of us use cooler pumps dur- sion of 555-based astable multivibrator duty-cycles of the overall on-off period, as
ing summer. An air-cooler unit, with a long time-period. The length of on- desired. It is recommended to set the on-
in addition to the fan motor, time is a multiple of the period of 555 time for three-four minutes and the off-
uses a 35- to 50-watt pump motor. The output and the number of used CD4017 time for seven-eight minutes as it suits
pump runs continuously and unnecessar- outputs being connected together in wired- most coolers.
ily wastes power. The pump motor can, OR fashion, using diodes. The off-time pe- When there is inadequate water in
in fact, be switched off for some time once riod is a multiple of the period of 555 and the tank, the pump is automatically
the pads are wet—save power and also the number of unused outputs of CD4017. switched off. This is achieved by pulling
prolong the life of the motor. The given The circuit thus increases the on and off the reset and inhibit pins of 4017 to sup-
circuit is a cyclic on-and-off timer which time of the 555 waveform with the help of ply voltage. Taking these pins towards
helps to achieve this objective. 4017 counter. The 4017 output being pro- ground potential (while the tank water
The circuit is simply an extended ver- grammable, can be used to get different level is sufficient) through the water in-
O
ne of the main features of the de-energised, which switches off the nevertheless be changed as per user’s
regulated power supply circuit mains input to primary of transformer requirement (up to 30V maximum and
being presented is that though X1. To resume the power again, switch 1-ampere current rating). For drawing
fixed-voltage regulator LM7805 is used S1 should be pressed momentarily. more than 300mA current, the regulator
in the circuit, its output voltage is vari- Higher the value of capacitor C2, more IC must be fitted with a small heat
able. This is achieved by connecting a will be the delay in switching off the sink over a mica insulator. When the
potentiometer between common terminal power supply on disconnection of the load, transformer’s secondary voltage increases
of regulator IC and ground. For every and vice versa. beyond 12 volts (RMS), potentiometer
100-ohm increment in the in-circuit value Though in the prototype a trans- VR1 must be redimensioned. Also,
of the resistance of potentiometer VR1, former with a secondary voltage of the relay voltage rating should be
the output voltage increases by 1 volt. 12V-0V, 250mA was used, it can redetermined.
Thus, the output varies from 3.7V to 8.7V
(taking into account 1.3-volt drop across
diodes D1 and D2).
Another important feature of the sup-
ply is that it switches itself off when no
load is connected across its output
terminals. This is achieved with the help
of transistors T1 and T2, diodes D1 and
D2, and capacitor C2. When a load is
connected at the output, potential drop
across diodes D1 and D2 (approximately
1.3V) is sufficient for transistors T2 and
T1 to conduct. As a result, the relay gets
energised and remains in that state as
long as the load remains connected. At
the same time, capacitor C2 gets charged
to around 7-8 volt potential through tran-
sistor T2. But when the load is discon-
nected, transistor T2 is cut off. However,
capacitor C2 is still charged and it starts
discharging through base of transistor
T1. After some time (which is basically
determined by value of C2), relay RL1 is