Saturday, February 12, 2011

Oscillators:Simple variable frequency oscillator

This is a very simple circuit utilising a 555 timer IC to generate square wave of frequency that can be adjusted by a potentiometer.
With values given the frequency can be adjusted from a few Hz to several Khz.
To get very low frequencies replace the 0.01uF capacitor with a higher value.
The formula to calculate the frequency is given by:
1/f = 0.69 * C * ( R1 + 2*R2)

The duty cycle is given by:
% duty cycle = 100*(R1+R2)/(R1+ 2*R2)
In order to ensure a 50% (approx.) duty ratio, R1 should be very small when compared to R2. But R1 should be no smaller than 1K.
A good choice would be, R1 in kilohms and R2 in megaohms. You can then select C to fix the range of frequencies.

Home/Garden related Circuits:Programmable Digital Code Lock

A programmable code lock can be used for numerous applications in which access to an article/gadget is to be restricted to a limited number of persons. Here is yet another circuit of a code lock employing mainly the CMOS ICs and thumbwheel switches (TWS) besides a few other components. It is rugged and capable of operation on voltages ranging between 6 and 15 volts. The supply current drain of CMOS ICs being quite low, the circuit may be operated even on battery.
The circuit uses two types of thumbwheel switches. switch numbers TWS1 through TWS8 are decimal-to-BCD converter type while switch numbers TWS9 through TWS16 are 10-input multiplexer type in which only one of the ten inputs may be connected to the output (pole). One thumbwheel switch of each of the two types is used in combination with IC CD4028B (BCD to decimal decoder) to provide one digital output.Eight such identical combinations of thumbwheel switches and IC CD4028 are used. The eight digital outputs obtained from these combinations are connected to the input of 8-input NAND gate CD4068.For getting a logic high output, say at pole-1, it is essential that decimal numbers selected by switch pair TWS1 and TWS9 are identical, as only then the logic high output available at the Specific output pin of IC1 will get transferred to pole-1. Accordingly, when the thumbwheel pair of switches in each combination is individually matched, the outputs at pole-1 to pole-8 will be logic high.This will cause output of 8-input NAND gate IC CD4068b to change over from logic high to logic low, thereby providing a high-to-low going clock pulse at clock input pin of 7-stage counter CD4024B, which is used here as a flip-flop (only Q0 output is used here).The output (Q0) of the flip-flop is connected to a relay driver circuit consisting of transistors T1 and T2. The relay will operate when Q0 output of flip-flop goes low. As a result transistor T1 cuts off and T2 gets forward biased to operate the relay.Switch S1 is provided to enable switching off (locking) and switching on (unlocking) of the relay as desired, once the correct code has been set.
With the code set correctly, the NAND gate output will stay low and flip-flop can be toggled any number of times, making it possible to switch on or switch off the relay, as desired. Suppose we are using the system for switching-on of a deck for which the power supply is routed via the contacts of the relay. The authorised person would select correct code which would cause the supply to become available to the deck. After use he will operate switch S1 and then shuffle the thumbwheel switches TWS1 through TWS8 such that none of the switches produces a correct code. Once the code does not match, pressing of switch S1 has no effect on the output of the flip-flop.Switches TWS9 through TWS16 are concealed after setting the desired code. In place of thumbwheel switches TWS1 through TWS8 DIP switches can also be used

Radio Circuits:Long range FM transmitter

The power output of most of these circuits are very low because no power amplifier stages were incorporated.
The transmitter circuit described here has an extra RF power amplifier stage, after the oscillator stage, to raise the power output to 200-250 milliwatts. With a good matching 50-ohm ground plane 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 variable-frequency VHF oscillator. A varicap diode circuit is included to change the frequency of the transmitter and to provide frequency modulation by audio signals. 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.
For better results, assemble the circuit on a good-quality glass epoxy board and house the transmitter inside an aluminium case. Shield the oscillator stage using an aluminium sheet.
Coil winding details are given below:
L1 - 4 turns of 20 SWG wire close wound over 8mm diameter plastic former.
L2 - 2 turns of 24 SWG wire near top end of L1.
(Note: No core (i.e. air core) is used for the above coils)
L3 - 7 turns of 24 SWG wire close wound with 4mm diameter air core.
L4 - 7 turns of 24 SWG wire-wound on a ferrite bead (as choke)
Potentiometer VR1 is used to vary the fundamental frequency whereas potentiometer VR2 is used as power control. For hum-free operation, operate the transmitter on a 12V rechargeable battery pack of 10 x 1.2-volt Ni-Cd cells. Transistor T2 must be mounted on a heat sink. Do not switch on the transmitter without a matching antenna. Adjust both trimmers (VC1 and VC2) for maximum transmission power. Adjust potentiometer VR1 to set the fundamental frequency near 100 MHz.
This transmitter should only be used for educational purposes. Regular transmission using such a transmitter without a licence is illegal in India

Computer Hardware Circuits:Control electrical appliances using PC

 Here is a circuit for using the printer port of a PC, for control application using software and some interface hardware. The interface circuit along with the given software can be used with the printer port of any PC for controlling up to eight equipment .
The interface circuit shown in the figure is drawn for only one device, being controlled by D0 bit at pin 2 of the 25-pin parallel port. Identical circuits for the remaining data bits D1 through D7 (available at pins 3 through 9) have to be similarly wired. The use of opto-coupler ensures complete isolation of the PC from the relay driver circuitry.
Lots of ways to control the hardware can be implemented using software. In C/C++  one can use the outportb(portno,value) function where portno is the parallel port address (usually 378hex for LPT1) and 'value' is the data that is to be sent to the port. For a value=0 all the outputs (D0-D7) are off. For value=1 D0 is ON, value=2 D1 is ON, value=4, D2 is ON and so on. eg. If value=29(decimal) =   00011101(binary)  ->D0,D2,D3,D4 are ON and the rest are OFF.        
                         

Motor Circuits:Automatic Speed Controller for fans & Coolers


During summer nights, the temperature is initially quite high. As time passes, the temperature starts dropping. Also, after a person falls asleep, the metabolic rate of one�s body decreases. Thus, initially the fan/cooler needs to be run at full speed. As time passes, one has to get up again and again to adjust the speed of the fan or the cooler.The device presented here makes the fan run at full speed for a predetermined time. The speed is decreased to medium after some time, and to slow later on. After a period of about eight hours, the fan/cooler is switched off.Fig. 1 shows the circuit diagram of the system. IC1 (555) is used as an astable multivibrator to generate clock pulses. The pulses are fed to decade dividers/counters formed by IC2 and IC3. These ICs act as divide-by-10 and divide-by-9 counters, respectively. The values of capacitor C1 and resistors R1 and R2 are so adjusted that the final output of IC3 goes high after about eight hours.The first two outputs of IC3 (Q0 and Q1) are connected (ORed) via diodes D1 and D2 to the base of transistor T1. Initially output Q0 is high and therefore relay RL1 is energised. It remains energised when Q1 becomes high. The method of connecting the gadget to the fan/cooler is given in Figs 3 and 4.








It can be seen that initially the fan shall get AC supply directly, and so it shall run at top speed. When output Q2 becomes high and Q1 becomes low, relay RL1 is turned �off� and relay RL2 is switched �on�. The fan gets AC through a resistance and its speed drops to medium. This continues until output Q4 is high. When Q4 goes low and Q5 goes high, relay RL2 is switched �off� and relay RL3 is activated. The fan now runs at low speed.Throughout the process, pin 11 of the IC is low, so T4 is cut off, thus keeping T5 in saturation and RL4 �on�. At the end of the cycle, when pin 11 (Q9) becomes high, T4 gets saturated and T5 is cut off. RL4 is switched �off�, thus switching �off� the fan/cooler.Using the circuit described above, the fan shall run at high speed for a comparatively lesser time when either of Q0 or Q1 output is high. At medium speed, it will run for a moderate time period when any of three outputs Q2 through Q4 is high, while at low speed, it will run for a much longer time period when any of the four outputs Q5 through Q8 is high.If one wishes, one can make the fan run at the three speeds for an equal amount of time by connecting three decimal decoded outputs of IC3 to each of the transistors T1 to T3. One can also get more than three speeds by using an additional relay, transistor, and associated components, and connecting one or more outputs of IC3 to it.
In the motors used in certain coolers there are separate windings for separate speeds. Such coolers do not use a rheostat type speed regulator. The method of connection of this device to such coolers is given in Fig. 4.
The resistors in Figs 2 and 3 are the tapped resistors, similar to those used in manually controlled fan-speed regulators. Alternatively, wire-wound resistors of suitable wattage and resistance can be used.

  

Ultrasonic switch sensor

 Circuit of a new type of remote control switch is described here. This circuit functions with inaudible (ultrasonic) sound. Sound of frequency up to 20 kHz is audible to human beings. The sound of frequency above 20 kHz is called ultrasonic sound. The circuit described generates (transmits) ultrasonic sound of frequency between 40 and 50 kHz. As with any other remote control system this cirucit too comprises a mini transmitter and a receiver circuit. Transmitter generates ultrasonic sound and the receiver senses ultrasonic sound from the transmitter and switches on a relay. The ultrasonic transmitter uses a 555 based astable multivibrator. It oscillates at a frequency of 40-50 kHz. An ultrasonic transmitter transducer is used here to transmit ultrasonic sound very effectively. The transmitter is powered from a 9-volt PP3 single cell. The ultrasonic receiver circuit uses an ultrasonic receiver transducer to sense ultrasonic signals. It also uses a two-stage amplifier, a rectifier stage, and an operational amplifier in inverting mode. Output of op-amp is connected to a relay through a complimentary relay driver stage. A 9-volt battery eliminator can be used for receiver circuit, if required. When switch S1 of transmitter is pressed, it generates ultrasonic sound. The sound is received by ultrasonic receiver transducer. It converts it to electrical variations of the same frequency. These signals are amplified by transistors T3 and T4. The amplified signals are then rectified and filtered. The filtered DC voltage is given to inverting pin of op-amp IC2. The non- inverting pin of IC2 is connected to a variable DC voltage via preset VR2 which determines the threshold value of ultrasonic signal received by receiver for operation of relay RL1. The inverted output of IC2 is used to bias transistor T5. When transistor T5 conducts, it supplies base bias to transistor T6. When transistor T6 conducts, it actuates the relay. The relay can be used to control any electrical or electronic equipment. Important hints:
1. Frequency of ultrasonic sound generated can be varied from 40 to 50 kHz range by adjusting VR1. Adjust it for maximum performance.
2. Ultrasonic sounds are highly directional. So when you are operating the switch the ultrasonic transmitter transducer of transmitter should be placed towards ultrasonic receiver transducer of receiver circuit for proper functioning.
3. Use a 9-volt PP3 battery for transmitter. The receiver can be powered from a battery eliminator and is always kept in switched on position.
4. For latch facility use a DPDT relay if you want to switch on and switch off the load. A flip-flop can be inserted between IC2 and relay. If you want only an �ON-time delay� use a 555 only at output of IC2. The relay will be energised for the required period determined by the timing components of 555 monostable multivibrator.
5. Ultrasonic waves are emitted by many natural sources. Therefore, sometimes, the circuit might get falsely triggered, espically when a flip-flop is used with the circuit, and there is no remedy for that

Metal Detector

 The circuit described here is that of a metal detector. The opera- tion of the circuit is based on superheterodyning principle which is commonly used in superhet receivers. The circuit utilises two RF oscillators. The frequencies of both oscillators are fixed at 5.5 MHz. The first RF oscillator comprises transistor T1 (BF 494) and a 5.5MHz ceramic filter commonly used in TV sound-IF section. The second oscillator is a Colpitt�s oscillator realised with the help of transistor T3 (BF494) and inductor L1 (whose construction details follow) shunted by trimmer capacitor VC1. These two oscillators� frequencies (say Fx and Fy) are mixed in the mixer transistor T2 (another BF 494) and the difference or the beat frequency (Fx-Fy) output from collector of transistor T2 is connected to detector stage comprising diodes D1 and D2 (both OA 79). The output is a pulsating DC which is passed through a low-pass filter realised with the help of a 10k resistor R12 and two 15nF capacitors C6 and C10. It is then passed to AF amplifier IC1 (2822M) via volume control VR1 and the output is fed to an 8-ohm/1W speaker. The inductor L1 can be constructed using 15 turns of 25SWG wire on a 10cm (4-inch) diameter air-core former and then cementing it with insulating varnish. For proper operation of the circuit it is critical that frequencies of both the oscillators are the same so as to obtain zero beat in the absence of any metal in the near vicinity of the circuit. The alignment of oscillator 2 (to match oscillator 1 frequency) can be done with the help of trimmer capacitor VC1. When the two frequencies are equal, the beat frequency is zero, i.e. beat frquency=Fx-Fy=0, and thus there is no sound from the loudspeaker. When search coil L1 passes over metal, the metal changes its inductance, thereby changing the second oscillator�s frequency. So now Fx-Fy is not zero and the loudspeaker sounds. Thus one is able to detect presence of metal