Wiki source code of Power controller

Version 6.2 by Mathias Larsen on 2026/05/25 10:42

Show last authors
1
2
3 == Microcontroller Pinout ==
4
5 |=Physical pin|=Electrical pin|=(((
6 Description
7 )))
8 |1|VBAT|Power source from a backup battery if a RTC would be used (Connected to +3V3 in this case)
9 |5|OSC_IN|Clock input (8MHz oscillator)
10 |7|NRST|Negative reset which can be connected to a button (Connected to +3V3)
11 |8|PA0|Current 6
12 |9|PA1|Current 7
13 |10|PA2|Current 5
14 |11|PA3|Current 4
15 |12|PA4|Current 3
16 |13|PA5|Current 2
17 |14|PA6|LED 9
18 |15|PA7|LED 2
19 |16|PB0|Current 8
20 |17|PB1|PWM enable Fan
21 |18|PB2|V-sense
22 |19|VSSA|Voltage source: Ground
23 |20|VREF|Voltage reference (connected to +3V3)??
24 |21|VDDA|Voltage source: Power (+3V3)
25 |22|PB10|LED 8
26 |23|VSS|Voltage source: Ground
27 |24|VDD|Voltage source: Power (+3V3)
28 |25|PB11|Current 1
29 |26|PB12|Current 9
30 |29|PB15|PWM fan
31 |30|PA8|Enable buzzeer
32 |31|PA9|Enable brake light
33 |32|PA10|ASMS signal
34 |33|PA11|CAN bus RXD
35 |34|PA12|CAN bus TXD
36 |35|VSS|Voltage source: Ground
37 |36|VDD|Voltage source: Power (+3V3)
38 |37|PA13|SWDIO
39 |38|PA14|SWCLK
40 |40|PB3|LED 3
41 |41|PB4|LED 4
42 |42|PB5|LED 5
43 |43|PB6|Enable Pump 1
44 |44|PB7|Enable Pump 2
45 |45|PB8|LED 6
46 |46|PB9|LED 7
47 |47|VSS|Voltage source: Ground
48 |48|VDD|Voltage source: Power (+3V3)
49
50