Skip to content

STM32F4 Discovery

paradajz edited this page Oct 31, 2022 · 2 revisions

Quick overview

  • Power: Mini USB [1]
  • MCU: STM32F407VG
  • DIN MIDI: Yes [2]
  • LED indicators: Yes
  • Digital inputs: 18
  • Digital outputs: 16
  • Analog inputs: 7
  • Schematic: Link

Notes

1

Normally, this board is powered via mini USB connector present on board, while micro USB connector is used only for USB communication. To use only single micro USB for both power and USB communication, PA9 pin should be connected to any 5V pin on board only if OpenDeck firmware is loaded on the board first to avoid damaging the board.

2

This board doesn't have DIN MIDI connectors and required additional components so those have to be added to board in order to be used. The following schematic should be used:

Pinout is listed in DIN MIDI section.

Connections

Buttons

Button # Pin 1 Pin 2
0 PC5 GND
1 PE7 GND
2 PE9 GND
3 PE11 GND
4 PE13 GND
5 PE15 GND
6 PD9 GND
7 PD11 GND
8 PE8 GND
9 PE10 GND
10 PE12 GND
11 PE14 GND
12 PB12 GND
13 PD10 GND
14 PC8 GND
15 PC6 GND
16 PC11 GND
17 PA15 GND

Analog inputs

Button # Pin 1 Pin 1 Pin 2
18 PA1 GND with 10k resistor 3V
19 PA2 GND with 10k resistor 3V
20 PA3 GND with 10k resistor 3V
21 PB0 GND with 10k resistor 3V
22 PB1 GND with 10k resistor 3V
23 PC1 GND with 10k resistor 3V
24 PC2 GND with 10k resistor 3V
25 PC4 GND with 10k resistor 3V

Rotary encoders

Encoder # Pin 1 Pin 2 Pin 3
0 PC5 GND PE7
1 PE9 GND PE11
2 PE13 GND PE15
3 PD9 GND PD9
4 PD11 GND PD11
5 PE8 GND PE10
6 PE12 GND PD10
7 PC8 GND PC6
8 PC11 GND PA15

Potentiometers

Potentiometer # Pin 1 Pin 2 Pin 3
0 3V PA2 GND
1 3V PA3 GND
2 3V PB0 GND
3 3V PB1 GND
4 3V PC1 GND
5 3V PC2 GND
6 3V PC4 GND

FSRs

FSR # Pin 1 Pin 2 Pin 2
0 3V PA1 GND with 1k resistor
1 3V PA2 GND with 1k resistor
2 3V PA3 GND with 1k resistor
3 3V PB0 GND with 1k resistor
4 3V PB1 GND with 1k resistor
5 3V PC1 GND with 1k resistor
6 3V PC2 GND with 1k resistor
7 3V PC4 GND with 1k resistor

Single-color LEDs

Note: current-limiting resistors are required in order to avoid damage to the board.

LED # Anode Cathode
0 PE6 GND
1 PE4 GND
2 PE2 GND
3 PE0 GND
4 PB8 GND
5 PB4 GND
6 PD7 GND
7 PD3 GND
8 PD1 GND
9 PC13 GND
10 PE5 GND
11 PB7 GND
12 PB5 GND
13 PD6 GND
14 PD2 GND
15 PD0 GND

RGB LEDs

Note: current-limiting resistors are required in order to avoid damage to the board.

RGB LED # Anode (Red) Anode (Green) Anode (Blue) Cathode
0 PE6 PE4 PE2 GND
1 PE0 PB8 PB4 GND
2 PD7 PD3 PD1 GND
3 PC13 PE5 PB7 GND
4 PB5 PD6 PD2 GND

Displays

Signal Display Pin
Vcc Vcc +5V
GND GND GND
SDA SDA PC9
SCL SCL PA8

DIN MIDI

This board doesn't have DIN MIDI connectors so they have to be added to the board with corresponding circuitry. Schematic is available here.

MIDI In MIDI out
PB11 PB10

Touchscreen

Screen Pin
Vcc +5V*
GND GND
Rx PB10
Tx PB11
Clone this wiki locally