🔥 Fire Detected!
Immediate attention required
Bus Voltage
--
VNormal
Current
--
mANormal
Power
--
mW--
Temperature
--
°CNormal
Alarm Status
All systems normal
Performance Metrics
Voltage Over Time
Current Over Time
Power Over Time
Temperature Over Time
How Performance Metrics Work
Battery Percentage (SOC)
Formula:
SOC = ((Current Voltage - Min Voltage) / (Max Voltage - Min Voltage)) × 100%
- • Min Voltage: From settings (default: 6.0V)
- • Max Voltage: From settings (default: 8.4V)
- • Current Voltage: Measured from INA219 sensor
- • Result is clamped between 0% and 100%
Example:
If voltage = 7.2V, min = 6.0V, max = 8.4V
SOC = ((7.2 - 6.0) / (8.4 - 6.0)) × 100 = 50%
Remaining Runtime Calculation
Step-by-step calculation:
Step 1: Remaining Battery Capacity
Remaining Capacity (mAh) = SOC% × Battery Capacity (2000 mAh)
Step 2: Calculate Time Remaining
Time (hours) = Remaining Capacity (mAh) / Current Draw (mA)
Time (minutes) = Time (hours) × 60
Step 3: Calculate Distance per Minute
Wheel Circumference = π × 70mm = 0.2199 m
Distance/min = 200 RPM × 0.2199 m = 43.98 m/min
Step 4: Calculate Remaining Distance
Remaining Distance = Time (minutes) × 43.98 m/min
Example:
If SOC = 50%, Battery = 2000mAh, Current = 1000mA
Remaining = 1000mAh → 1 hour → 60 min → 2639 m (2.64 km)
⚙️ Fixed Parameters:
- • Max RPM: 200 RPM (fixed)
- • Wheel Diameter: 70mm (fixed)
- • Wheel Circumference: π × 70mm = 0.2199 m
- • Distance per Minute: 200 RPM × 0.2199 m = 43.98 m/min
- • Battery Capacity: 2000 mAh (fixed)
- • Min/Max Voltage: From settings (default: 6.0V - 8.4V)
Note: Runtime calculation assumes motor runs at maximum RPM (200 RPM) continuously. Actual runtime may vary based on motor load and operating conditions.