Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Arduino uno automatic car head light on/off battery and temperature monitoring system

By EG Projects December 10, 2024

A simple diy project on how to monitor car battery, engine temperature and automatically control the headlights of car with arduino uno. I have pretty old vehicle, which does not have any fancy items/mechanics in it. So i decided to make this project and make my car look a little bit fancy by my self. I decided to add the functionally of automatically switching the head lights on and off depending on the visible light. I used an LDR(Light dependent resistor) for this project but i have plans to moving forward and using a standard lux(light intensity) sensor for controlling head lights of vehicel. I am also monitoring the engine temperature and battery voltage. 

Vehicle Temperature Monitoring with arduino and DHT11 Temperature sensor

For temperature monitoring of vehicle engine i used DHT11 temperature and humidity sensor. DHT11 is a 1-wire temperature sensor. DHT11 can measure from 0 degree centigrade to 50 degree centigrade. In my region the hot temperature ever recorded is 45 degree centigrade. So dht11 is pretty good for my diy project. The measured temperature is then displayed on a 16×2 character lcd. 

Car battery voltage monitoring with arduino

Car battery supplies 12 v at stationary mode, but when the vehicle is moving the voltage raises to 18 v maximum for charging the battery. Arduino adc(analog to digital converter) can measure max 5 v of. So to measure the car 12 v battery which can jump to 18 v during charging, i used a voltage divider circuit to bring the voltage down to 5 v range acceptable by the arduino adc. 

Car autonomous head light control with arduino uno

To switch the head lights of the car on and off automatically depending on the intensity of the visible light i used an ldr(light dependent resistor) to detect the light and for switching i used a small 3 v relay. When ever a dark spot is detected or the car is passing underneath a bridge the 3 v relay is energized and the head lights turns on. I used 3 v relay because i want the relay controlled directly by the arduino digital pins, i don’t want any middle driver circuit for the relay usually transistors and mosfets. Arduino digital pins can source 5 v at 40 mA and my 3 v relay consumes 25 mA so my 3 v relay can easily be controlled by the arduino digital pin. 

Inside circuitry of car monitoring and controlling system

Car head light control system with dht11 temperature sensor

Car head light control system with dht11 temperature sensor

light dependent resistor arduino module measuring daylight

light dependent resistor arduino module measuring daylight

The above circuit is what i made at end. I made the circuit on a vero board. I hope that the circuit make sense to you. On left side i have an ldr (Light dependent module). Ldr legs were too small and i need approximately 1 m in length, so i de-soldered the ldr make its legs 1 m long by connecting wires and wrapped around it a black surface plastic.

Whole of the circuit and arduino is powered by car battery. On the above vero board circuit i am dropping some voltage using a resistor and then supplying the rest to arduino. 3v relay supplies power to car head light relay which in turn switches on and off the head light. I did not used any external power supply. Only utilized car battery to control each and every thing.

Final end shape diy car automation project

Main diy car headlight control and temerature monitoring module

Main diy car headlight control and temerature monitoring module

Arduino Uno Circuit Connections for car automation using arduino

Arduino lcd shield occupies pins 4,5,6,7,8,9. Dht11 temperature and humidity sensor data output pin is connected to pin#11 of the arduino uno. To measure the battery voltage i used analog channel-1 of arduino uno. To measure the intensity of visible light i used analog channel-2 of arduino uno. To energize the relay digital pin#3 of arduino is used. 

Hurdles faced after operating of the circuit in real environment

When i installed the circuit in car and tested it all the things works well. But when i went on long 2 hour tour the module connecting wire to battery melts down. Actually what i did is i used a very thin wire for powering the circuit with car battery. So when car moves on long drive its battery voltage increased for charging. The wire could not hold the large power and wire starts heating and it melts down gradually.
Another error that i found is when we manually switch on the head lights and also the head lights are switched on by the arduino module. The module does not switches off. Its because the current founds a path to flow from the manual side in to the board. I eliminated this error by connecting a diode in series.                                               

Watch the Project Video Here…. Please give us your feed back on the project…. In case you have any queries please write them below in the comments section..

Project Files/Code

Filed Under: Arduino Projects, Microcontroller Projects

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe