SAFETY AND DRIVING DYNAMICS WITH LEVEL SENSORS
Microelectromechanical system (MEMS) accelerometers and gyroscopes are used for adaptive headlights and other automotive applications, such as tilt measurement and headlight leveling. It has been found that high-density discharge (HID) headlights improve the safety of night driving by projecting light further down the road and increasing the time available for reaction to problems. HID systems project up to 3,500 lumens, while older halogen systems produce a maximum of 2,100 lumens. The MEMS-based systems are used for measuring tilt and pitch of HID lamps and improve their performance and safety. One of the design consideration of these MEMS-based systems requires that the readout device needs to offer extremely low noise performance and minimum offset drift.
Am a complete novice here, so any advice greatfully recieved. What I want to do is fit headlight auto leveling to a vehicle, sounds simple, well it's a 4x4 so random bits of potentiometers and mechanical links dangling below don't appeal. Thinking outside my comfort zone and doing some research I came across the Arduino and VW headlight level sensor. So the question is would it be practicle and / or possible to use an Arduino to read the output of a pair of these ultrasonic sensors to determin the vehicle pitch angle relative to the road surface and automatically adjust the headlight level acordingly? Obviously the Arduino would have to be satndalone once programmed. The reason for this project is that HID headlights legally require to be automatically self leveled. It does not require to adjust with any great speed, and as a minimum it must adjust at the start of a trip to take acount of the vehicle load, although dynamic leveling would be nice.
A system for automatic headlight leveling control in BMW headlight level sensor which are offset in the longitudinal direction for measuring the vehicle body pitch angle in the form of a level difference. An electronic control unit determines a desired value for the headlight adjustment as a function of the first derivative of the directly measured or further processed level difference. In one embodiment of the invention, electronic control unit determines a static level difference and a dynamic level difference, and the desired value is determined as a function of the first derivative or the second derivative of the dynamic level difference.