Power controller

Version 7.1 by Mathias Larsen on 2026/05/25 11:55

 

Microcontroller Pinout

The power controller uses a microcontroller to control the pumps, fans, buzzer, and brake light. It also features current monitoring and LED indicators. The Microcontroller used in this system is STM32G431CBT6 D 

Physical pinElectrical pin

Description

1VBATPower source from a backup battery if a RTC would be used (Connected to +3V3 in this case)
5OSC_INClock input (8MHz oscillator)
7NRSTNegative reset which can be connected to a button (Connected to +3V3)
8PA0Current 6 Supply 24V resserve
9PA1Current 7 Supply 24V resserve
10PA2Current 5 Supply sensor card
11PA3Current 4 Supply front 
12PA4Current 3 Supply accumulator
13PA5Current 2 Supply fans
14PA6LED 9
15PA7LED 2
16PB0Current 8 Supply buzzer, brake light 
17PB1PWM enable Fan 1
18PB2V-sense
19VSSAVoltage source: Ground
20VREFVoltage reference (connected to +3V3)??
21VDDAVoltage source: Power (+3V3)
22PB10LED 8
23VSSVoltage source: Ground
24VDDVoltage source: Power (+3V3)
25PB11Current 1 Internal components 
26PB12Current 9 Supply 12 V Pumps inverter and datalogger  
29PB15PWM fan
30PA8Enable buzzeer
31PA9Enable brake light
32PA10ASMS signal
33PA11CAN bus RXD
34PA12CAN bus TXD
35VSSVoltage source: Ground
36VDDVoltage source: Power (+3V3)
37PA13SWDIO
38PA14SWCLK
40PB3LED 3
41PB4LED 4
42PB5LED 5
43PB6Enable Pump 1
44PB7Enable Pump 2
45PB8LED 6
46PB9LED 7 
47VSSVoltage source: Ground
48VDDVoltage source: Power (+3V3)