my undergraduate graduation project
Alarm System for Intrusion Detection Based on ToF LiDAR
I used self-designed PCB, but you can make some modify to run on your projects.
- ESP32-WROOM-32E
- SKP20 ToF LiDAR * 2
- 2.8 inch ST7789V TFT
- rotary encoder
- NPN MOSFET with buzzer and LED
- IP5108 Power SoC
- Li-ion battery (2000-5000 mAh)
- A switch to toggle the power connection
- 
use git clone this repo 
- 
download vscode and platformio extension 
- 
if you only want to have a look on the lvgl ui, just open the lvgl_simulatorfolder (only verified on macOS)
- 
if you want the firmware run on ESP32 open WirelessAlarmSystemfolder- 
wait for platformio download dependent librarys complete 
- 
use git restore the files here ( TFT_eSPIandlvgl)
- 
for upload firmware via serial your ESP32 board need auto program circuit 
 
- 
- scan the qrcode on TFT screen connect to the ESP32 AP or use password 12345678
- waiting for the captive portal response or just visiting 192.168.4.1
- setting up ESP32 Wi-Fi connection, MQTT broker domain(IP) and port
- All the settings are saved on LittleFS filesystem, named config.json, you don't need to set up again on next boot
- There is a web page for devices management hosting on cloud server, but the code I wrote was so bad, so I didn't open soure it 😢 (the mqtt broker uses emqx)