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

Car alarm with IR control. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Automobile. Security devices and alarms

Comments on the article Comments on the article

Recently, the interest of motorists in electronic systems for opening and closing doors (central locking) has begun to increase. This is due to the increased theft of radio tape recorders and other valuables from car interiors. As a rule, setting only a simple alarm does not give the desired effect, since the thief has time to remove the radio and leave the car in a few minutes. Therefore, car owners began to install alarms with central locking drives.

This article is about a homemade central locking system based on the Atmel AT90S2313 microcontroller. For a remote command transmission system, infrared (IR) radiation is used. This choice is based on the fact that most radio amateurs do not have the equipment for setting up high-frequency transceivers, as well as the experience of assembling them. The use of IR beams is facilitated by the fact that ready-made IR receivers for household equipment are commercially available, containing the entire necessary set of amplifiers and detectors and having an output with logic levels suitable for direct connection to a microcontroller.

Consider now the scheme and logic of the device.

For transmission, a device based on the AT90S2313 microcontroller is used. In this scheme, there are two buttons, depending on the state of which one or another command is transmitted. The transmitter firmware is a software encoder of information in the RC-5 standard. This standard is widely used in consumer equipment, so the description of the encoding is not given here (see, for example, the article "Using the RC-5 code" in this issue of the magazine - ed.). In order to prevent the transmitted information from being intercepted by a scanner (which can be a microcomputer with an IrDA port), it was decided to use a dynamic authentication system. In this case, a counter of button presses is used with an index selection of values ​​from three tables of 256 bytes. This method was chosen due to the fact that in each case it is easier to modify the tables (which should be the same in the receiver and transmitter) than to rewrite the mathematical function. Another argument was that the function can be selected by several values ​​of the counter and result, and 768 bytes of the table are much more difficult to select. To create a table, you can use a program to generate random numbers.

Thus, the information package of the transmitter consists of the following parts (see Table 1).

Table 1

1 2 3 4
Identification byte Command Byte (00, 01, 02) Counter value (4 bytes) Function value

The diagram shows two versions of the transmitter unit. The first option (Fig. 1) has a constant power supply of 3 V, the microcontroller in this case operates in Sleep mode and exits it only by an interrupt caused by pressing a button. The power consumption of the transmitter in standby mode in this case is about 40 μA.

Car alarm with IR control. Device diagram option 1

Device diagram option 1

The second option (Fig. 2) does not consume energy when the buttons are not pressed, but contains two diodes and more resistors.

Car alarm with IR control. Device diagram option 2

Device diagram option 2

When assembling the transmitter, it is advisable to use SMD components, and the microcontroller in a SOIC package. The LED is applicable to any infrared range. Time delays in the program are given for a 4,19 MHz quartz resonator. When using SMD components, the transmitter is placed in a key fob from a standard car alarm.

The heart of the stationary unit (Fig. 3) is also the AT90S2313 microcontroller. The microcontroller program is an RC-5 decoder, an authentication system, and also contains control blocks for lock drives.

Car alarm with IR control. microcontroller

Microcontroller AT90S2313

To receive the control signal, a ready-made RC-btype receiver HS0038 or similar is used. However, it must be taken into account that the receivers are designed for different carrier frequencies (from 32 to 40 kHz) and it may be necessary to correct the time delays in the receiver and transmitter programs. It is also necessary to ensure that the receiver is installed in a location protected from direct sunlight.

One annoying feature of the AT90S2313 is the possible destruction of information in the EEPROM during power failures. To bypass this feature, you must use an external reset circuit (for example, MAX709, MAX809, MAX811 or similar), and when powered from the on-board network, use a good-quality stabilized 5 V power supply, since the on-board network is a source of a large amount of interference and high-voltage surges, which if you use a low-quality stabilizer, it can lead to unstable operation and even damage to the device.

Consider further the operation of the device. The system is designed to work with two-wire lock drives where the polarity reversal is controlled by an internal motor. Upon the arrival of the "open door" command, the microcontroller outputs a logical "1" to the PB0 output, while the RL4 relay is activated and a potential of +2 V appears at the Lock(12) output relative to the Lock(1) output. Upon the arrival of the "close the door" command, the relay RL3 is activated and the potentials at the outputs are reversed.

When connecting the relay, it must be taken into account that the normally closed contact must be connected to ground, and the normally open contact must be connected to +12 V.

The process of opening and closing the doors is accompanied by the inclusion of headlights, for which relay RL1 serves.

The remaining outputs (siren, LED) are reserved and are not supported in this version of the program.

In this design, it is necessary to use a relay with a response voltage of 3 - 5 V, while the transistors are selected to provide the required current through the relay. However, it must be taken into account that the current consumed by the lock drives reaches 10 A per pulse, which requires the use of a relay of the appropriate type. The frequency of the quartz resonator for the above program is 8 MHz. Diodes can be used any.

In conclusion, we can say that the described system can easily be expanded to a full-fledged car alarm by adding software blocks for arming and disarming, as well as shock detection and door opening, especially since there is already a siren output, as well as an LED for indicating operating modes.

All that remains is to add an input circuit for sensors and connect it, for example, to the PD3Int1 input. In this case, an interrupt will be called if the corresponding sensor is triggered.

The software required for the operation of the device is available at: platan.ru/shem.

Author: Vladimir Zimin, phantom@tversu.ru; Publication: radioradar.net

See other articles Section Automobile. Security devices and alarms.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

CC3200+CC2650 Wireless Gateway Connects BLE Sensors to the Internet 26.09.2015

Texas Instruments is offering a reference design for a miniaturized Internet>Bluetooth Low Energy Gateway that is based on two new CC3200 (WiFi) and CC2650 (BLE) chips.

Considering that the CC2650 chip also supports other standards in the 2.4 GHz band and that it is almost completely compatible with the CC1350 (Sub1GHz + BLE 2.4 GHz), the board developed by TI can be the basis for a universal bridge (gateway, hub) between the Internet and almost all other wireless devices of different standards.

The gateway can even support proprietary protocols in the 433/868 MHz bands, whose packets can be received / transmitted using the CC1350 multi-band radio.

Development Features:

Connecting BLE devices to the Internet of things;
USB powered;
Configuration via UART terminal (USB);
HTTP server and configuration pages;
Single board WiFi-BLuetooth solution;
Support for the MQTT protocol for IoT;
Firmware update over the air.

Other interesting news:

▪ Personal Pharmaceuticals

▪ Insects became small, escaping from birds

▪ Molecule from photons

▪ Headphones that completely absorb background noise

▪ Global satellite map of the rainforest

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Color and music installations. Selection of articles

▪ article Building model rockets. Tips for a modeler

▪ article When was the use of computers to create special effects in movies considered a scam? Detailed answer

▪ article The functional composition of Sharp TVs. Directory

▪ article Electronic password. Encyclopedia of radio electronics and electrical engineering

▪ article Voltage stabilizers with a regulating transistor in the negative wire. 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