SlideShare a Scribd company logo
Journal for Research | Volume 03 | Issue 12 | February 2018
ISSN: 2395-7549
All rights reserved by www.journal4research.org 53
Automated Headlight Control using LabVIEW
Krithika Ramachandran Padma Pradha Thangaraj
UG Student UG Student
Department of Instrumentation & Control Engineering Department of Instrumentation & Control Engineering
Panjappur, Tiruchirappalli, India Panjappur, Tiruchirappalli, India
Lavanya Elangovan Prathiba Sugumar
UG Student UG Student
Department of Instrumentation & Control Engineering Department of Instrumentation & Control Engineering
Panjappur, Tiruchirappalli, India Panjappur, Tiruchirappalli, India
G. Vijayalakshmi
Assistant Professor
Department of Instrumentation & Control Engineering
Panjappur, Tiruchirappalli, India
Abstract
This paper proposes an enhanced method to control the headlight intensity of the vehicle using Ambient Light Sensor (ALS), NI
myRIO and LabVIEW. The main function of this automated headlight control is to control the intensity of the headlight based on
the ambient light intensity using Pulse Width Modulation (PWM). The intensity of the headlight will be low when the ambient
light intensity is high and vice versa.
Keywords: Ambient Light Sensor (ALS), Headlight Control, NI myRIO, LabVIEW
_______________________________________________________________________________________________________
I. INTRODUCTION
Driving at night time is usually more dangerous than driving during daytime. According to the research most of the accidents occur
during the night time. While driving at night, the headlight must be kept ON, otherwise it will be difficult to find the routes, other
vehicles, turning points, etc., but if the intensity of the light is very high it will influence the vision of the opposite vehicle driver,
which is the cause of many road accidents. This necessitates the importance of varying the intensity of the headlights, or else the
glare from the headlight can blind the opposite driver which would lead to accidents. It will be difficult for the drivers to actively
control the intensity while driving. To ensure comfort of the drivers and safety of the passengers this automatic headlight control
system is helpful.
Generally speaking, a common approach to automate headlight is to detect potential light objects using some image processing
algorithms, then apply certain heuristic rules to decide if high beam should be used or not. While such solution is relatively easier
and quicker to develop, it usually suffers from the drawbacks such as difficulty of deployment in different geographical regions,
lack of robustness to the change of weather and road conditions, as well as expensive system fine-tuning
The brightness of the surrounding is sensed using the Ambient Light Sensor (ALS). When the brightness in the surrounding is
high, then the sensor value becomes high. Then according to the sensor values PWM signals are generated to lower the headlight
intensity.
In this project NI myRIO is used as the hardware interface between the real time system and LabVIEW software. The NI myRIO
has
 myRIO Expansion Port (MXP) Breakouts (One Included in Kit)
 Power Input Cable
 USB Device Cable
 USB Host Cable (Not Included in Kit)
 LEDs
 Mini System Port (MSP) Screw-Terminal Connector
 Audio In/Out Cables (One Included in Kit)
 Button0
II. AMBIENT LIGHT SENSOR (ALS)
Ambient Light Sensor (ALS) consists of phototransistor which is connected to the supply voltage and ground. The output voltage
varies according to the incident light on the phototransistor.
Automated Headlight Control using LabVIEW
(J4R/ Volume 03 / Issue 12 / 011)
All rights reserved by www.journal4research.org 54
Fig. 1(a): Ambient Light Sensor
The Pin Connections of ALS are
 CS-Chip Select(active low signal)
 NC-No Connect
 SDA-Serial Data Out(to myRIO SPI MISO)
 SCL- Serial Clock signal(from myRIO to SPI CLK)
 GND-Ground
 Vcc +3.3v
Fig. 1(b)
The track and hold circuit is connected to analog to digital converter. It produces an 8 bit sample. ALS also contains the SPI bus
interface. The SPI is the ultimate point of contact back to the NI myRIO SPI input to either the port A or port B.
Fig. 2:
Automated Headlight Control using LabVIEW
(J4R/ Volume 03 / Issue 12 / 011)
All rights reserved by www.journal4research.org 55
Analog Converter Has Two Modes
 Track mode
 Hold mode
It is initiated with the track mode. Chip select would be normally high; it was dropped too low to initiate a conversion cycle. This
switches the converter to hold mode.
Serial clock should be normally high. When the chip select is dropped the serial clock pulses are initiated. Serial data out is in
the high impedance state. As soon as the chip select is dropped serial data becomes active.
The first data bit generated by the serial data out is the most significant bit. After the 8th
data bit is clocked out, the converter
switches back to its track mode. The chip select will be made high to prepare the next conversion cycle.
III. PULSE WIDTH MODULATION
Pulse Width Modulation (PWM) Signal is an analog signal generated using a digital source. For varying the light intensity, Pulse
Width Modulation (PWM) seems to constitute the most effective means to accurately control the illumination. In PWM, the
brightness is controlled by square pulse modulation of the driving current and by adjusting the duty cycle of the pulse train.
The behavior of the pulse width modulation is based on two components:
 Duty Cycle
 Frequency
The duty cycle describes the amount of time the signal is in a high (ON) state as a percentage of the total time of it takes to
complete one cycle.
The frequency determines how fast the PWM completes a cycle (i.e. 1000 Hz would be 1000 cycles per second), and therefore
how fast it switches between high and low states.
Fig. 3: 25% Duty Cycle
By cycling a digital signal OFF and ON at a fast enough rate, and with a certain duty cycle, the output will appear to behave like
a constant voltage analog signal when powering the devices.
IV. HEADLIGHT CONTROL
Ambient Light Sensor detects the surrounding brightness. ALS is connected to the SPI bus on the connector B. SPI bus can be
connected to connector A or connector B. The connector B also supplies 3.3 v to ALS. The conversion cycle begins by dropping
the Chip Select (CS) value. Digital output block is set to 0 by giving a false constant so that the chip select is dropped to the low
value. The SPI express VI block reads every single frame.
The frame length needed is 16 bits. The non-default values, clock phase and clock polarity are need to be selected. The output
of the express VI is an array of 16 bit unsigned integers. The data direction is that the Most Significant Bit (MSB) first. So by using
the index array the individual values are pulled off. The extraneous bits can be removed using the logical shift to the right. The
values are converted to unsigned 8 bit integers. Then the values are displayed in the front panel. And the conversion cycle can be
completed by switching the chip select to a high.
The sensor values are given into different cases of the case structure and for the different sensor values, PWM signals are
generated and the headlight of the vehicle is controlled according to the surrounding brightness.
Automated Headlight Control using LabVIEW
(J4R/ Volume 03 / Issue 12 / 011)
All rights reserved by www.journal4research.org 56
Fig. 4:
The digital output 1 changes the chip select to low to initiate the conversion cycle of the analog converter to switch it to hold
mode from track mode. The SPI express VI counts a single frame and updates it to the application it is being used. The digital
output 2 switches the chip select back to track mode. The index array function reads the 16 bit information from the SPI express
VI. The 16 bit value is right shifted by 5 units and is converted to 8 bit value. The PWM are used to update the light intensity as
specified in Pulse Width Modulation. A case structure is used to vary the duty cycle with respect to the 8 bit value.
Fig. 5:
V. RESULT
The sensor was tested at different ambient conditions and its performance is evaluated. The sequences were acquired and the PWM
signal is generated accordingly. For the variations in the ambient light intensity the headlight intensity of the vehicle is varied. It
will be helpful for the driver to automatically control the headlight intensity whenever it is necessary.
Figure 6(a), Figure 6(b), Figure 6(c) represents the headlight of the vehicle under different environmental brightness.
Fig. 6(a): When the Surrounding is Dark, then the Headlight will glow in its full Brightness.
Automated Headlight Control using LabVIEW
(J4R/ Volume 03 / Issue 12 / 011)
All rights reserved by www.journal4research.org 57
Fig. 6(b): In this Condition, Ambient Brightness is neither too dark nor too bright. So the Headlight will Glow with Medium Intensity.
Figure 6(c): When the Surrounding is Bright Enough to Drive the Car the Headlights Are Turned off Automatically.
VI. CONCLUSION
The automated headlight control system is focused upon building a comfortable driving experience for the driver and a safe travel
experience for the passengers. We have achieved it through varying the headlight intensity corresponding to the environmental
light intensity. This is useful to drivers who don’t concentrate over the headlight intensity. The safety is enhanced at the same time
when the battery power consumption is also optimized. This can be most efficient during night times and in regions with varying
light intensity. On a larger scale this can yield a greater efficiency when interfaced through IOT.
REFERENCES
[1] Sungmin Eum ,Ho Gi Jung,”Enhancing Light Blob Detection for Intelligent Headlight Control Using Lane Detection”, IEEE Transactions on Intelligent
Transportation Systems(Volume: 14, Issue: 2, June 2013 ) 09 January 2013
[2] Y.-L. Chen, B.-F. Wu, H.-Y. Huang, and C.-J. Fan, “A real-time vision system for nighttime vehicle detection and traffic surveillance”, IEEE
Trans. Ind. Electron., vol. 58, no. 5, pp. 2030–2044, May 2011.
[3] P. F. Alcantarilla, L. M. Bergasa, P. Jiménez, I. Parra, D. F. Llorca, M. Sotelo, and S. Mayoral, “Automatic light beam controller for driver
assistance” Mach. Vis. Appl., vol. 22, no. 5, pp. 819–835, Sep. 2011.
[4] Ying Li Norman Haas Sharath Pankanti, ”Intelligent headlight control using learning-based approaches” Intelligent Vehicles Symposium (IV), 2011 IEEE,05
July 2011
[5] “AMBIENT LIGHT SENSOR” https://www.ni.com
[6] C. Schadel and D. Falb, “SmartBeam–A high-beam assist,” Proc. Of the 7th International Symposium on Automotive Lighting, Darmstadt,
Germany, 2007.

More Related Content

What's hot

Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic ControllerSpeed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
iosrjce
 
Labview based automated car lighting
Labview based automated car lightingLabview based automated car lighting
Labview based automated car lighting
ramya c b
 
Design and simulation of radio frequency
Design and simulation of radio frequencyDesign and simulation of radio frequency
Design and simulation of radio frequency
eSAT Journals
 
MEMS ACCELEROMETER BASED NONSPECIFIC – USER HAND GESTURE RECOGNITION
MEMS  ACCELEROMETER  BASED NONSPECIFIC – USER HAND GESTURE  RECOGNITIONMEMS  ACCELEROMETER  BASED NONSPECIFIC – USER HAND GESTURE  RECOGNITION
MEMS ACCELEROMETER BASED NONSPECIFIC – USER HAND GESTURE RECOGNITION
Grace Abraham
 

What's hot (20)

Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic ControllerSpeed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
 
Brushless DC Motor Drive during Speed Regulation with Artificial Neural Netwo...
Brushless DC Motor Drive during Speed Regulation with Artificial Neural Netwo...Brushless DC Motor Drive during Speed Regulation with Artificial Neural Netwo...
Brushless DC Motor Drive during Speed Regulation with Artificial Neural Netwo...
 
IRJET- Automatic Headlight System for Automotive Safety
IRJET-  	  Automatic Headlight System for Automotive SafetyIRJET-  	  Automatic Headlight System for Automotive Safety
IRJET- Automatic Headlight System for Automotive Safety
 
Dinie nur zayanislide fyp1
Dinie nur zayanislide fyp1Dinie nur zayanislide fyp1
Dinie nur zayanislide fyp1
 
Design of three phase inverter fed induction motor
Design of three phase inverter fed induction motorDesign of three phase inverter fed induction motor
Design of three phase inverter fed induction motor
 
Hybrid PI-Fuzzy Controller for Brushless DC motor speed control
Hybrid PI-Fuzzy Controller for Brushless DC motor speed controlHybrid PI-Fuzzy Controller for Brushless DC motor speed control
Hybrid PI-Fuzzy Controller for Brushless DC motor speed control
 
Hill Top Braking System in Electronic Bikes
Hill Top Braking System in Electronic BikesHill Top Braking System in Electronic Bikes
Hill Top Braking System in Electronic Bikes
 
Density sensed street light intensity control to save energy...
Density sensed street light intensity control to save energy...Density sensed street light intensity control to save energy...
Density sensed street light intensity control to save energy...
 
Power Optimized Datapath Units of Hybrid Embedded Core Architecture Using Clo...
Power Optimized Datapath Units of Hybrid Embedded Core Architecture Using Clo...Power Optimized Datapath Units of Hybrid Embedded Core Architecture Using Clo...
Power Optimized Datapath Units of Hybrid Embedded Core Architecture Using Clo...
 
DENSITY BASED TRAFFIC LIGHT CONTROLLER BY SAIKIRAN PANJALA
DENSITY BASED TRAFFIC LIGHT CONTROLLER BY SAIKIRAN PANJALADENSITY BASED TRAFFIC LIGHT CONTROLLER BY SAIKIRAN PANJALA
DENSITY BASED TRAFFIC LIGHT CONTROLLER BY SAIKIRAN PANJALA
 
Major Project PPT presentation
Major Project PPT presentationMajor Project PPT presentation
Major Project PPT presentation
 
Design and Implementation Intelligent Adaptive Front-lighting System of Autom...
Design and Implementation Intelligent Adaptive Front-lighting System of Autom...Design and Implementation Intelligent Adaptive Front-lighting System of Autom...
Design and Implementation Intelligent Adaptive Front-lighting System of Autom...
 
Direct Torque Control of a Bldc Motor Based on Computing Technique
Direct Torque Control of a Bldc Motor Based on Computing TechniqueDirect Torque Control of a Bldc Motor Based on Computing Technique
Direct Torque Control of a Bldc Motor Based on Computing Technique
 
Final Presentation
Final PresentationFinal Presentation
Final Presentation
 
Street Light that Glows on Detecting Vehicle Movement
Street Light that Glows on Detecting Vehicle MovementStreet Light that Glows on Detecting Vehicle Movement
Street Light that Glows on Detecting Vehicle Movement
 
Labview based automated car lighting
Labview based automated car lightingLabview based automated car lighting
Labview based automated car lighting
 
IRJET- Smart Alignment System
IRJET- Smart Alignment SystemIRJET- Smart Alignment System
IRJET- Smart Alignment System
 
Design and simulation of radio frequency
Design and simulation of radio frequencyDesign and simulation of radio frequency
Design and simulation of radio frequency
 
MEMS ACCELEROMETER BASED NONSPECIFIC – USER HAND GESTURE RECOGNITION
MEMS  ACCELEROMETER  BASED NONSPECIFIC – USER HAND GESTURE  RECOGNITIONMEMS  ACCELEROMETER  BASED NONSPECIFIC – USER HAND GESTURE  RECOGNITION
MEMS ACCELEROMETER BASED NONSPECIFIC – USER HAND GESTURE RECOGNITION
 
Smart street lighting system
Smart street lighting systemSmart street lighting system
Smart street lighting system
 

Similar to AUTOMATED HEADLIGHT CONTROL USING LABVIEW | J4RV3I12018

Final Slot Car Report
Final Slot Car ReportFinal Slot Car Report
Final Slot Car Report
Kyle Avery
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded system
manish katara
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed control
Sai Malleswar
 
4 Way traffic controll new
4 Way traffic controll new4 Way traffic controll new
4 Way traffic controll new
Mainak Nandi
 

Similar to AUTOMATED HEADLIGHT CONTROL USING LABVIEW | J4RV3I12018 (20)

openSPIN
openSPINopenSPIN
openSPIN
 
Qaudcopters
QaudcoptersQaudcopters
Qaudcopters
 
Final Slot Car Report
Final Slot Car ReportFinal Slot Car Report
Final Slot Car Report
 
Design & implementation of 16 bit low power ALU with clock gating
Design & implementation of 16 bit low power ALU with clock gatingDesign & implementation of 16 bit low power ALU with clock gating
Design & implementation of 16 bit low power ALU with clock gating
 
C0431923
C0431923C0431923
C0431923
 
Team7 report
Team7 reportTeam7 report
Team7 report
 
A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...
A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...
A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...
 
Gas sensor
Gas sensorGas sensor
Gas sensor
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded system
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
Final Slot Car Report
Final Slot Car ReportFinal Slot Car Report
Final Slot Car Report
 
Orientation of Radar Antenna
Orientation of Radar AntennaOrientation of Radar Antenna
Orientation of Radar Antenna
 
Orientation of Radar Antenna
Orientation of Radar AntennaOrientation of Radar Antenna
Orientation of Radar Antenna
 
L010127578
L010127578L010127578
L010127578
 
EBM.ppt
EBM.pptEBM.ppt
EBM.ppt
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed control
 
4 Way traffic controll new
4 Way traffic controll new4 Way traffic controll new
4 Way traffic controll new
 
Simulation Design of DC Motor Control System Based on MC9S12D64 MCU
Simulation Design of DC Motor Control System Based on MC9S12D64 MCUSimulation Design of DC Motor Control System Based on MC9S12D64 MCU
Simulation Design of DC Motor Control System Based on MC9S12D64 MCU
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
Fabrication of AGV
Fabrication of AGVFabrication of AGV
Fabrication of AGV
 

More from Journal For Research

A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...
A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...
A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...
Journal For Research
 
LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012
LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012
LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012
Journal For Research
 
DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...
DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...
DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...
Journal For Research
 
SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024
SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024
SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024
Journal For Research
 

More from Journal For Research (20)

Design and Analysis of Hydraulic Actuator in a Typical Aerospace vehicle | J4...
Design and Analysis of Hydraulic Actuator in a Typical Aerospace vehicle | J4...Design and Analysis of Hydraulic Actuator in a Typical Aerospace vehicle | J4...
Design and Analysis of Hydraulic Actuator in a Typical Aerospace vehicle | J4...
 
Experimental Verification and Validation of Stress Distribution of Composite ...
Experimental Verification and Validation of Stress Distribution of Composite ...Experimental Verification and Validation of Stress Distribution of Composite ...
Experimental Verification and Validation of Stress Distribution of Composite ...
 
Image Binarization for the uses of Preprocessing to Detect Brain Abnormality ...
Image Binarization for the uses of Preprocessing to Detect Brain Abnormality ...Image Binarization for the uses of Preprocessing to Detect Brain Abnormality ...
Image Binarization for the uses of Preprocessing to Detect Brain Abnormality ...
 
A Research Paper on BFO and PSO Based Movie Recommendation System | J4RV4I1016
A Research Paper on BFO and PSO Based Movie Recommendation System | J4RV4I1016A Research Paper on BFO and PSO Based Movie Recommendation System | J4RV4I1016
A Research Paper on BFO and PSO Based Movie Recommendation System | J4RV4I1016
 
IoT based Digital Agriculture Monitoring System and Their Impact on Optimal U...
IoT based Digital Agriculture Monitoring System and Their Impact on Optimal U...IoT based Digital Agriculture Monitoring System and Their Impact on Optimal U...
IoT based Digital Agriculture Monitoring System and Their Impact on Optimal U...
 
A REVIEW PAPER ON BFO AND PSO BASED MOVIE RECOMMENDATION SYSTEM | J4RV4I1015
A REVIEW PAPER ON BFO AND PSO BASED MOVIE RECOMMENDATION SYSTEM | J4RV4I1015A REVIEW PAPER ON BFO AND PSO BASED MOVIE RECOMMENDATION SYSTEM | J4RV4I1015
A REVIEW PAPER ON BFO AND PSO BASED MOVIE RECOMMENDATION SYSTEM | J4RV4I1015
 
HCI BASED APPLICATION FOR PLAYING COMPUTER GAMES | J4RV4I1014
HCI BASED APPLICATION FOR PLAYING COMPUTER GAMES | J4RV4I1014HCI BASED APPLICATION FOR PLAYING COMPUTER GAMES | J4RV4I1014
HCI BASED APPLICATION FOR PLAYING COMPUTER GAMES | J4RV4I1014
 
A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...
A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...
A REVIEW ON DESIGN OF PUBLIC TRANSPORTATION SYSTEM IN CHANDRAPUR CITY | J4RV4...
 
A REVIEW ON LIFTING AND ASSEMBLY OF ROTARY KILN TYRE WITH SHELL BY FLEXIBLE G...
A REVIEW ON LIFTING AND ASSEMBLY OF ROTARY KILN TYRE WITH SHELL BY FLEXIBLE G...A REVIEW ON LIFTING AND ASSEMBLY OF ROTARY KILN TYRE WITH SHELL BY FLEXIBLE G...
A REVIEW ON LIFTING AND ASSEMBLY OF ROTARY KILN TYRE WITH SHELL BY FLEXIBLE G...
 
LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012
LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012
LABORATORY STUDY OF STRONG, MODERATE AND WEAK SANDSTONES | J4RV4I1012
 
DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...
DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...
DESIGN ANALYSIS AND FABRICATION OF MANUAL RICE TRANSPLANTING MACHINE | J4RV4I...
 
AN OVERVIEW: DAKNET TECHNOLOGY - BROADBAND AD-HOC CONNECTIVITY | J4RV4I1009
AN OVERVIEW: DAKNET TECHNOLOGY - BROADBAND AD-HOC CONNECTIVITY | J4RV4I1009AN OVERVIEW: DAKNET TECHNOLOGY - BROADBAND AD-HOC CONNECTIVITY | J4RV4I1009
AN OVERVIEW: DAKNET TECHNOLOGY - BROADBAND AD-HOC CONNECTIVITY | J4RV4I1009
 
LINE FOLLOWER ROBOT | J4RV4I1010
LINE FOLLOWER ROBOT | J4RV4I1010LINE FOLLOWER ROBOT | J4RV4I1010
LINE FOLLOWER ROBOT | J4RV4I1010
 
CHATBOT FOR COLLEGE RELATED QUERIES | J4RV4I1008
CHATBOT FOR COLLEGE RELATED QUERIES | J4RV4I1008CHATBOT FOR COLLEGE RELATED QUERIES | J4RV4I1008
CHATBOT FOR COLLEGE RELATED QUERIES | J4RV4I1008
 
AN INTEGRATED APPROACH TO REDUCE INTRA CITY TRAFFIC AT COIMBATORE | J4RV4I1002
AN INTEGRATED APPROACH TO REDUCE INTRA CITY TRAFFIC AT COIMBATORE | J4RV4I1002AN INTEGRATED APPROACH TO REDUCE INTRA CITY TRAFFIC AT COIMBATORE | J4RV4I1002
AN INTEGRATED APPROACH TO REDUCE INTRA CITY TRAFFIC AT COIMBATORE | J4RV4I1002
 
A REVIEW STUDY ON GAS-SOLID CYCLONE SEPARATOR USING LAPPLE MODEL | J4RV4I1001
A REVIEW STUDY ON GAS-SOLID CYCLONE SEPARATOR USING LAPPLE MODEL | J4RV4I1001A REVIEW STUDY ON GAS-SOLID CYCLONE SEPARATOR USING LAPPLE MODEL | J4RV4I1001
A REVIEW STUDY ON GAS-SOLID CYCLONE SEPARATOR USING LAPPLE MODEL | J4RV4I1001
 
IMAGE SEGMENTATION USING FCM ALGORITM | J4RV3I12021
IMAGE SEGMENTATION USING FCM ALGORITM | J4RV3I12021IMAGE SEGMENTATION USING FCM ALGORITM | J4RV3I12021
IMAGE SEGMENTATION USING FCM ALGORITM | J4RV3I12021
 
USE OF GALVANIZED STEELS FOR AUTOMOTIVE BODY- CAR SURVEY RESULTS AT COASTAL A...
USE OF GALVANIZED STEELS FOR AUTOMOTIVE BODY- CAR SURVEY RESULTS AT COASTAL A...USE OF GALVANIZED STEELS FOR AUTOMOTIVE BODY- CAR SURVEY RESULTS AT COASTAL A...
USE OF GALVANIZED STEELS FOR AUTOMOTIVE BODY- CAR SURVEY RESULTS AT COASTAL A...
 
UNMANNED AERIAL VEHICLE FOR REMITTANCE | J4RV3I12023
UNMANNED AERIAL VEHICLE FOR REMITTANCE | J4RV3I12023UNMANNED AERIAL VEHICLE FOR REMITTANCE | J4RV3I12023
UNMANNED AERIAL VEHICLE FOR REMITTANCE | J4RV3I12023
 
SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024
SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024
SURVEY ON A MODERN MEDICARE SYSTEM USING INTERNET OF THINGS | J4RV3I12024
 

Recently uploaded

Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
Kamal Acharya
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 

Recently uploaded (20)

Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Introduction to Casting Processes in Manufacturing
Introduction to Casting Processes in ManufacturingIntroduction to Casting Processes in Manufacturing
Introduction to Casting Processes in Manufacturing
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
shape functions of 1D and 2 D rectangular elements.pptx
shape functions of 1D and 2 D rectangular elements.pptxshape functions of 1D and 2 D rectangular elements.pptx
shape functions of 1D and 2 D rectangular elements.pptx
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Kraków
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 

AUTOMATED HEADLIGHT CONTROL USING LABVIEW | J4RV3I12018

  • 1. Journal for Research | Volume 03 | Issue 12 | February 2018 ISSN: 2395-7549 All rights reserved by www.journal4research.org 53 Automated Headlight Control using LabVIEW Krithika Ramachandran Padma Pradha Thangaraj UG Student UG Student Department of Instrumentation & Control Engineering Department of Instrumentation & Control Engineering Panjappur, Tiruchirappalli, India Panjappur, Tiruchirappalli, India Lavanya Elangovan Prathiba Sugumar UG Student UG Student Department of Instrumentation & Control Engineering Department of Instrumentation & Control Engineering Panjappur, Tiruchirappalli, India Panjappur, Tiruchirappalli, India G. Vijayalakshmi Assistant Professor Department of Instrumentation & Control Engineering Panjappur, Tiruchirappalli, India Abstract This paper proposes an enhanced method to control the headlight intensity of the vehicle using Ambient Light Sensor (ALS), NI myRIO and LabVIEW. The main function of this automated headlight control is to control the intensity of the headlight based on the ambient light intensity using Pulse Width Modulation (PWM). The intensity of the headlight will be low when the ambient light intensity is high and vice versa. Keywords: Ambient Light Sensor (ALS), Headlight Control, NI myRIO, LabVIEW _______________________________________________________________________________________________________ I. INTRODUCTION Driving at night time is usually more dangerous than driving during daytime. According to the research most of the accidents occur during the night time. While driving at night, the headlight must be kept ON, otherwise it will be difficult to find the routes, other vehicles, turning points, etc., but if the intensity of the light is very high it will influence the vision of the opposite vehicle driver, which is the cause of many road accidents. This necessitates the importance of varying the intensity of the headlights, or else the glare from the headlight can blind the opposite driver which would lead to accidents. It will be difficult for the drivers to actively control the intensity while driving. To ensure comfort of the drivers and safety of the passengers this automatic headlight control system is helpful. Generally speaking, a common approach to automate headlight is to detect potential light objects using some image processing algorithms, then apply certain heuristic rules to decide if high beam should be used or not. While such solution is relatively easier and quicker to develop, it usually suffers from the drawbacks such as difficulty of deployment in different geographical regions, lack of robustness to the change of weather and road conditions, as well as expensive system fine-tuning The brightness of the surrounding is sensed using the Ambient Light Sensor (ALS). When the brightness in the surrounding is high, then the sensor value becomes high. Then according to the sensor values PWM signals are generated to lower the headlight intensity. In this project NI myRIO is used as the hardware interface between the real time system and LabVIEW software. The NI myRIO has  myRIO Expansion Port (MXP) Breakouts (One Included in Kit)  Power Input Cable  USB Device Cable  USB Host Cable (Not Included in Kit)  LEDs  Mini System Port (MSP) Screw-Terminal Connector  Audio In/Out Cables (One Included in Kit)  Button0 II. AMBIENT LIGHT SENSOR (ALS) Ambient Light Sensor (ALS) consists of phototransistor which is connected to the supply voltage and ground. The output voltage varies according to the incident light on the phototransistor.
  • 2. Automated Headlight Control using LabVIEW (J4R/ Volume 03 / Issue 12 / 011) All rights reserved by www.journal4research.org 54 Fig. 1(a): Ambient Light Sensor The Pin Connections of ALS are  CS-Chip Select(active low signal)  NC-No Connect  SDA-Serial Data Out(to myRIO SPI MISO)  SCL- Serial Clock signal(from myRIO to SPI CLK)  GND-Ground  Vcc +3.3v Fig. 1(b) The track and hold circuit is connected to analog to digital converter. It produces an 8 bit sample. ALS also contains the SPI bus interface. The SPI is the ultimate point of contact back to the NI myRIO SPI input to either the port A or port B. Fig. 2:
  • 3. Automated Headlight Control using LabVIEW (J4R/ Volume 03 / Issue 12 / 011) All rights reserved by www.journal4research.org 55 Analog Converter Has Two Modes  Track mode  Hold mode It is initiated with the track mode. Chip select would be normally high; it was dropped too low to initiate a conversion cycle. This switches the converter to hold mode. Serial clock should be normally high. When the chip select is dropped the serial clock pulses are initiated. Serial data out is in the high impedance state. As soon as the chip select is dropped serial data becomes active. The first data bit generated by the serial data out is the most significant bit. After the 8th data bit is clocked out, the converter switches back to its track mode. The chip select will be made high to prepare the next conversion cycle. III. PULSE WIDTH MODULATION Pulse Width Modulation (PWM) Signal is an analog signal generated using a digital source. For varying the light intensity, Pulse Width Modulation (PWM) seems to constitute the most effective means to accurately control the illumination. In PWM, the brightness is controlled by square pulse modulation of the driving current and by adjusting the duty cycle of the pulse train. The behavior of the pulse width modulation is based on two components:  Duty Cycle  Frequency The duty cycle describes the amount of time the signal is in a high (ON) state as a percentage of the total time of it takes to complete one cycle. The frequency determines how fast the PWM completes a cycle (i.e. 1000 Hz would be 1000 cycles per second), and therefore how fast it switches between high and low states. Fig. 3: 25% Duty Cycle By cycling a digital signal OFF and ON at a fast enough rate, and with a certain duty cycle, the output will appear to behave like a constant voltage analog signal when powering the devices. IV. HEADLIGHT CONTROL Ambient Light Sensor detects the surrounding brightness. ALS is connected to the SPI bus on the connector B. SPI bus can be connected to connector A or connector B. The connector B also supplies 3.3 v to ALS. The conversion cycle begins by dropping the Chip Select (CS) value. Digital output block is set to 0 by giving a false constant so that the chip select is dropped to the low value. The SPI express VI block reads every single frame. The frame length needed is 16 bits. The non-default values, clock phase and clock polarity are need to be selected. The output of the express VI is an array of 16 bit unsigned integers. The data direction is that the Most Significant Bit (MSB) first. So by using the index array the individual values are pulled off. The extraneous bits can be removed using the logical shift to the right. The values are converted to unsigned 8 bit integers. Then the values are displayed in the front panel. And the conversion cycle can be completed by switching the chip select to a high. The sensor values are given into different cases of the case structure and for the different sensor values, PWM signals are generated and the headlight of the vehicle is controlled according to the surrounding brightness.
  • 4. Automated Headlight Control using LabVIEW (J4R/ Volume 03 / Issue 12 / 011) All rights reserved by www.journal4research.org 56 Fig. 4: The digital output 1 changes the chip select to low to initiate the conversion cycle of the analog converter to switch it to hold mode from track mode. The SPI express VI counts a single frame and updates it to the application it is being used. The digital output 2 switches the chip select back to track mode. The index array function reads the 16 bit information from the SPI express VI. The 16 bit value is right shifted by 5 units and is converted to 8 bit value. The PWM are used to update the light intensity as specified in Pulse Width Modulation. A case structure is used to vary the duty cycle with respect to the 8 bit value. Fig. 5: V. RESULT The sensor was tested at different ambient conditions and its performance is evaluated. The sequences were acquired and the PWM signal is generated accordingly. For the variations in the ambient light intensity the headlight intensity of the vehicle is varied. It will be helpful for the driver to automatically control the headlight intensity whenever it is necessary. Figure 6(a), Figure 6(b), Figure 6(c) represents the headlight of the vehicle under different environmental brightness. Fig. 6(a): When the Surrounding is Dark, then the Headlight will glow in its full Brightness.
  • 5. Automated Headlight Control using LabVIEW (J4R/ Volume 03 / Issue 12 / 011) All rights reserved by www.journal4research.org 57 Fig. 6(b): In this Condition, Ambient Brightness is neither too dark nor too bright. So the Headlight will Glow with Medium Intensity. Figure 6(c): When the Surrounding is Bright Enough to Drive the Car the Headlights Are Turned off Automatically. VI. CONCLUSION The automated headlight control system is focused upon building a comfortable driving experience for the driver and a safe travel experience for the passengers. We have achieved it through varying the headlight intensity corresponding to the environmental light intensity. This is useful to drivers who don’t concentrate over the headlight intensity. The safety is enhanced at the same time when the battery power consumption is also optimized. This can be most efficient during night times and in regions with varying light intensity. On a larger scale this can yield a greater efficiency when interfaced through IOT. REFERENCES [1] Sungmin Eum ,Ho Gi Jung,”Enhancing Light Blob Detection for Intelligent Headlight Control Using Lane Detection”, IEEE Transactions on Intelligent Transportation Systems(Volume: 14, Issue: 2, June 2013 ) 09 January 2013 [2] Y.-L. Chen, B.-F. Wu, H.-Y. Huang, and C.-J. Fan, “A real-time vision system for nighttime vehicle detection and traffic surveillance”, IEEE Trans. Ind. Electron., vol. 58, no. 5, pp. 2030–2044, May 2011. [3] P. F. Alcantarilla, L. M. Bergasa, P. Jiménez, I. Parra, D. F. Llorca, M. Sotelo, and S. Mayoral, “Automatic light beam controller for driver assistance” Mach. Vis. Appl., vol. 22, no. 5, pp. 819–835, Sep. 2011. [4] Ying Li Norman Haas Sharath Pankanti, ”Intelligent headlight control using learning-based approaches” Intelligent Vehicles Symposium (IV), 2011 IEEE,05 July 2011 [5] “AMBIENT LIGHT SENSOR” https://www.ni.com [6] C. Schadel and D. Falb, “SmartBeam–A high-beam assist,” Proc. Of the 7th International Symposium on Automotive Lighting, Darmstadt, Germany, 2007.