Power controller

Version 11.1 by Mathias Larsen on 2026/05/25 15:47

 

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 

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)
8PA0Analog signal: Current 6 Supply 24V resserve
9PA1Analog signal: Current 7 Supply 24V resserve
10PA2Analog signal: Current 5 Supply sensor card
11PA3Analog signal: Current 4 Supply front 
12PA4Analog signal: Current 3 Supply accumulator
13PA5Analog signal: Current 2 Supply fans
14PA6Digital output LED 9
15PA7Digital output LED 2
16PB0Analog signal Current 8 Supply buzzer, brake light 
17PB1PWM: enable Fan 1
18PB2Input: V-sense
19VSSAVoltage source: Ground
20VREFVoltage reference (Internal voltage refferance)
21VDDAVoltage source: Power (+3V3)
22PB10Digital output: LED 8
23VSSVoltage source: Ground
24VDDVoltage source: Power (+3V3)
25PB11Current 1 Internal components 
26PB12Current 9 Supply 12 V Pumps inverter and datalogger  
29PB15PWM: enable fan 2
30PA8Digital output Enable buzzeer
31PA9Digital output Enable brake light
32PA10Input ASMS signal
33PA11CAN bus RXD
34PA12CAN bus TXD
35VSSVoltage source: Ground
36VDDVoltage source: Power (+3V3)
37PA13SWDIO
38PA14SWCLK
40PB3Digital output: LED 3
41PB4Digital output: LED 4
42PB5Digital output: LED 5
43PB6Digital output: Enable Pump 1
44PB7Digital output: Enable Pump 2
45PB8Digital output: LED 6
46PB9LED 7 
47VSSVoltage source: Ground
48VDDVoltage source: Power (+3V3)