Smart Camera ESP32
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
constants.h
1#pragma once
2
3#define BAUDRATE 115200
4
5// --- Joystick Config ---
6// NOTE: Using ADC pins that don't conflict with camera data lines
7#define JOYSTICK_PIN_X 32 // ADC - safe
8#define JOYSTICK_PIN_Y 33 // ADC - safe
9#define JOYSTICK_PIN_Z 14 // GPIO14 - safe digital pin
10
11// --- Servo Config ---
12#define SERVO_PIN 15
13
14// --- Stepper Config ---
15// NOTE: Using GPIO pins that don't conflict with camera bus (Y2-Y9, XCLK, PCLK, VSYNC, HREF, SIOD, SIOC)
16// Safe available pins: 0, 1, 3, 8, 9, 10, 11, 14, 16, 17 (avoid 2, 12 - strapping pins)
17#define STEPPER_NUMBER_OF_STEPS 2048
18#define STEPPER_PIN1 13 // OK
19#define STEPPER_PIN2 33 // OK
20#define STEPPER_PIN3 16 // Safe GPIO16
21#define STEPPER_PIN4 17 // Safe GPIO17