Description: This article discusses how to detect a person's entry into a room and transmit this signal to a microcontroller unit (MCU). It is not a complete project but rather an idea that can be implemented in various projects. The technique involves using an infrared (IR) transmitter and receiver pair. One side of the door will have an IR transmitter, while the other side will have an IR receiver. The transmitter (Tx) continuously emits an IR beam to the receiver (Rx). As long as the receiver detects this beam, it outputs a voltage in the range of 2.5V to 3.0V. However, when the beam is obstructed, for example, by someone entering the room, the receiver's output will increase to approximately 4.5V. The IR transmitter can be constructed on a small printed circuit board (PCB) with four mounting holes for wall installation near the door. It is recommended to use 1-watt resistors for R2 and R3, each with a resistance of 22 ohms. The optimal distance between the transmitter and receiver is between 2.0 feet and 3.5 feet, and both should be mounted at a height of 3.5 feet from the ground.
Many may wonder why photo transistors are used instead of modulated IR receivers like the TSOP1738. The TSOP series sensors were designed for data transmission, primarily from handheld remote controls to devices such as TVs or DVD players. Specific considerations were made during the design of TSOP sensors, including maximum range to ensure ease of operation in large rooms. Due to their long range, these sensors cannot assume that only directly incident rays are reaching them; rays reflected from walls can also reach the sensor. Consequently, multiple paths exist from the Tx to Rx. This characteristic, while advantageous for TV remotes, complicates door entry detection, as obstructing one path does not necessarily prevent the IR beam from reaching the receiver via an alternate path.
Two types of IR photo transistors are available: one with a transparent white casing, which is sensitive to both IR and visible light, and another with a black casing, which is only sensitive to IR radiation. This setup will not function effectively in sunlight due to the IR component present in natural light, nor will it work in rooms illuminated by incandescent bulbs (filament bulbs). Therefore, it is advisable to use this system in environments lit by fluorescent sources, such as compact fluorescent lamps (CFLs) or tube lights.
The circuit design should include the following components: an IR LED for the transmitter, a phototransistor for the receiver, and a microcontroller for processing the output signal. The IR LED should be connected to a current-limiting resistor to prevent it from drawing excessive current. The phototransistor should be connected in a voltage divider configuration to convert the light intensity into a voltage signal that can be read by the MCU. Additional filtering capacitors may be included to stabilize the voltage output from the phototransistor, ensuring reliable operation. Proper alignment of the transmitter and receiver is crucial to maintain the integrity of the IR beam, and the mounting height should be consistent to avoid misalignment due to variations in door heights. Overall, this simple yet effective circuit design provides a foundation for various applications in occupancy detection and automated control systems.This article discuss how you can detect the entry of a person in a room and get this signal inside your MCU. This is NOT a complete project but just an idea that can be implemented in many different projects. The technique is to use use an IR transmitter and a receiver pair. One side of door will have an IR Transmitter and the other side of door w ill have an IR Receiver. The transmitter (Tx in short) will continuously send IR beam to the receiver, as long as the receiver(Rx in short) will receive this beam it will give a voltage output in range of 2. 5v to 3. 0 volts. But as this beam is obstructed, for example by someone entering the room, the receivers output will tend towards 4.
5 The IR Transmitter can be made on a small PCB as shown below. It has four mounting holes to fix it in the wall near the door. Please use 1 Watt resistor for R2 and R3 (22ohms). As you can see the optimal distance between the transmitter and receiver is 2. 0ft. to 3. 5ft. While the Rx/Tx should be mounted at the height of 3. 5ft. from the ground. Many people would ask why I have used photo transistors and not modulated IR receivers like TSOP1738 etc. The reason is that the TSOP series sensors were designed for data transfer, mainly from hand held remote control to devices like TV`s or DVD players.
So following points were kept in mind while designing TSOP sensors. Maximum range (So that remote could be easily operated in big rooms), since these have long range you cannot assume that only the rays that are directly incident on the Rx are the only rays reaching it, rays bounced from walls also reach the sensor. So actually their are more than one path from the Tx to Rx. This makes door entry detection impossible because if the person entering the room cuts one path, the ray would reach from the alternate path!
As you can see this situation is actually good for a TV remote (for which TSOPs were designed) but not for our application. Their are two types of IR Photo transistor available. One is transparent white, this one is sensitive to both IR and Visible radiations. The second one is with Black case, this one is only sensitive to IR radiation. The setup will not work in presence of sunlight due to presence of IR component in it. Nor will it work if the room is lit with incandescent bulbs (filament bulbs), so it is recommended to use this in room that is lit with florescent source like CFLs or Tube lights.
The circuit consists of the following components: (1) An infrared emitter which utilizes a multi-harmonic oscillator based on a 555 timer circuit. The oscillation frequency is determined by the values of RP1, R1, and C1, resulting in a frequency of...
The IR Jammer is a fun project that provides a bit of safe, non-destructive fun. The Infrared Remote Control Jammer allows you to render all IR remote controls inoperative! The microcontroller in this design allows for all 6 of the...
The fundamental design of this project employs an Atmel AT89S8252-24PC Microcontroller, which features 2KB of EEPROM for runtime data storage. An ADC0838CCN analog-to-digital converter will be utilized to process up to eight inputs from sensor devices, including passive infrared sensors...
This 1 channel infrared transmitter/receiver remote control is the cheapest and simplest you can find. The transmitter transmits a sequence of pulses on 36 KHz frequency carrier. The diodes are Schottky type because of their low voltage drop (only 0.2V)....
This infrared transmitter utilizes pulse width modulation (PWM). The transmitter is equipped with an LM567 tone decoder circuit. An audio signal (at least 50 mV peak-to-peak) is amplified with transistor T1 and subsequently used to modulate IC1. The frequency of...
This relay circuit is controlled by nearly any type of infrared remote controller. It operates under the assumption that most remote controllers utilize high-frequency modulated infrared light. By filtering out unmodulated or low-frequency modulated signals, this circuit effectively eliminates interference...
The Open Source Automation project is a free automation software that operates on Windows and does not require programming for setup. It features a user-friendly graphical interface and includes unique functionalities that are not typically found in high-end security and...
Loop stability analysis typically begins with an open-loop Bode plot of the system being examined, such as the power stage of a buck or flyback converter. This plot allows the designer to extract phase and gain information within the desired...
The TC9012 is a specialized off-screen remote control code transmitter. It incorporates an oscillator, divider timing generator, system code latch, data storage, key scan input, key scan output, and carrier control and output units. The internal 8-bit system code setting...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more