Update README.md

This commit is contained in:
Dave Williams | DitroniX | G8PUO
2026-06-18 16:12:49 +01:00
committed by GitHub
parent f8cd580979
commit fcd50dd2bc
+26 -68
View File
@@ -75,15 +75,10 @@ The firmware performs:
The ESP32-C5 is the main controller and performs: The ESP32-C5 is the main controller and performs:
- Input monitoring - Input monitoring
- Motor control logic - Motor control logic
- Fault detection - Fault detection
- I²C communications - I²C communications
- Sensor monitoring - Sensor monitoring
- ESPHome integration - ESPHome integration
### TCA6408A I/O Expander (I²C Address 0x21) ### TCA6408A I/O Expander (I²C Address 0x21)
@@ -132,35 +127,21 @@ The firmware configures all TCA6408A pins as outputs during boot.
## Motor Control Logic ## Motor Control Logic
###Motor Inputs ### Motor Inputs
#### Motor 1 #### Motor 1
GPIO | GPIO |Function |
|--|--|
Function | GPIO8 | Motor 1 Extend|
| GPIO9 | Motor 1 Retract|
GPIO8
Motor 1 Extend
GPIO9
Motor 1 Retract
#### Motor 2 #### Motor 2
GPIO | GPIO |Function |
|--|--|
Function | GPIO14| Motor 2 Extend|
| GPIO13| Motor 2 Retract|
GPIO14
Motor 2 Extend
GPIO13
Motor 2 Retract
### Enable Logic ### Enable Logic
@@ -168,47 +149,30 @@ The motor driver enable signals are always controlled together.
When any motor command is active: When any motor command is active:
EN1 = HIGH - EN1 = HIGH
- EN2 = HIGH
EN2 = HIGH
When no motor command is active: When no motor command is active:
EN1 = LOW - EN1 = LOW
- EN2 = LOW
EN2 = LOW
This ensures both motor driver channels are enabled and disabled simultaneously. This ensures both motor driver channels are enabled and disabled simultaneously.
### Direction Control ### Direction Control
#### Motor 1 #### Motor 1
| Input |Output|
Input |--|--|
| IN_1A| Motor 1 Extend|
Output | IN_1B| Motor 1 Retract|
IN_1A
Extend
IN_1B
Retract
#### Motor 2 #### Motor 2
Input | Input |Output|
|--|--|
Output | IN_2A| Motor 1 Extend|
| IN_2B| Motor 1 Retract|
IN_2A
Extend
IN_2B
Retract
Outputs are updated continuously by the motor supervisor task. Outputs are updated continuously by the motor supervisor task.
@@ -260,17 +224,11 @@ GPIO4
#### Limits #### Limits
Condition | Condition|Action|
|--|--|
| Fault| <10 V or >48 V|
Action **Fault**
<10 V
Fault
>48 V
Fault
On fault: On fault:
@@ -284,7 +242,7 @@ On fault:
### TCA6408A LED ### TCA6408A LED
Bit 7 of the TCA6408A is used as the fault indicator. Bit 7 of the TCA6408A is used as the fault LED indicator.
#### Normal Operation #### Normal Operation