- Implement MotorController class with PWM speed control (0-100%) - Add bidirectional control (forward/reverse) via LEDC PWM at 20kHz - Include optional current sensing and stall detection - Create responsive web UI with speed slider and direction buttons - Configure WiFi with static IP (10.81.2.185) - Use built-in WebServer library for ESP32 Arduino 3.x compatibility
15 lines
298 B
INI
15 lines
298 B
INI
; PlatformIO Project Configuration File
|
|
; ESP32 LOLIN32 Rev1 with BTS7960 Motor Driver
|
|
|
|
[env:lolin32]
|
|
platform = espressif32
|
|
board = lolin32
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
|
|
; No external libraries needed - using built-in WebServer
|
|
|
|
; Build flags
|
|
build_flags =
|
|
-D CORE_DEBUG_LEVEL=0
|