Chapter 45 Adaptive Cars Headlamps System with Image Processing and Lighting Angle Control

Similar documents
Vehicle Control Using Raspberrypi and Image Processing

[Kadam*et al., 5(8):August, 2016] ISSN: IC Value: 3.00 Impact Factor: 4.116

An Autonomous Braking System of Cars Using Artificial Neural Network

Journal of Emerging Trends in Computing and Information Sciences

Active magnetic inertia latch for hard disk drives

Automated Seat Belt Switch Defect Detector

ADVANCED HEAD-LIGHT CONTROLLING SYSTEM FOR VEHICLES

Regulatory Impacts of Advanced Lighting Systems. Stephan Berlitz, AUDI AG

Implementation of telecontrol of solar home system based on Arduino via smartphone

World Journal of Engineering Research and Technology WJERT

Detection of rash driving on highways

Implementation of Drive by Wire Technology Replacing the Conventional Vehicle Control System

Chapter 2 Analysis on Lock Problem in Frontal Collision for Mini Vehicle

SMART ROBOT USING RASPBERRY PI AND NODEMCU

New System of Controlling Electric Car Using Concept of Accelerometer

NAU Robosub. Project Proposal

EcoCar3-ADAS. Project Plan. Summary. Why is This Project Important?

The Effective IVIS Menu and Control Type of an Instrumental Gauge Cluster and Steering Wheel Remote Control with a Menu Traversal

Shuttling of Metro Train between Stations

ICMIEE Difficulties to Develop a Four Legged Robot

SHEDDING LIGHT ON THE AUTOMOTIVE LIGHTING MARKET:

A Portable Photovoltaic Powerplant for Emergency Electrical Power Supply in Disaster Affected Areas

Speed Control of Electric Motor using Ultrasonic Sensor and Image Processing Technique with Raspberry Pi 3

1. Introduction Objective Background High-level Requirement Design Block Diagram Physical Design 4

(12) Patent Application Publication (10) Pub. No.: US 2015/ A1

Automatic Braking and Control for New Generation Vehicles

WHAT IS THE PROFIT OF DRIVING FAST? -THE COMPARISON OF THE SPEEDY DRIVING AND SAFE DRIVING IN TERMS OF TRAVELING TIME-

BASIC MECHATRONICS ENGINEERING

Figure1: Kone EcoDisc electric elevator drive [2]

Energy Harvesting Platform

SELF DRIVING VEHICLE WITH CONTROL SYSTEM USING STEREOVISION TECHNIQUE

Fixing and Positioning of the Object Based on RFID Technology using Robotic Arm

PLUG : the shore power solution you can afford!

Implementation of Steady-State Power System Visualizations Using PowerWorld Simulator. Dr. Jung-Uk Lim, Department of Electrical Engineering

Design Specification and UI Interface for Automated Cart Delivery System

7. Author(s) Shan Bao, Michael J. Flannagan, James R. Sayer, Mitsuhiro Uchida 9. Performing Organization Name and Address

GCAT. University of Michigan-Dearborn

Design and Manufacturing of Pneumatic Gear Shifter for Go-Kart

Cilantro. Old Dominion University. Team Members:

Investigation of a promising method for liquid hydrocarbons spraying

Maneuvering Experiment of Personal Mobility Vehicle with CVT-Type Steering Mechanism

Evaluation of Deadband Effect in Steer- by-wire Force Feedback System by Using Driving Simulator Nuksit Noomwongs a and Sunhapos Chantranuwathana b

MPPT Control System for PV Generation System with Mismatched Modules

SDOMEO51MV USER MANUAL. Portable Rugged PTZ Cameras

A Simulation Model of the Automotive Power System Based on the Finite State Machine

VEHICLE COUNTING AND VEHICLE SPEED MEASUREMENT BASED ON VIDEO PROCESSING

Height Adjustable Speed Breaker and U-Turn Indicator

Two-Axis, Internet Controlled, Pneumatic T-Shirt Cannon

Office Automated Delivery Robot

Hybrid Solar Panel Fuel Cell Power Plant

TESTING OF CONTROL UNITS FOR THE APPLICATION OF WIRELESS COMMUNICATION PROTOCOLS IN ON-BOARD VEHICLE DIAGNOSTIC SYSTEMS

International Journal of Science Engineering and Advance Technology, IJSEAT, Vol 3, Issue 9 ISSN September-2015

SINGLE AXIS SOLAR PANEL PROTECTION SYSTEM

Beginner Driver Support System for Merging into Left Main Lane

HK Equipment CZD Brake tester Max. weight Size Roller size Measure range Error Rated use condition: CCH Sideslip tester 10,000kg (15,000kg) 3990 x 840

STPA in Automotive Domain Advanced Tutorial

FireBeetle Covers-DC Motor & Stepper Driver SKU:DFR0508

Department of Electrical and Computer Science

DESIGN DEVELOPMENT ENGINEERING TECHNOLOGY INDUSTRIALIZATION

Permanent Multipath Clamp-On Transit Time Flow Meter

System Level Design Review

An Autonomous Two Wheel Based Self- Balancing Robot Using Arduino

Warning! Before continuing further, please ensure that you have NOT mounted the propellers on the MultiRotor.

PAVIA FERRARA TORINO PARMA ANCONA FIRENZE ROMA

Operating Instructions EVG620 Aligner

Simulation of an Electro-Hydraulic System for a P.E.T. Waste Baling Press

SMART STREET LIGHT SYSTEM

Driver Fatigue Monitor. MR688 User Guide

OPTICAL MEASUREMENTS OF SURFACE PARTICLES FOR EVALUATING REMOVAL PERFORMANCE OF AIR-JET

International Journal of Advance Engineering and Research Development. Smart Dustbin overflows Indicator using IOT

2015 The MathWorks, Inc. 1

Platooning using p in SARTRE project Safe Road Train for the Environment

Parameter Design and Tuning Tool for Electric Power Steering System

Design and Experimental Study on Digital Speed Control System of a Diesel Generator

School of Engineering Science Simon Fraser University, Burnaby BC V5A 1S6

RAIN SENSING AUTOMATIC CAR WIPER

Technical Article. How improved magnetic sensing technology can increase torque in BLDC motors. Roland Einspieler

Analysis on Steering Gain and Vehicle Handling Performance with Variable Gear-ratio Steering System(VGS)

Course Code: Bendix Wingman Fusion System Overview Study Guide

Issue 2.0 December EPAS Midi User Manual EPAS35

7. On-Board Computer Solution Focuses on Safer Drivers and Preventable Accidents. d. Partnership with Ft Worth, TX and Knights Waste

90. Ignition timing control strategy based on openecu design

ELECTROMAGNETS ARRANGEMENT FOR ELECTROMAGNETIC WINDSHIELD WIPERS - PROPOSAL AND ANALYSIS

Small Oil Free Piston Type Compressor For CO2

HK Equipment CZD Brake tester Max. weight Size Roller size Measure range Error Rated use condition: CCH Sideslip tester 10,000kg (15,000kg) 3990 x 840

China. Keywords: Electronically controled Braking System, Proportional Relay Valve, Simulation, HIL Test

Beissbarth MLD 815. Digital headlight measurement and adjustment. TÜV-certified (prototype technical release) Cross and alignment laser

DESIGN OF HIGH ENERGY LITHIUM-ION BATTERY CHARGER

ULTRASONIC TESTING OF RAILWAY AXLES WITH PHASED ARRAY TECHNIQUE EXPERIENCES DURING OPERATION

Modelling of a Double Clutch Transmission with an Appropriate Controller for the Simulation of Shifting Processes

Design and Analysis of Electromagnetic Tubular Linear Actuator for Higher Performance of Active Accelerate Pedal

Which fuels do you use? 96% 34% 8% 5% 5% 1% 0.5% 2014 EQUIPMENT SURVEY

Automatic Car Driving System Using Fuzzy Logic

CHAPTER 2 FRUITS CONVEYOR SYSTEM

Princess Sumaya University for Technology

Full Vehicle Simulation for Electrification and Automated Driving Applications

A Brief User s Manual of. The Scanning Tunneling Microscope

Integrations Demonstrator vehicle, application, infrastructure and communication integration

A Brake Pad Wear Control Algorithm for Electronic Brake System

LOW-BEAM HEADLAMP ILLUMINATION AT VERY HIGH ANGLES

Transcription:

Chapter 45 Adaptive Cars Headlamps System with Image Processing and Lighting Angle Control William Tandy Prasetyo, Petrus Santoso and Resmana Lim Abstract The project proposed a prototype of an adaptive car headlamps control using image processing. The adaptive headlamps system focuses on the lighting angle control of low beam in the headlamps which its light tracks moved horizontally. The controller in headlamps is based on image processing from a camera mounted on the car. Adaptive headlamps system consists of portable tiny computer of Raspberry Pi, Arduino microcontroller, and two stepper motors for the left and the right headlamps. The system was implemented on the headlamps of a Toyota Avanza car. The adaptive headlamps system could detect most types of cars ahead. It could decrease a glare effect and increase the driver sight based on survey taken from the driver and the driver of opposite car. The system still couldn t detect the opposite car with high intensity of light from braking lamps, as well as the light from the opposite front lamps. Keywords Adaptive cars headlamps Arduino Image processing Raspberry pi 45.1 Introduction Night is the time when vehicle accidents often occurred [1]. The causes can be various such as the headlamps light in the car aren t focused or the lights intensity are too low or the lights make glared (dazzled) effect for other car drivers [2]. On the other side, technology for controlling headlamps light were rarely found these years. Nowadays, most of researches often focus on car speed controller research (cruise control), and automatic car parking system. The need of headlamps technology is important based on the facts above. Several companies have produced and sold their headlamps technology products to the market. Hella, one of the automotive company sold their headlamps W.T. Prasetyo (&) P. Santoso R. Lim Electrical Engineering Department, Petra Christian University, Surabaya, Indonesia e-mail: wtp_93@hotmail.com Springer Science+Business Media Singapore 2016 F. Pasila et al. (eds.), Proceedings of Second International Conference on Electrical Systems, Technology and Information 2015 (ICESTI 2015), Lecture Notes in Electrical Engineering 365, DOI 10.1007/978-981-287-988-2_45 415

416 W.T. Prasetyo et al. technology product called Adaptive Front-light System (AFS) that can control the headlamps light based on car steering [3]. The AFS technology also proposed in [4]. Valeo company also provided their product Light/on&off that can switch the headlamps light on and off automatically based on light intensity around the car [5]. The headlamp technology that used by Valeo, also similar with Stein s project [6]. Those two above still can t reduce the dazzled (glared) effect for other cars. This paper offers headlamps technology that can overcome the problems above. Headlamps technology in this paper can control headlamps light s track adaptively based on object detection (car s back side) data. The headlamps light s track can move horizontally based on position of the object. 45.2 Adaptive Headlamps System Set-up This section provides the outline of the adaptive headlamps controller system. The block diagram of the system displayed on Fig. 45.1. There are two primary processes in the Fig. 45.1 such as object detection process on raspberry pi and stepper motor controller on arduino. Raspberry pi communicates with webcam through USB (Universal Serial Bus) interface. It also does I2C communication through GPIO pins (GPIO 03, GPIO 05) which SDA, and SCL port located on raspberry pi. Arduino as stepper motor controller also do I2C communication through I/O pins (digital pins 20, 21) which SDA, and SCL port located on Arduino. Arduino controls two stepper motors through L298N motor drivers which can drive them with higher current. Fig. 45.1 Block diagram of adaptive headlamps controller system

45 Adaptive Cars Headlamps System with Image 417 45.3 Design of Adaptive Headlamps Design of adaptive headlamps is divided into two parts, which are hardware and software. Hardware part consists of the design of headlamp itself, and installation of the controller, including installation of the webcam. The software design consists of Raspberry Pi s software design and Arduino s software design. 45.3.1 Hardware Design Headlamps that used in this paper are Toyota Avanza 2009 car s headlamps with projector lens. The headlamps were modified by adding limit switch behind the high beam lamp. It is used to limit the movement of the lamp and set the position of the stepper motor into zero position (Fig. 45.2). Adaptive headlamps controller consists of one Raspberry Pi B tiny portable computer, one driverless webcam, one arduino mega R3 2560 microcontroller, two pieces of L298N motor driver, 12 V regulator to stabilize the voltage from car battery, and toggle switch for auto-manual control. There are also keyboard and mouse attached on Raspberry Pi for user interface. All of the components mounted on a board, then placed below left-front dashboard of the car. The webcam is installed inside of the car, and the position is on the middle of the car, and the height about half of car height, so its position in line with the detected object. The position of the adaptive headlamps controller board and webcam displayed in Fig. 45.3. Fig. 45.2 Headlamp design

418 W.T. Prasetyo et al. Fig. 45.3 a Location of adaptive headlamps controller board. b Location of webcam 45.3.2 Raspberry Pi s Software Design Raspberry Pi s software design is divided into four points which are object detection, headlamps light track movement calculation, I2C communication, and manual control program. Raspberry Pi uses Raspbian operating system based on Linux kernel. Python is used to create the program and OpenCV library is used as compiler for image processing in the Raspberry Pi. The program code starts with object detection by the webcam. Webcam captured the object by creating a ROI (Region of Interest) in window screen marked by blue rectangle when the object is correct and in range of detection. Webcam used 320 240 pixel resolution due to low specification of the Raspberry Pi. Low resolution of webcam makes the Raspberry Pi works faster but as the compensation the image quality become lower. Object detection in Raspberry Pi used OpenCV library by importing cv2 library in the program and used cascade.xml file that contain the trained data. Trained data were obtained by doing haar training on hundred images of cars. Haar training that used in this paper based on Viola-Jones paper which provides faster face detection using haar trained data [7]. Headlamps light track movement calculation starts from the distance calculation then calculate the position where the stepper motors will stop. Triangle similarity is used to calculate the distance from webcam to the object [8]. Triangle similarity equation shown as below: F ¼ ðpxdþ=w ð45:1þ where F is focal length of webcam, P is object length in webcam (pixel), D is the distance (cm), and W is object length in real (cm). This equation used to find the focal length of the camera, so all of the parameters except F should be known first

45 Adaptive Cars Headlamps System with Image 419 Table 45.1 List of positions based on distance between webcam and detected object Distance (cm) Object position Stepper position L L degree Stepper position R R degree No object 15 4.29 o 15 4.29 o 0 400 Left 0 0.00 o 0 0.00 o 400 800 Left 7 2.00 o 15 4.29 o >800 Left 15 4.29 o 15 4.29 o 0 400 Right 0 0.00 o 0 0.00 o 400 800 Right 15 4.29 o 7 2.00 o >800 Right 15 4.29 o 15 4.29 o by manual measuring. Then triangle similarity equation used again in different way in program. The equation shown as below: D 0 ¼ WxF=P 0 ð45:2þ where W is object length in real (cm) same as before, F is focal length obtained from Eq. (45.1), P is object length in webcam (pixel) and D is the distance (cm). P obtained by measuring the length of ROI rectangle that represents the object length in webcam and D is the distance that used to determine the position where the stepper motor stopped. List of positions based on distance between webcam and detected object are shown at Table 45.1. Numbers in stepper position L/R columns mean the position of rotation of stepper motor at that time, for example, number 7 means the stepper motor rotates 360 7 times and stops at that position. Position number of stepper motors that determined from the list are sent to the Arduino through I2C port. The manual control program designed for users so the users can move the headlamps light track movement manually. Users can give input 1, 2, 3 and 4 to the Raspberry Pi using keyboard to rotate stepper motors 180 clockwise or counter-clockwise. Left stepper motor is controlled by 1 and 2 input and the right side is controlled by 3 and 4 input, then the input sent to Arduino. 45.3.3 Arduino s Software Design Arduino s software design is divided into three points such as automatic control (adaptive) of headlamps light track movement, manual control and I2C communication. Arduino IDE is used to design the program. Automatic and manual control of headlamps light track movement program receive stepper motors position data from Raspberry Pi through I2C port. Automatic control s program in Arduino converts the position data so it can rotate

420 W.T. Prasetyo et al. the stepper motors precisely. Before automatic control program executed, the calibration program is run and rotates the stepper motors to move at zero position. Manual control of headlamps light track movement program also converts the position data from Raspberry Pi to rotate the stepper motors based on users input. Program for automatic and manual control switch also configured in this software design. 45.4 Results and Discussions The system test has been done at night on the road which has been conditioned for avoiding undesired incidents and safety. This system test consists of pictures which show webcam pictures results, and driver sights whether from the car with adaptive headlamps attached or the opposite car. Conditions on this system test was divided into three conditions based on the object condition. The first condition was the driver in opposite car didn t push the brake pad, the second condition was the driver in opposite car pushed the brake pad, and the third, the position of opposite car was face to face with the car. Distance between car and the opposite car was approximately 4 8 m and the position of opposite car was at the left side of the car. The opposite car that used in this system test was Honda Brio 2014. Table 45.2 shows the pictures results of webcam detection that can only detect object when the condition of the opposite car s driver didn t push the brake pad. It happened because the light intensity was too high for the webcam so webcam couldn t detect the object properly. System test on the driver sight has been done by taking pictures using DSLR camera with the same settings. The pictures consist of four pictures with different angles. The first and second took from the car driver sight with normal headlamps and adaptive headlamps. The third and fourth took from the opposite car driver Table 45.2 Pictures results of webcam detection based on object conditions Object conditions Detection results in webcam The driver in opposite car didn t push the brake pad The driver in opposite car pushed the brake pad The position of opposite car was face to face with the car (object detected) (no object detected) (no object detected)

45 Adaptive Cars Headlamps System with Image 421 Table 45.3 Pictures results from car s driver sight and opposite car s driver sight Picture angle Normal headlamps Adaptive headlamps Driver sight Opposite driver sight sight with normal headlamps and adaptive headlamps. The condition of the opposite car was the same condition as the first condition in the system test before. The light track of normal and adaptive headlamps on driver sight look different on Table 45.3. The light track on adaptive headlamps seems wider than the normal. The dazzled (glared) effect from opposite car also reduced at the adaptive headlamps pictures (the light intensity was lower than the normal). 45.5 Conclusion The system test result shown that adaptive headlamps can increase the driver sight and decrease the dazzled (glared) effect on the opposite car side. The object detection also could run properly on the condition when the light intensity from the opposite lamps weren t too high for the webcam. In the future, there will be several improvements that can be applied with this paper for example improvement on webcam which can detect lights with higher intensity.

422 W.T. Prasetyo et al. References 1. Apriliananda, D.: Ini Waktu Rawan Kecelakaan Lalu Lintas! 11 September 2014. http:// otomotif.kompas.com/read/2013/12/24/1935538/ini.waktu.rawan.kecelakaan.lalu.lintas 2. Kompasiana, 85% Kecelakaan Lalu-lintas Karena Human Error. 28 December 2011 (10 November 2014). http://lifestyle.kompasiana.com/catatan/2011/12/28/85-kecelakaan-lalulintas-karena-human-error-422758.html 3. Hella, Adaptive Frontlight System (AFS). 14 June 2012. 10 September 2014. http://www. youtube.com/watch?v=cu_0g9qtamo 4. light/on&off, Automatic Car Headlight, Lights, Automatic Car Lighting System. t.thn. 11 September 2014. http://www.smileyouaredriving.com/uk_en-products.driving-assistance. video-7.html 5. Antony, B., Manoj, M.: Control algorithm for adaptive front light systems. Int. J. Comput. Trends Technol. 9(7), 339 343 (2014) 6. Stein, G.P., et al: Headlight, Taillight and Streetlight Detection. United States Patent (2009) 7. Open CV-Python Tutorials. Face Detection using Haar Cascades (2015) 8. Rosebrock, A.: Find Distance from Camera to Object/Marker using Python and Open CV. (2015)