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

Car anti theft wireless alarm

 This FM radio-controlled anti- theft alarm can be used with any vehicle having 6- to 12-volt DC supply system. The mini VHF, FM transmitter is fitted in the vehicle at night when it is parked in the car porch or car park. The receiver unit with CXA1019, a single IC-based FM radio module, which is freely available in the market at reasonable rate, is kept inside. Receiver is tuned to the transmitter's frequency. When the transmitter is on and the signals are being received by FM radio receiver, no hissing noise is available at the output of receiver. Thus transistor T2 (BC548) does not conduct. This results in the relay driver transistor T3 getting its forward base bias via 10k resistor R5 and the relay gets energised. When an intruder tries to drive the car and takes it a few metres away from the car porch, the radio link between the car (transmitter) and alarm (receiver) is broken. As a result FM radio module gene-rates hissing noise. Hissing AC signals are coupled to relay switching circ- uit via audio transformer. These AC signals are rectified and filtered by diode D1 and capacitor C8, and the resulting positive DC voltage provides a forward bias to transistor T2. Thus transistor T2 conducts, and it pulls the base of relay driver transistor T3 to ground level. The relay thus gets de-activated and the alarm connected via N/C contacts of relay is switched on. If, by chance, the intruder finds out about the wireless alarm and disconnects the transmitter from battery, still remote alarm remains activated because in the absence of signal, the receiver continues to produce hissing noise at its output. So the burglar alarm is fool-proof and highly reliable.

Remote Control Circuit diagrams for Test & Measurement Circuits

 Here 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 remote 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 sensor module, output pin 2 of the sensor goes high and, as a result, transistor T1 switches off and hence LED1 and buzzer BZ1 go off. This circuit requires 5V regulated power supply which can be obtained from 9V eliminator and connected to the circuit through a jack. Capacitor C1 smoothes DC input while capacitor C2 suppresses any sudden spikes appearing in the input supply. Here, a plastic moulded sensor has been used so that it can easily stick out from a cut in the metal box in which it is housed. It requires less space. Proper grounding of the metal case will ensure that the electromagnetic emissions which are produced by tube-lights and electronic ballasts etc (which lie within the bandwidth of receiver circuit) are effectively grounded and do not interfere with the functioning of the circuit. The proposed layout of the box containing the circuit is shown in the figure. The 9-volt DC supply from the eliminator can be fed into the jack using a banana-type plug.
Tech. Editor�s note: In fact, the complete gadget can be assembled in the eliminator�s housing itself and a cut can be made in its body for exposing the IR module�s sensor part.

Telephone operated remote control using PIC16F84A microcontroller

Circuit Diagram

This design controls up to 8 devices using a PIC microcontroller (PIC16F84A) connected to the phone line. The unique feature here is that unlike other telephone line based remote control, this device does not need the call to be answered at the remote end so the call will not be charged. This device depends on number of rings given on the telephone line to activate/deactivate devices.

 Instructions for the telephone operated remote switch:
A) While constructing the main circuit, make sure you use 18pin sockets (base) for the PIC16F84A. Do not solder the IC directly to the board since you may have to remove it for programming. Before you use the PIC on the main circuit, you have to first program it.
B) To program the PIC16F84A microcontroller:
There are lots of programmers on the Internet available to program PIC microncontrollers. Given below are links to some free PIC programmer hardware/software:
 Instructions for the telephone operated remote switch:
A) While constructing the main circuit, make sure you use 18pin sockets (base) for the PIC16F84A. Do not solder the IC directly to the board since you may have to remove it for programming. Before you use the PIC on the main circuit, you have to first program it.
B) To program the PIC16F84A microcontroller:
There are lots of programmers on the Internet available to program PIC microncontrollers. Given below are links to some free PIC programmer hardware/software:
Note: Programm the chip with the hex file attached above and remember to set the fuse bits to use "EXTERNAL HS OSCILLATOR" mode!
C) Remove the PIC from the programmer socket and put it into the main circuit socket.
 Set the DIP SWITCH as follows:
Switch3   Switch4      No. of initial rings to Switch ON(activate half of the board)
OFF        OFF             5
ON         OFF             4
OFF        ON              3
ON         ON              2
The number of initial rings to Switch OFF is one more than the number of rings to switch ON. For example, if you have set switch3 OFF & Switch4 ON then number of initial rings to activate half of the board to switch ON the relays is 3 and number of initial rings to activate half of the board to switch OFF the relays is 3+1 = 4
Switch1  Swtich2        Delay before making the second set of rings
OFF        OFF             20sec
ON         OFF             15sec
OFF        ON              10sec
ON         ON              5sec
This is the maximum delay the board can take after it is half activated. It will reset after this delay.
D) Now connect the circuit to the phone line and switch on its power supply.
E) You can test the board now. For example set the DIP switch to Switch1 ON, Switch2 OFF (15 sec delay) & switch3 ON, switch4 OFF (4 rings to activate half for switching ON). If you want to switch ON relay 1 (connected to RB0 of main circuit) then you have to do the following:
  1. Give 4 rings and put down the receiver
  2. Wait 5 seconds (this 5 seconds wait is required to prevent the board from detecting continous rings)
  3. then within 15 seconds give 1 ring (1 ring for relay1, 2 rings for relay2 and so on) and put down the receiver
  4. then within 5 sec the relay1 will switch ON
To switch off relay1:
  1. Give 5 rings and put down the receiver
  2. Wait 5 seconds (this 5 seconds wait is required to prevent the board from detecting continous rings)
  3. then within 15 seconds give 1 ring (1 ring for relay1, 2 rings for relay2 and so on) and put down the receiver
  4. then within 5 sec the relay1 will switch OFF
IMPORTANT: This circuit has been tested by me and found to work correctly. I cannot guarantee that the circuit will work at your end since it depends on error free construction and usage. Please do not contact for any support and requests, any such requests will not be entertained.

[Home]
Electronic Kits
& Gadgets

electronic kits

rf module, modules, 2.4GHz, OEM
Tiny RF (wireless) modules



Search this site: