Agricultural Surveillance Simulator
ESP32-CAM • 3D Digital Twin • AWS Graviton
Standby · t=0.0s Backend: Checking...
OpenCV 5 DNN • RF-DETR
Target & Hardware
Wild Animal Species (17 Classes) 3D RIGGED
Panthera pardus orientalis: Articulated 3D feline rig with procedural rosette pelt, stalking gait & reflective tapetum eyes.
Timeline Progression Guide
• t = 0.0s to 1.0s: Animal is outside PIR zone ($d > 8\text{m}$). Camera & light are OFF (Sleep).
• t = 1.1s: Animal crosses into PIR zone ($d = 7.7\text{m} \le 8\text{m}$) → Light switches ON → Camera wakes up!
• t = 1.2s to 4.5s: Camera streams frames → Backend runs 3-layer servo math → Gimbal follows animal.
• t ≥ 4.5s: Deterrent sound fires → Animal flees crop area.
Gimbal & Actuators
Pan Servo (GPIO 12) 0.0° to 180.0° (90° Center)
Tilt Servo (GPIO 14) 0.0° to 180.0° (90° Level)
Slew Rate Limit 280.0°/sec
Deadzone Window 20.0 px (Hold)
12V Spotlight Relay (GPIO 15) OPEN (STANDBY)
DFPlayer Audio (GPIO 16/17) STANDBY
Inference Service
3D Farm Field & Hardware Assembly
PIR Standby · Camera Sleeping
ESP32-CAM Sensor (640×480) IDLE
Optical State: SLEEP (STANDBY)
Target Offset Error: ΔX: 0px, ΔY: 0px
In-Memory State & Pipeline
Backend CameraState (In-Memory) state.py
phase Phase.sweeping
frames_without_detection 0
active_action Action.none
action_frames_remaining 0
sweep_step 0
prev_bbox_center None
prev_frame_ts 0.000
last_pan_absolute 0.00°
last_tilt_absolute 0.00°
Loading state...
Outgoing ESP32-CAM Packet
Transmission State SLEEP (NO PACKET)
Pan Angle At Capture 0.00°
Tilt Angle At Capture 0.00°
PIR Hardware Trigger CLEAR
RF-DETR Detection & Servo Math
Detected Class None
Confidence —
Layer 1: Deadzone (20px) Holding
Layer 2: Velocity Comp ΔX: 0px, ΔY: 0px
Layer 3: Absolute Target Pan: 0.0°, Tilt: 0.0°
⚙️ Physical Motor Kinematics
Physical Pan Angle 0.00°
Physical Tilt Angle 0.00°
Remaining Slew Lag 0.00°
Motor Slew Status HOLDING
0.00s
Frame #0 | Step Time
t=0.0s (Outside PIR) ▲ t=1.1s (PIR Wake) t=5.0s (Deterrent Bursts) t=10.0s (End)