Sunteți pe pagina 1din 15

IR BASED INTELLIGENT AUTOMATIC WASH BASIN MIRROR LAMP CONTROLLER

Generally, in restaurants, auditoria and even homes, many a times we forget to switch off the wash basin mirror lamp after use. So to rectify this problem we have designed a project named IR Based Intelligent Automatic wash basin mirror lamp controller. This project automatically switches on the wash basin mirror lamp whenever a person stands in front of it and switch off the same after you move away from it, thereby saving energy. This project consists of two sections i.e., infrared transmitter and receiver. The transmitter section is built around two ICs namely 555 IC1 and 555 IC2 and the receiver section is built around IC3 namely 555 IC which is a timer. The first two ICs IC1 and IC2 functions as astable multivibrators and the third IC3 functions as a monostable timer. The IR leds transmitting 38 kHz square wave pulses which are generated by IC2 configured in astable mode. When these IR pulses are reflected back to the receiver sensor by the person standing in front of the mirror, the sensor at the receiver end detects these IR rays and triggers IC3 configured in monostable mode. A relay is connected to the output of IC3. Thus when the receiver sensor senses IR pulses it will trigger IC3 which in turn energizes relay for a predetermined period. As the basin lamp is connected to the relay it will turn on for that period of time and switches off after few seconds. The receiver circuit comprises of an IR sensor TSOP 1738, a timer, relay driver transistor and its associated components. Whenever the sensor receives IR radiations, it triggers IC3 which is wired as a monostable multivibrator with a time period of approximately 24 seconds. The time period can be changed by changing the respective resistor and capacitor values in the receiver section. Thus the wash basin mirror lamp switches on as and when a person stands in front of it. Otherwise, it remains off. The complete circuit works on regulated 9v power supply. The arrangement should be done in such a way by mounting the IR leds and receiver sensor above the wash basin. The following are its specifications. Power Supply IC Sensor Relay Applications : : : : : +5V, 500mA Regulated Power Supply 555TIMER Infrared SPDT Industries, Office and Home Applications

BLOCK DIAGRAM: INFRA RED TRANSMITTER INFRARED RECEIVER MONOSTABLE MULTIVIBRATOR

38KHZ SQUARE WAVE GENERATO R Step down T/F POWER SUPPLY:

RELAY

DEVICE

Bridge Rectifier

Filter Circuit

Regulator

Power supply to all sections

The input to the circuit is applied from the regulated power supply. The a.c. input i.e., 230V from the mains supply is step down by the transformer to 12V and is fed to a rectifier. The output obtained from the rectifier is a pulsating d.c voltage. So in order to get a pure d.c voltage, the output voltage from the rectifier is fed to a filter to remove any a.c components present even after rectification. Now, this voltage is given to a voltage regulator to obtain a pure constant dc voltage.

230V AC 50Hz

D.C Output

Step down transformer

Bridge Rectifier

Filter

Regulator

Fig: Power supply

TRANSFORMER: Usually, DC voltages are required to operate various electronic equipment and these voltages are 5V, 9V or 12V. But these voltages cannot be obtained directly. Thus the a.c input available at the mains supply i.e., 230V is to be brought down to the required voltage level. This is done by a transformer. Thus, a step down transformer is employed to decrease the voltage to a required level.

RECTIFIER: The output from the transformer is fed to the rectifier. It converts A.C. into pulsating D.C. The rectifier may be a half wave or a full wave rectifier. In this project, a bridge rectifier is used because of its merits like good stability and full wave rectification.

The Bridge rectifier is a circuit, which converts an ac voltage to dc voltage using both half cycles of the input ac voltage. The Bridge rectifier circuit is shown in the figure. The circuit has four diodes connected to form a bridge. The ac input voltage is applied to the diagonally opposite ends of the bridge. The load resistance is connected between the other two ends of the bridge.

For the positive half cycle of the input ac voltage, diodes D1 and D3 conduct, whereas diodes D2 and D4 remain in the OFF state. The conducting diodes will be in series with the load resistance RL and hence the load current flows through RL. For the negative half cycle of the input ac voltage, diodes D2 and D4 conduct whereas, D1 and D3 remain OFF. The conducting diodes D2 and D4 will be in series with the load resistance RL and hence the current flows through RL in the same direction as in the previous half cycle. Thus a bi-directional wave is converted into a unidirectional wave.

FILTER: Capacitive filter is used in this project. It removes the ripples from the output of rectifier and smoothens the D.C. Output received from this filter is constant until the mains voltage and load is maintained constant. However, if either of the two is varied, D.C. voltage received at this point changes. Therefore a regulator is applied at the output stage. VOLTAGE REGULATOR: As the name itself implies, it regulates the input applied to it. A voltage regulator is an electrical regulator designed to automatically maintain a constant voltage level. In this project, power supply of 5V and 12V are required. In order to obtain these voltage levels, 7805 and 7812 voltage regulators are to be used. The first number 78 represents positive supply and the numbers 05, 12 represent the required output voltage levels. The L78xx series of three-terminal positive regulators is available in TO-220, TO-220FP, TO3, D2PAK and DPAK packages and several fixed output voltages, making it useful in a wide range of applications. These regulators can provide local on-card regulation, eliminating the distribution problems associated with single point regulation. Each type employs internal current limiting, thermal shut-down and safe area protection, making it essentially indestructible. If adequate heat sinking is provided, they can deliver over 1 A output current. Although designed primarily as fixed voltage regulators, these devices can be used with external components to obtain adjustable voltage and currents.

IR SECTION: What Is Infrared? Infrared is an energy radiation with a frequency below our eyes sensitivity, so we cannot see it Even that we can not "see" sound frequencies, we know that it exist, we can listen them.

Even that we can not see or hear infrared, we can feel it at our skin temperature sensors. When you approach your hand to fire or warm element, you will "feel" the heat, but you can't see it. You can see the fire because it emits other types of radiation, visible to your eyes, but it also emits lots of infrared that you can only feel in your skin. INFRARED IN ELECTRONICS Infra-Red is interesting, because it is easily generated and doesn't suffer electromagnetic interference, so it is nicely used to communication and control, but it is not perfect, some other light emissions could contains infrared as well, and that can interfere in this communication. The sun is an example, since it emits a wide spectrum or radiation. The adventure of using lots of infra-red in TV/VCR remote controls and other applications, brought infra-red diodes (emitter and receivers) at very low cost at the market. From now on you should think as infrared as just a "red" light. This light can means something to the receiver, the "on or off" radiation can transmit different meanings. Lots of things can generate infrared, anything that radiate heat do it, including out body, lamps, stove, oven, friction your hands together, even the hot water at the faucet. To allow a good communication using infra-red, and avoid those "fake" signals, it is imperative to use a "key" that can tell the receiver what is the real data transmitted and what is fake. As an analogy, looking eye naked to the night sky you can see hundreds of stars, but you can spot easily a far away airplane just by its flashing strobe light. That strobe light is the "key", the "coding" element that alerts us. Similar to the airplane at the night sky, our TV room may have hundreds of tinny IR sources, our body, and the lamps around, even the hot cup of tea. A way to avoid all those other sources, is generating a key, like the flashing airplane. So, remote controls use to pulsate its infrared in a certain frequency. The IR receiver module at the TV, VCR or stereo "tunes" to this certain frequency and ignores all other IR received. The best frequency for the job is between 30 and 60 kHz, the most used is around 36 kHz

IR GENERATION To generate a 36 kHz pulsating infrared is quite easy, more difficult is to receive and identify this frequency. This is why some companies produce infrared receives, that contains the filters, decoding circuits and the output shaper, that delivers a square wave, meaning the existence or not of the 36kHz incoming pulsating infrared. It means that those 3 dollars small units, have an output pin that goes high (+5V) when there is a pulsating 36kHz infrared in front of it, and zero volts when there is not this radiation. A square wave of approximately 27uS (microseconds) injected at the base of a transistor, can drive an infrared LED to transmit this pulsating light wave. Upon its presence, the commercial receiver will switch its output to high level (+5V).If you can turn on and off this frequency at the transmitter; your receiver's output will indicate when the transmitter is on or off. Those IR demodulators have inverted logic at its output, when a burst of IR is sensed it drives its output to low level, meaning logic level = 1. The TV, VCR, and Audio equipment manufacturers for long use infra-red at their remote controls. To avoid a Philips remote control to change channels in a Panasonic TV, they use different codification at the infrared, even that all of them use basically the same transmitted frequency, from 36 to 50 kHz. So, all of them use a different combination of bits or how to code the transmitted data to avoid interference. RC-5: Various remote control systems are used in electronic equipment today. The RC5 control protocol is one of the most popular and is widely used to control numerous home appliances, entertainment systems and some industrial applications including utility consumption remote meter reading, contact-less apparatus control, telemetry data transmission, and car security systems. Philips originally invented this protocol and virtually all Philips remotes use this protocol. Following is a description of the RC5. When the user pushes a button on the hand-held remote, the device is activated and sends modulated infrared light to transmit the command. The remote separates command data into packets. Each data packet consists of a 14-bit data word, which is repeated if the user continues to push the remote button. The data packet structure is as follows: 2 start bits 1 control bit 5 address bits 6 command bits. The start bits are logic 1 and to calibrate the receiver automatic gain always intended optical control

loop. Next, is the control bit. This bit is inverted each time the user releases the remote button and is intended to differentiate situations when the user continues to hold the same button or presses it again. The next 5 bits are the address bits and select the destination device. A number of devices can use RC5 at the same time. To exclude possible interference, each must use a different address. The 6 command bits describe the actual command. As a result, a RC5 transmitter can send the 2048 unique commands. The transmitter shifts the data word, applies Manchester encoding and passes the created one-bit sequence to a control carrier frequency signal amplitude modulator. The amplitude modulated carrier signal is sent to the optical transmitter, which radiates the infrared light. In RC5 systems the carrier frequency has been set to 36 kHz. Figure below displays the RC5 protocol. The receiver performs the reverse function. The photo detector converts optical transmission into electric signals, filters it and executes amplitude demodulation. The receiver output bit stream can be used to decode the RC5 data word. This operation is done by the microprocessor typically, but complete hardware implementations are present on the market as well. Single-die optical receivers are being mass produced by a number of companies such as Siemens, Temic, Sharp, Xiamen Hualian, Japanese Electric and others. Please note that the receiver output is inverted (log. 1 corresponds to illumination absence).

IR TRANSMITTER:

TSAL6200 is a high efficiency infrared emitting diode in GaAlAs on GaAs technology, molded in clear, blue grey tinted plastic packages. In comparison with the standard GaAs on GaAs technology these emitters achieve more than 100 % radiant power improvement at a similar wavelength. The forward voltages at low current and at high pulse current roughly correspond to the low values of the standard technology. Therefore these emitters are ideally suitable as high performance replacements of standard emitters. FEATURES Extra high radiant power and radiant intensity High reliability Low forward voltage Suitable for high pulse current operation Standard T-1 ( 5 mm) package

Angle of half intensity = 17 Peak wavelength p = 940 nm Good spectral matching to Si photodetectors APPLICATIONS: Infrared remote control units with high power requirements Free air transmission systems Infrared source for optical counters and card readers IR source for smoke detectors.

IR Rx:

DESCRIPTION The TSOP17 series are miniaturized receivers for infrared remote control systems. PIN diode and preamplifier are assembled on lead frame, the epoxy package is designed as IR filter. The demodulated output signal can directly be decoded by a microprocessor. TSOP17XX is the standard IR remote control receiver series, supporting all major transmission codes. FEATURES

Photo detector and preamplifier in one package Internal filter for PCM frequency Improved shielding against electrical field disturbance TTL and CMOS compatibility Output active low Low power consumption High immunity against ambient light Continuous data transmission possible (up to 2400 bps) Suitable burst length of 10 cycles/burst.

Block Diagram

APPLICATION CIRCUIT

The circuit of the TSOP17 is designed in that way that unexpected output pulses due to noise or disturbance signals are avoided. A band pass filter, an integrator stage and an automatic gain control are used to suppress such disturbances. The distinguishing mark between data signal and disturbance signal are carrier frequency, burst length and duty cycle. The data signal should fulfill the following condition: Carrier frequency should be close to center frequency of the band pass (e.g. 38 kHz). Burst length should be 10 cycles/burst or longer. After each burst which is between 10 cycles and 70 cycles a gap time of at least 14 cycles is necessary.

For each burst which is longer than 1.8ms a corresponding gap time is necessary at some time in the data stream. This gap time should have at least same length as the burst. Up to 1400 short bursts per second can be received continuously.

When a disturbance signal is applied to the TSOP17 it can still receive the data signal. However the sensitivity is reduced to that level that no unexpected pulses will occur. The arrangement of this sensor is as shown below.

TRANSISTOR AS AN AMPLIFIER:

Amplifier circuit in standard common-emitter configuration.

The common-emitter amplifier is designed so that a small change in voltage in (Vin) changes the small current through the base of the transistor and the transistor's current amplification combined with the properties of the circuit mean that small swings in Vin produce large changes in Vout. Various configurations of single transistor amplifier are possible, with some providing current gain, some voltage gain, and some both. From mobile phones to televisions, vast numbers of products include amplifiers for sound reproduction, radio transmission, and signal processing. The first discrete transistor audio amplifiers barely supplied a few hundred milli watts, but power and audio fidelity gradually increased as better transistors became available and amplifier architecture evolved. Modern transistor audio amplifiers of up to a few hundred watts are common and relatively inexpensive. SCHMITT TRIGGER: The positive-feedback configuration used in the implementation of a Schmitt trigger, most of the complexity of the comparator's own implementation is unused. Hence, it can be replaced with two cross-coupled transistors (i.e., the transistors that would otherwise implement the input stage of the comparator). An example of such a 2-transistor-based configuration is shown below. The chain RK1 R1 R2 sets the base voltage for transistor T2. This divider, however, is affected by transistor T1, providing higher voltages if T1 is open. Hence the threshold voltage for switching between the states depends on the present state of the trigger.

For NPN transistors as shown, when the input voltage is well below the shared emitter voltage, T1 does not conduct. The base voltage of transistor T2 is determined by the mentioned divider. Due to negative feedback, the voltage at the shared emitters must be almost as high as that set by the divider so that T2 is conducting, and the trigger output is in the low state. T1 will conduct when the input voltage (T1 base voltage) rises slightly above the voltage across resistor RE (emitter voltage). When T1 begins to conduct, T2

ceases to conduct, because the voltage divider now provides lower T2 base voltage while the emitter voltage does not drop because T1 is now drawing current across RE. With T2 now not conducting the trigger has transitioned to the high state. With the trigger now in the high state, if the input voltage lowers enough, the current through T1 reduces, lowering the shared emitter voltage and raising the base voltage for T2. As T2 begins to conduct, the voltage across RE rises, further reducing the T1 baseemitter potential and T1 ceases to conduct. In the high state, the output voltage is close to V+, but in the low state it is still well above V. This may not be low enough to be a "logical zero " for digital circuits. This may require additional amplifiers following the trigger circuit. The circuit can be simplified: R1 can be omitted, connecting the T2 base directly to the T1 collector, and the connection of the T2 base to V- via R2 can be completely omitted. When T1 conducts, it connects the T2 base to the T2 emitter so that T2 does not conduct. When T1 does not conduct, RK1 pulls up the T2 base and T2 conducts. RELAYS: A relay is an electrically operated switch. Current flowing through the coil of the relay creates a magnetic field which attracts a lever and changes the switch contacts. The coil current can be on or off so relays have two switch positions and most have double throw (changeover) switch contacts as shown in the diagram. Relays allow one circuit to switch a second circuit which can be completely separate from the first. For example a low voltage battery circuit can use a relay to switch a 230V AC mains circuit. There is no electrical connection inside the relay between the two circuits; the link is magnetic and mechanical. The coil of a relay passes a relatively large current, typically 30mA for a 12V relay, but it can be as much as 100mA for relays designed to operate from lower voltages. Most ICs (chips) cannot provide this current and a transistor is usually used to amplify the small IC current to the larger value required for the relay coil. The maximum output current for the popular 555 timer IC is 200mA so these devices can supply relay coils directly without amplification. Relays are usually SPDT or DPDT but they can have many more sets of switch contacts, for example relays with 4 sets of changeover contacts are readily available. Most relays are designed for PCB mounting but you can solder wires directly to the pins providing you take care to avoid melting the plastic case of the relay. The supplier's catalogue should show you the relay's connections. The coil will be obvious and it may be connected either way round. Relay coils produce brief high voltage 'spikes' when they are switched off and this can destroy transistors and ICs in the circuit. To prevent damage you must connect a protection diode across the relay coil.

The animated picture shows a working relay with its coil and switch contacts. You can see a lever on the left being attracted by magnetism when the coil is switched on. This lever moves the switch contacts. There is one set of contacts (SPDT) in the foreground and another behind them, making the relay DPDT

Symbol of relay

Relay

ADVANTAGES: Highly sensitive Accurate

APPLICATIONS Domestic application

CONCLUSION This project presents a Automatic Wash Basin Mirror Lamp Controller Experimental work has been carried out carefully. The result shows that higher efficiency is indeed achieved using their IR transmitter. The proposed method is verified to be highly beneficial for the purpose of house hold purpose. REFERENCE www.howstuffworks.com Electronics for you Electrikindia

S-ar putea să vă placă și