Please enable JavaScript.
Coggle requires JavaScript to display documents.
Control & Processing Subsystem - Coggle Diagram
Control & Processing Subsystem
User Requirements
Accurately interpret the user input (monetary value or SOC%) and trigger correct behaviour
Store and track session state (e.g. current energy delivered vs purchased)
React to unexpected situations (e.g. tamper detection)
Be able to support software updates or logic improvements in future
Respond reliably with low latency
Functional Requirements
Interpret user input from the User Interface Subsystem
Coordinate with the Energy Monitoring Subsystem to track energy delivered
Enable or disable the Charge Control Subsystem relay based on session logic
Send total calculated cost to the Payment Communication Subsystem
Monitor tamper security input and trigger alarms or lockout when needed
Log session activity for audit/debug purposes
Implement logic for
Charge session start/stop
Timer or energy thresholds
SOC/Wh conversion (linear SOC approximation using user-provided battery information)
Communicate with peripherals via GPIO, UART, I2C or SPI
Handle soft and hard resets, and fail-safe states
Provide development and debugging interfaces
Handle all control logic in real time
Design Specifications
Clock Speed
Greater than or equal to 160 MHz
Memory
520 Kb SRAM
Greater than 4 Mb flash memory
I/O interfaces
UART
SPI
I2C
Real-time capability
FreeRTOS
Task scheduler
Power supply
3.3/5V regulated
Data logging
Onboard flash
External SD card
Firmware updates
WiFi or USB
Security features
Watchdog timer
Fail-safe reset
Operating temperature
-10°C to 60°C
Latency
Less than 50 ms
Potential Components
MCU
ESP32-WROOM-32
ATmega328P
STM32
Raspberry Pi
Software
C++
Java
Python
SSH
Javascript
CSS
Storage
SD card
Cloud server
Web Server