With this source code, you can make a DashCam to record the video during driving with an “ESP32-CAM” module. 225p, 360p, 450p and 720p video stream up to 50fps
Price:
Other projects from this group
This project is an “ESP32 WiFi DashCam (HD)” firmware (arduino source code - .ino files) with an IP-based web application.
The DashCam project uses the “AI Thinker ESP32-CAM” module which has a 2MP Camera (OV2640), 10 I/O pins, an on-chip LED, an on-chip flash light and one MicroSD slot to store the videos. With its tiny sized camera and 240MHz CPU is able to provide a fair quality images and video frames.
The source code contains the following files:
First open one of the files with Arduino program, then set the settings as the following image (Board and CPU Frequency).
Then turn on the ESP32 module in the “download mode” (GPIO0àGND) and upload the program with using an USB2Serial module.
The
“Ai Thinker ESP32-Cam” module is a prepared device. You only need a
standard 5V power source (e.g. a USB cable) and a record switch.
Also you can stick a heat sink to the module’s regulator. It’s not necessary but recommended.
The
schematic is so simple. All you need is a USB cable (or 12v to 5v
regulator) as the power source, a two states (on/off) 3-pin record
switch is needed to connect to the 3.3V, GND and U0R (Center pin of the
switch with a 470 Ohm load resistor).
Then you can place it in a suitable place (e.g. somewhere behind of the center mirror).
When
the switch is on (connected to the GND), the recording is enabled and
WiFi is disabled and when the switch is off (connected to the 3.3v),
WiFi is enabled.
Plug the power and turn on the circuit and the module in “normal mode” with record switch in the off state.
Then the LED will blink once (in case of everything is ok). Then you’ll be able to see the module’s hot spot ssid via the WiFi networks in your PC or smart phone.
The default SSID is WiCardDashCam and the default password is 12345678. Connect and go to 192.168.4.1 with a PC, car multimedia or smart phone web browser (Chrome or Firefox).
The Web Application is divided to 4 menus. The menus can be selected by click on the menu button (%26nbsp;%26nbsp;%26nbsp;%26nbsp;%26nbsp;%26nbsp;%26nbsp;%26nbsp; ):
This is the default page and you can see the online video stream in this page.
A few seconds after loading the page, the module starts online streaming automatically.
By tap on the video image, the image will scale to full with and original size.
There are two buttons under the stream screen, with “CAPTURE”, the app will take and save a screenshot and with tap or click on the “LIGHT” button, the on-chip flash LED will turn on and off.
There’s a file manager menu in the application which shows the files in the root directory of the memory card. Each file can be downloaded by click on the download button.
The supported files (.jpg .jp4 .jp4 .wav .mp3) can be selected and played in the web application.
The .jp4 and .jp5 files can be exported as .avi file by click on the export button. You can open the .avi file with “BS Player”, “VLC”, “KM Player” or any other standard multimedia software. Also the files can be edited by standard video makers like “Video Match”.
You can remove any file by click on the remove button.
By
click on the play button (middle of the JP5 file image), the video will
be downloaded and played along with the audio and you can pause the
video by tap or click on the image.
The web application’s settings menu has been divided to 5 parts:
You can directly access to the settings menu with http://ip#settings link (e.g. 192.168.4.1#settings).
1.0
- Time lapse
- File manager
- AVI file export
- Flash light during recording
- Record signal input
- Motion Sensor
- Recoding videos
- Playing videos and showing images
- Camera configuration
- Internal pages secure link
- Show MAC and IP in config page
- Video stream
- Saving the images
- Flash LED toggle on/off
- Set module hotspot and modem’s ssid and password
- Automatically connection to the modem
- Hidden hotspot button
- Disable hotspot button