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

Automatic switching of front and rear view cameras. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Automobile. Electronic devices

Comments on the article Comments on the article

To improve traffic safety, most modern cars are equipped with rear-view cameras. But today on sale you can also find sets of front-facing cameras, the task of which is to help the driver safely park the car in conditions of limited free space in front. Since the rear view camera starts working when the reverse gear is engaged and must be given priority, certain rules must be followed in order for two cameras to work correctly on one monitor.

Usually, camera switches are controlled manually, which is not always convenient. Commercially available video camera automatic switching modules work according to a very simple algorithm. The front camera turns on for 10 seconds after the ignition is turned on and after the reverse gear is turned off.

Let's consider two options for manual video camera switches for connecting them to a standard head unit or an additionally installed monitor. In the first variant (Fig. 1), the coil of relay K1 receives voltage from the reversing lamp (reverse gear engagement signal). Having worked, the relay connects a rear-view camera to the head unit with one group of its contacts. The second group of relay contacts supplies +12 V voltage to the "Reverse" input of the head unit, which switches the monitor of this device to display the video signal applied to the "Video" input. When the reverse gear is off, the video input receives a signal from the front video camera, but it is displayed on the monitor only when the contacts of the SA1 switch are closed.

Automatic switching of front and rear view cameras
Rice. 1. The first version of the scheme of manual switches for video cameras

The difference between the device, the scheme of which is shown in Fig. 2, from the one considered only in that the relay K1 has one group of contacts, and the reverse signal forms a logical OR node on the diodes VD1 and VD2.

Automatic switching of front and rear view cameras
Rice. 2. The second version of the scheme of manual switches for video cameras

I have developed a front and rear view camera switcher with more features. It works according to the following algorithm:

1. Turns on the front camera for 5 seconds after power on (engine start) and movement starts.

2. Turns on the front camera when the brake pedal is pressed and the vehicle speed is below the set threshold. If after that the car stopped or its speed became higher than the threshold, or the brake pedal was released, then after about 2 seconds the front camera will be turned off.

3. Always turns on the rear view camera when reverse gear is engaged.

The machine is built on the PIC12F675-I / P microcontroller according to the scheme shown in fig. 3. The microcontroller includes a comparator module and an internal 4 MHz RC clock. In addition to the DD1 microcontroller and the DA1 supply voltage regulator, protected from input voltage surges by the VD1 diode, the machine has control signal limiters on transistors VT1-VT3 and a Reverse signal control unit on transistors VT4, VT5 and diode VD2. The video signals from the cameras are switched by relay K1, controlled by the voltage coming from the reversing lamp.

Automatic switching of front and rear view cameras
Rice. 3. Scheme of the automaton built on the PIC12F675-I / P microcontroller (click to enlarge)

When the ignition key is turned to the "On" position, the voltage of the on-board network through the switch for automatic control of the front camera, which is not shown in the diagram, is supplied to pin 1 of the XS1 connector. In turn, the +5 V voltage from the integral stabilizer DA1 is supplied to the microcontroller DD1. Signals with levels of +12 V from the brake pedal sensor, reversing lamps and pulses from the path sensor through the shapers-limiters on transistors VT1 - VT3 are fed to the inputs of the microcontroller.

From the collector of the transistor VT5, the control signal is fed to the "Reverse" input of the head unit and switches its monitor to play the signal from the "Video" input. Through the VD2 diode, the +12 V voltage from the reversing lights is fed to the "Reverse" input when the reverse gear is engaged. It also does not pass the voltage of the "Reverse" signal to the lamps of the lanterns when the front camera is working.

Setting up the machine consists in setting the threshold speed of the car and choosing the operating mode - manual or automatic. The threshold speed is set by pressing the SB1 button while driving at this speed. The button should be held pressed for 1...2 s until the front camera turns on briefly, after which it can be released. The threshold speed value will be written to the EEPROM of the microcontroller. At zero speed, writing to the EEPROM is blocked. Of course, you can record the threshold speed repeatedly in order to choose an acceptable option.

Until the described operation is performed, the EEPROM stores a value equivalent to six pulses of the encoder in 0,72 s. This corresponds to a speed of 12 km/h for path sensors giving 2500 pulses/km (they are installed on Japanese and Korean cars), approximately 7 km/h for sensors with 4000 pulses/km, 5 km/h for sensors with 6000 imp./km and about 4 km/h - for sensors with 8000 imp./km.

It is desirable to use voltage divider resistors R1 and R5 with a tolerance of ±1% from the nominal, otherwise selection of resistor R1 may be required. Based on the voltage at the output of this divider, the program determines that the car engine is running and prohibits changing the operating mode of the device.

To select the operating mode, it is necessary to press the brake pedal in a stopped car with the engine turned off, turn on the ignition and turn on the power of the machine. The brake pedal should be kept depressed for about 10 seconds until the front camera is turned on briefly (for 2 seconds). With each repetition of this operation, the modes change in a ring. Initially, automatic mode is enabled.

The manual operation algorithm is simple. After the power is turned on, the front camera is turned on and is turned off only by turning on the reverse gear or turning off the power of the machine. The rear view camera works when reverse gear is engaged. In order to avoid false alarms, both cameras and the machine must be powered through the car's ignition switch.

All parts of the machine are mounted on a 68x45 mm printed circuit board made of foil fiberglass 1,5 mm thick. The printed circuit board drawing is shown in fig. 4. It is placed in a plastic case of suitable dimensions, where it is fixed with hot glue.

Automatic switching of front and rear view cameras
Rice. 4. PCB drawing of the machine

The FU1 fusible insert is used with flexible leads soldered into the board. Relay K1 - 102-1CH-S-U01-12VDC with a winding resistance of 225 ohms. For greater reliability, it is better to install the DD1 microcontroller on the machine board directly, without a panel. Of course, the camera_ 675.HEX file must first be loaded into its memory using the programmer. The camera_629.HEX file is for the PIC12F629-I/P microcontroller, which can be used instead of the PIC12F675-I/P.

Protective diode 1 N6277 can be replaced with a zener diode 1N4746A, diode 1N4148 - KD522B. Instead of transistors 2N3904, you can install BC547, and instead of 2N3906 - BC557 or any KT209 series. Be aware of the differences in the pinout of these transistors.

All slots in the body of the machine must be sealed with adhesive tape to protect against moisture and dust. In the author's version, it was additionally wrapped in foam rubber to avoid the appearance of extraneous sounds when the car was driving on uneven terrain. You can fix the machine in a suitable place under the dashboard of the car.

Microcontroller programs and PCB file in Sprint Layout 6.0 format can be downloaded from ftp://ftp.radio.ru/pub/2016/03/camera.zip.

Author: V. Surov

See other articles Section Automobile. Electronic devices.

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

Ion-sound waves for finding space debris 20.02.2021

An international team of scientists has proposed a new way to detect space debris using ion-sound waves resulting from the movement of debris objects in low Earth orbit.

Space debris is non-functional objects launched by man into space, and their fragments, as well as meteoroids and other non-man-made inactive objects in near-Earth outer space. These objects move in the plasma that surrounds Earth orbit. Since the speed of space debris can reach 10 km/s, even fragments of a few microns in size can cause serious damage to aircraft, especially manned ones. By comparison, the human eye is unable to see particles smaller than 40 microns.

Space debris monitoring has been going on for a long time, and observation of the waves that arise in plasma as a result of the movement of debris charged under the influence of solar radiation and other types of cosmic radiation can become one of the methods for indirect detection of hazardous debris fragments.

Since plasma is made up of charged particles, the movement of debris has an effect on it similar to the process of wave formation on water. As a result, ion-acoustic waves are formed - specific waves associated with the oscillation of ions that arise in the plasma. They are compression waves in plasma, which is why they are called acoustic, since sound is also compression waves, but already in air. At a sufficiently high amplitude, they become nonlinear and transform into solitons - structurally stable sound waves that propagate only in a nonlinear medium. A distinctive feature of solitons is that when interacting with each other or with some other perturbations, they do not collapse, but continue to move, keeping their structure unchanged.

For the first time, scientists have calculated the exact parameters of an accelerated soliton that occurs when space debris moves through a plasma using a mathematical model in which the term in the equation responsible for space debris is called the source. It is a charge that creates an electric field. As the debris moves, the source in the equation changes in time and space. This leads to the appearance of accelerated solitons, rather than ordinary solitons, which move at a constant speed.

Knowing exactly how the properties of solitons characteristic of space debris are determined by the position and speed of fragments in the plasma medium, it becomes possible to detect dangerous fragments in near-Earth orbit by the specific solitons they create. Thus, the work of scientists can form the theoretical basis of a fundamentally new method for monitoring the movement of space debris.

Other interesting news:

▪ Robotic London Underground trains

▪ Mechnikov was wrong

▪ Portable Vaccine Patch Printer

▪ Graphene becomes a superconductor

▪ Video surveillance in Moscow schools

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ website section LEDs. Article selection

▪ article Not the poet who knows how to weave rhymes. Popular expression

▪ article How did Zeus punish people for Prometheus stealing fire? Detailed answer

▪ article Working with a gas burner kit. Standard instruction on labor protection

▪ article The principle of operation of the RCD. Encyclopedia of radio electronics and electrical engineering

▪ article Chairs. Focus Secret

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