-
Notifications
You must be signed in to change notification settings - Fork 57
STM32F4 Discovery
- Power: Mini USB [1]
- MCU: STM32F407VG
- DIN MIDI: Yes [2]
- LED indicators: Yes
- Digital inputs: 18
- Digital outputs: 16
- Analog inputs: 7
- Schematic: Link
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.
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.
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Signal | Display | Pin |
---|---|---|
Vcc | Vcc | +5V |
GND | GND | GND |
SDA | SDA | PC9 |
SCL | SCL | PA8 |
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 |
Screen | Pin |
---|---|
Vcc | +5V* |
GND | GND |
Rx | PB10 |
Tx | PB11 |
Hardware
- Supported microcontrollers
- Supported components
- Pinouts for supported boards
- Recommended components and where to get them
- LED indicators
Configuration and usage
Advanced