Presented By
Nithiphat Leksingto
6602013620105
Tawatchai Chanprakhon
6602013620083
Topic
Background and Rationale of the Project
The Objective of the Project
overview of project
Schematic Diagram of the Project
Equipment
parts and assembly
Window UI
Program Operation
Test Table
Background And Rationale Of The Project
The project was inspired by the current national security situation. The developers recognized the importance of automated defense systems and therefore developed the concept of a Sentry Gun as a prototype for learning and demonstrating the operation of detection and automatic response systems.
THE OBJECTIVE OF PROJECT
The system can detect the target’s position (displayed as “Target” on BLYNK)
Control the gun’s rotation direction (using the BLYNK slide bar).
Can switch to automatic control mode (by pressing a button in BLYNK)
Able to push shot fire button
LED show state when chang THE mode on board and BLYNK
When detect the target LED will show on and off when non detect the target
LCD show AREA CLEAR when non detect the target
OVERVIEW OF PROJECT
Figure 1. Working process overall of project
SCHEMATIC DIAGRAM OF THE PROJECT
Figure 2. The schematic overall of project that use
EQUIPMENT
Servo 35 kg.
ESP32 38 pin
Webcam
Encoder
L298N
DC motor 3-6 V
PARTS AND ASSEMBLY
Figure 3. Drawing Part
WINDOW UI
Figure 4. Window UI
1.LCD Show Status
(show when detect the target and show the area clear when non detect)
2.LED Detection
(Show when detect the target bolt in "blynk" and board)
3.Mode Button
(Switch the mode of sentry gun auto or manual)
4.Rotational Gauge Angle
(Read value from encoder use to find the angle)
5.Fire Button
(Control the servo to trigger the gun)
6.Slide Bar Angle
(Select the angle want to rotate in manual mode)
7.LED Status Mode
(show when select with out AUTO mode)
PROGRAM OPERATION
Figure 5. Flowchart
Operation Code File Link
Explain
Flowchart will show operation of system First of all select the mode of system if you select the manual mode BLYNK will be ready to control by user read and send by BLYNK to esp32.
The second mode is AUTO if user select the auto mode system will use camera for detect the person in area if detect the person will show to lcd and send signal to servo motor trigger the gun will loop when detect the person and use PID control but the value of PID is not good if non detect python will send text to LCD "Area Clear"
TEST TABLE
Figure 6. Measure with projector
Figure 7. Find Error
YOUTUBE