Update stall detection params and expand documentation

- Adjust stall current threshold to 4A and detection time to 2500ms
- Add comprehensive README with hardware specs, wiring diagrams
- Include current sensing circuit documentation and math
- Improve motor and webserver implementations
This commit is contained in:
devdesk
2026-02-05 16:59:47 +02:00
parent 6ccbc7faf5
commit e2fe9aa495
5 changed files with 203 additions and 25 deletions

View File

@@ -33,8 +33,8 @@
#define SENSE_RESISTOR 1000.0f // 1kΩ sense resistor (ohms)
#define ADC_MAX 4095.0f // 12-bit ADC max value
#define ADC_VREF 3.3f // ADC reference voltage
#define STALL_CURRENT_THRESHOLD 5.0f // Current (amps) that indicates stall
#define STALL_DETECT_TIME_MS 500 // Time to confirm stall (ms)
#define STALL_CURRENT_THRESHOLD 4.0f // Current (amps) that indicates stall
#define STALL_DETECT_TIME_MS 2500 // Time to confirm stall (ms) - accounts for startup inrush
// Web Server
#define HTTP_PORT 80