Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Proximity switch based on PIR module. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Clocks, timers, relays, load switches

Comments on the article Comments on the article

LED light sources - lamps, tapes - are widely used today for interior lighting. And although their power is calculated in units of watts, the total power of all lighting fixtures installed even within the same room can be significant. Of course, leaving the lights on in a room where there are no people is irrational. This habit will lead to additional costs when paying electricity bills.

Recently, proximity switches have appeared based on the so-called PIR sensors that respond to the presence of people. These switches are completed, for example, with street spotlights, which are placed in front of the front door of a country house. The sensors react to the infrared radiation of a person or a group of people that appear in their "field of view", and turn on the lighting. PIR modules can be purchased at radio amateur shops or online stores both separately and as part of various electronic kits. In fact, the PIR module is a functionally complete design. To control the lighting, depending on whether there are people in the room or not, it is enough to supplement it with only a few external components.

The appearance of one of the PIR modules - HC-SR501 - is shown in fig. 1. On one side of the board are electronic components, including a microcontroller, on the other - under a plastic Fresnel lens - the PIR detector itself. The built-in integrated stabilizer allows you to power the module with a constant voltage of 5 to 15 V. The operation mode is set by a switch installed in the upper right corner of the module, two trimmers allow you to adjust its sensitivity (from 1 to 6 ... 8 m) and the shutdown delay time in the absence of PIR sensor signal (from 1 to 5 min). At the bottom (in Fig. 1) there are three pin contacts for connecting power and the controlled device. The designations of these pins can only be seen on the opposite side of the board by removing the Fresnel lens. The control signal at the output of the module takes two values: 0 V if the PIR sensor does not detect movement, and 3,3 V when people appear in front of the PIR sensor.

Proximity switch based on PIR module
Rice. 1. Appearance of the PIR module - HC-SR501

A small output current (less than 5 mA) and a low voltage (only 3,3 V) at the output of the module do not allow connecting an executive relay directly to it. However, if you use a switching power supply from a personal computer to power LED lighting devices, you will need one single element - an optocoupler - to create an automatic lighting control system! True, such a system, when motion is detected, will turn on the lighting, regardless of whether it is day or night outside the window.

The reason is that the module does not have a light sensor - a photoresistor, although printed areas for its connection are provided (they are located slightly above and to the left of the already mentioned pins for supplying power and removing the output signal). The problem can be easily solved by soldering two pins of suitable sizes to these pads (they are accompanied in Fig. 1 by the inscription "Pins for connecting to a photoresistor").

A diagram of an automatic non-contact lighting switch based on a modified PIR module is shown in fig. 2. Here U1 is an ATX form factor computer power supply, B1 is a PIR module, EL1-EL3 and EL4 are LED lamps powered by U1, R1 is a photoresistor, R2 and R3 are current-limiting resistors of lamps. A high logic level that occurs at the output of the module when the movement of an infrared radiation source is detected is fed to the emitting diode of the optocoupler U2. As a result, the optocoupler transistor opens, closing the PS-ON input of the power supply U1 to a common wire, and it turns on, lighting the lamps connected to it.

Proximity switch based on PIR module
Rice. 2. Scheme of an automatic non-contact light switch based on a modified PIR module

Installation of the device can be hinged, especially since the photoresistor must be moved outside the room where the PIR module is installed, otherwise it will go into trigger mode, turning the lighting on and off in turn. You can make the design more compact and reliable by placing all components (except for the photoresistor) on the adapter board. A drawing of a possible variant of such a board is shown in Fig. 3.

Proximity switch based on PIR module
Rice. 3. Board drawing

To connect a PIR module and a communication cable with a photoresistor, the board has sockets cut out from a 40-pin socket with a 2,5 mm pitch. They securely fix the module on the board, and additional fastening is not required. A 20-socket socket from an old computer motherboard was used to connect to the power supply. Instead of the EL817 optocoupler, you can use any transistor optocoupler with similar technical characteristics (for example, the PC817 series). However, it should be borne in mind that the case, the number and purpose of the pins may be different for them than for the EL817, so the board drawing may need to be corrected. A Chinese-made GL5516 photoresistor was used as a photo sensor (dark resistance - 0,5 MΩ, resistance at illumination of 10 lux - 5 ... 10 kΩ).

If the PIR module is to be used as a switch, the jumper on its board must be set to the upper position (according to Fig. 1). Then the module controller will withstand the time interval set by the trimmer. When the jumper is set to the lower position, the module will turn off as soon as the signal from the PIR detector disappears. This mode is used in photo and video surveillance systems.

Author: I. Tsaplin

See other articles Section Clocks, timers, relays, load switches.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

The threat of space debris to the Earth's magnetic field 01.05.2024

More and more often we hear about an increase in the amount of space debris surrounding our planet. However, it is not only active satellites and spacecraft that contribute to this problem, but also debris from old missions. The growing number of satellites launched by companies like SpaceX creates not only opportunities for the development of the Internet, but also serious threats to space security. Experts are now turning their attention to the potential implications for the Earth's magnetic field. Dr. Jonathan McDowell of the Harvard-Smithsonian Center for Astrophysics emphasizes that companies are rapidly deploying satellite constellations, and the number of satellites could grow to 100 in the next decade. The rapid development of these cosmic armadas of satellites can lead to contamination of the Earth's plasma environment with dangerous debris and a threat to the stability of the magnetosphere. Metal debris from used rockets can disrupt the ionosphere and magnetosphere. Both of these systems play a key role in protecting the atmosphere and maintaining ... >>

Solidification of bulk substances 30.04.2024

There are quite a few mysteries in the world of science, and one of them is the strange behavior of bulk materials. They may behave like a solid but suddenly turn into a flowing liquid. This phenomenon has attracted the attention of many researchers, and we may finally be getting closer to solving this mystery. Imagine sand in an hourglass. It usually flows freely, but in some cases its particles begin to get stuck, turning from a liquid to a solid. This transition has important implications for many areas, from drug production to construction. Researchers from the USA have attempted to describe this phenomenon and come closer to understanding it. In the study, the scientists conducted simulations in the laboratory using data from bags of polystyrene beads. They found that the vibrations within these sets had specific frequencies, meaning that only certain types of vibrations could travel through the material. Received ... >>

Random news from the Archive

New unit of measure - kettabyte 27.11.2022

The world has come close to the largest existing unit of measure for the amount of data. Therefore, new prefixes have recently been added to the International System of Units of Measurement. They say that they will last for several more decades.

For the first time in over 30 years, new terms have been officially added to the International System of Units (SI). Four new prefixes - ronna, quetta, ronto and quecto - now signify the largest and smallest numbers.

The SI system uses prefixes to conveniently indicate the number of zeros in a measured unit. For example, a value of 649 million bytes with this prefix becomes a convenient 649 megabytes.

Today, the amount of data created and consumed around the world is measured in zettabytes (add 21 zeros). After that there is another big one yottabyte, or 24 zeros after the digit. By the 2030s, the world is expected to generate one yottabyte of data per year. This amount of data, recorded on DVD, will last all the way to Mars.

At the General Conference on Weights and Measures (CGPM), global representatives voted to introduce four new SI prefixes. The number 10 with 27 zeros is now officially known as ronna, and 10 with 30 zeros is now known as quetta. The smallest prefixes are respectively designated ronto (27 decimal places) and quecto (30 decimal places). This follows naming conventions that use prefixes ending in "a" for large numbers and "o" for small numbers.

According to Dr Richard Brown, Head of Metrology at the UK's National Physical Laboratory (NPL) and lead researcher on the proposal, these names were chosen because the letters R and Q were the last two letters of the alphabet not yet used for other prefixes.

Although ronnabytes and colorbytes of data are likely to be the first uses, as are any SI prefixes, these new prefixes can be used for any unit of measure. For example, 1 kectogram is equal to the mass of one bit of data stored on a mobile phone.

It is interesting that IT companies that love to invent a "bicycle" are trying to come up with their own in the case of value prefixes. Google already convinces users that 1 yottabytes equals 000 hellabyte. However, the first letter of the hellabyte is already taken by the hekto prefix (two zeros after the number).

Other interesting news:

▪ Ambient light display

▪ Real-definition television developed in Japan

▪ CMYK TVs

▪ Huawei NetEngine 9000 Petabit Backbone Router

▪ Diabetes is determined by tears

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Art video. Article selection

▪ article Land of unlimited possibilities. Popular expression

▪ article How is tobacco grown? Detailed answer

▪ article Roofer on steel roofs. Job description

▪ article Amplifier on the chip TDA1521, 2x12 watts. Encyclopedia of radio electronics and electrical engineering

▪ article Two-level neon signaling device. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024