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 on of car headlights and parking lights. 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

The design of devices for automatically switching on the external lighting of a car when driving continues to be of interest to our readers and authors. This article continues this topic. The author made his device on a PIC16F628-04I/P microcontroller with a small number of attachments.

As you know, since November 2010, an addition to the Road Traffic Rules has been in force, obliging drivers to drive with low beam headlights on when driving at any time of the day. The magazine provided a description of a device that allows you to automatically turn on and off the fog lights of a Zhiguli car (Dolgodrov A. “Automatic switch/switch of fog lights.” - Radio, 2011, No. 5, pp. 43, 44). The device turns on the headlights when the car's generator is running, when the voltage in the on-board network is above a specified threshold, and turns off if the voltage drops below this threshold. In my opinion, this is not the most successful operating algorithm, since in this case the car’s headlights will shine when parked with the engine running and, on the contrary, may turn off while driving. This situation is quite possible at minimum engine speeds, especially if powerful consumers of electricity are turned on, and even in winter.

Foreign-made cars and some modern domestic ones can be equipped with a device that works on a different principle. The automatic machine we bring to the attention of readers turns on the side lights and headlights of the car when it starts moving and turns them off a minute after stopping. It can be installed in cars that have an electronic speedometer that receives information from a speed sensor.

Automatic switching on of car headlights and parking lights
Rice. 1 (click to enlarge)

The schematic diagram of the machine is shown in Fig. 1 and is surrounded by a frame of dash-dotted lines.

Outside the frame in Fig. 1 shows: SA1 - car ignition switch; SA2 - switch for its external lighting; K1 - relay for turning on side lights; K2 - relay for turning on the low beam headlights. When the power is turned on, the microcontroller (MK) program DD1 PIC16F628-04I/P configures the RA0 port line (pin 17) as the input of the comparator built into the MK, and the RB1 port line (pin 7) as the output. With the start of movement, pulses from the path sensor through the circuit C1, R1, VD1, VD3 charge the storage capacitor C2. The voltage from this capacitor is supplied to the input of the comparator built into the MK. After the voltage on capacitor C2 reaches 1,25 V - the threshold of the comparator (set by software), a high level voltage will appear at the output of RB1. In this case, transistor VT1 will open and trigger relays K1 and K2. When the car stops, the pulses from the distance sensor will stop and capacitor C2 will begin to discharge through resistor R4.

After the voltage on capacitor C2 is below the operating threshold of the built-in comparator, the MK will begin counting the delay time for turning off the lighting. It is necessary so that the headlights do not turn off when the car stops briefly at intersections and in front of pedestrian crossings. After the delay expires, the MK will set the RB1 output low. Transistor VT1 will close and de-energize the relay windings K1 and K2. The lighting will be turned off. If capacitor C2 is charged again before the delay expires (i.e., the car resumes movement), the lighting will not be turned off. The duration of the lighting switch-off delay can be adjusted by changing the corresponding constant in the source code of the program and retranslating it. The necessary program lines are marked with appropriate comments.

Circuit R2, VD2, VD4 limits the voltage on capacitor C2 to a level safe for the microcontroller. As soon as the voltage on this capacitor exceeds the stabilization voltage of the zener diode VD2, a current will flow through the diode VD4, which will prevent further charging of capacitor C2. Zener diode VD7 protects transistor VT1 from breakdown by self-induction voltage pulses of relay windings K1, K2.

Based on the voltage level at input RB6 (pin 12), the microcontroller checks whether the lighting is turned on, which can also be turned on manually with switch SA2. If the lighting is already turned on when the movement begins, then no actions will be performed on the part of the MK. If the level on RB6 is high, when the movement begins, the MK will set a high level at output RB1 - the lighting will be turned on automatically.

To avoid false alarms of the second MK comparator from interference from the on-board network, current leakage along the surface of the printed circuit board (due to moisture, dust, etc.), the RA1 port line is connected to a common wire. Lines RB4, RB5, RB7 are also connected to common to avoid false interrupt calls when the signal level at these inputs changes.

Automatic switching on of car headlights and parking lights
Fig. 2

The required +5 V supply voltage is supplied from the DA1 L78L05CZ integrated stabilizer, the input of which is connected to the vehicle’s on-board network. The machine is assembled on a printed circuit board, the drawing of which is shown in Fig. 2. All resistors are MLT-0,25 type, capacitor C1 is K73-17, the rest are imported oxide ones with an operating temperature range of at least -40...+85°C. Instead of the 1N4754A zener diode, you can use any other one with a stabilization voltage of about 36 V. Since the device must operate over a wide temperature range, an industrial microcontroller is used. Instead of the PIC16F628-04I/P microcontroller, you can use the PIC16F628-20I/P.

The designs of modern cars are very diverse, and it is impossible to give specific recommendations for installing this device in the scope of one article. The general principles are as follows. After assembly, the board is placed in a small plastic box and installed under the dashboard of the car. It is most convenient to supply the supply voltage to the board from the dashboard, for example, from the “positive” power output of the speedometer or tachometer. Also, a signal from the speed sensor must be sent from the corresponding output of the speedometer to the input of the device. Then you need to find the connector for the side lights and low beam headlights switch. By turning the side lights on and off, use a voltmeter to find the connector contact, at which the on-board voltage is present when the lights are off, and zero when the lights are on. The wire from the anode of the VD5 diode is connected to the found contact of the connector. In the same way, turning the headlights on and off, find another contact of the connector, to which the wire from the anode of the VD6 diode is connected.

With serviceable parts, error-free installation and correct connection to the vehicle’s on-board network, the automatic control should start working immediately and does not require adjustment.

The microcontroller program can be downloaded from ftp://ftp.radio.ru/pub/2013/03/avtomat.zip.

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

NASA will build a supersonic aircraft 03.07.2017

NASA has completed the next stage of the QueSST project to create an ultra-fast passenger aircraft. In the near future, agency engineers will begin direct development of the supersonic Low Boom Flight Demonstration (LBFD), known as the X-plane.

In February last year, NASA signed a cooperation contract with the aviation company Lockheed Martin. Engineers from the space agency and aviation corporation specialists have jointly developed the QueSST project, which will result in a supersonic passenger aircraft.

In May of this year, a scale model of the project successfully completed testing in a 2,5m x 2m supersonic wind tunnel located at NASA's Glenn Research Center in Cleveland, USA. And last week, senior engineers from the space agency and Lockheed Martin Corporation concluded that the QueSST design is suitable for the tasks of the X-plane mission.

"Our close collaboration with Lockheed Martin helped us achieve our goal, and we are now one step closer to building the X-plane," said David Richvine, NASA Commercial Supersonic Technology Specialist.

Now the team of researchers will build a manned single-engine supersonic aircraft. It is expected that preliminary flight tests of the X-plane will begin as early as 2021.

In addition, over the next few months, NASA and Lockheed Martin staff will be conducting final checks of QueSST at NASA's Langley Research Center in Virginia.

Other interesting news:

▪ alcohol sensor

▪ Robot dog Sony aibo new generation

▪ eGPU Breakaway Puck Radeon RX 5500 XT and eGPU Breakaway Puck Radeon RX 5700 Docks

▪ Gadget for kissing at a distance

▪ Artificial photosynthesis system

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Personal transport: land, water, air. Article selection

▪ article by Keene Hubbard. Famous aphorisms

▪ article Is it true that in 1576 there was a meeting between the Queen of Pirates and the Queen of England? Detailed answer

▪ article Work on the installation of prefabricated and monolithic foundations. Standard instruction on labor protection

▪ article Economical heat stabilizer. Encyclopedia of radio electronics and electrical engineering

▪ article Transistors IRFP344 - IRFP460 LC. 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