Skip to content

An ESP32 based custom PCB that uses a light sensor and transmits via HTTP POST requests whether there is an accidentally open light in a car.

Notifications You must be signed in to change notification settings

upadhyaydhruv/wireless_carlight_transmitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wireless Car Light Sensor-Transmitter

Background

In the cold winter months, the door sensors in my car don't seem to work as well, and its very easy for the door light to be on, causing the battery to drain. Because of the tinted windows, this was hard to see a lot of the times. When this happened a few times over the course of a month, I got frustrated and decided to create an automated IoT based solution that would tell me when the door light was left open.

Implementation

I used an ESP32-WROOM SoC and an LTR329 Ambient Light sensor on a two layer PCB. The wireless communication capabilities of the ESP32 made it easy to send send the state of the car lights, so I can just see the status from a server running on my computer in the room.

I used I2C to develop a sensor driver for the ambient light sensor, and via WiFi, sent HTTP POST requests to validate my understanding of TCP and socket communication. The sensor driver operation and POST request transmission happened in parallel via FreeRTOS multithreading. The firmware was written in C via ESP-IDF.

Schematic

alt text

Images

The PCB is currently under assembly, will be updated accordingly

About

An ESP32 based custom PCB that uses a light sensor and transmits via HTTP POST requests whether there is an accidentally open light in a car.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published