-
Notifications
You must be signed in to change notification settings - Fork 66
STM32F411 Black Pill

- OpenDeck target name:
blackpill411 - Power: USB C
- MCU: STM32F411CE
- MIDI: USB, DIN
- OSC: No
- Traffic indicators: 2
- Digital inputs: 8
- Outputs: 8 (PWM / level control)
- Analog inputs: 4
- Board docs: STM32F411 Black Pill
- Buy links:
Pinout to use as an reference to pins in later sections:

| Switch # | Pin 1 | Pin 2 |
|---|---|---|
| 0 | PA0 | GND |
| 1 | PB0 | GND |
| 2 | PB15 | GND |
| 3 | PB14 | GND |
| 4 | PB13 | GND |
| 5 | PB12 | GND |
| 6 | PC14 | GND |
| 7 | PC15 | GND |
| Switch # | Pin 1 | Pin 1 | Pin 2 |
|---|---|---|---|
| 8 | PA1 | GND with 10k resistor | 3V |
| 9 | PA2 | GND with 10k resistor | 3V |
| 10 | PA3 | GND with 10k resistor | 3V |
| 11 | PB1 | GND with 10k resistor | 3V |
| Encoder # | Pin 1 | Pin 2 | Pin 3 |
|---|---|---|---|
| 0 | PA0 | GND | PB0 |
| 1 | PB15 | GND | PB14 |
| 2 | PB13 | GND | PB12 |
| 3 | PC14 | GND | PC15 |
| Potentiometer # | Pin 1 | Pin 2 | Pin 3 |
|---|---|---|---|
| 0 | 3V | PA1 | GND |
| 1 | 3V | PA2 | GND |
| 2 | 3V | PA3 | GND |
| 3 | 3V | PB1 | 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 | PB1 | GND with 1k resistor |
Note: current-limiting resistors for LEDs are required in order to avoid damage to the board.
| Output # | Anode | Cathode |
|---|---|---|
| 0 | PA8 | GND |
| 1 | PA15 | GND |
| 2 | PB3 | GND |
| 3 | PB4 | GND |
| 4 | PB5 | GND |
| 5 | PB6 | GND |
| 6 | PB7 | GND |
| 7 | PB10 | GND |
| Indicator | LED |
|---|---|
| USB input | PC13 |
| USB output | PC13 |
| DIN input | PC13 |
| DIN output | PC13 |
| Signal | Pin |
|---|---|
| Vcc | +3V |
| GND | GND |
| SDA | PB9 |
| SCL | PB8 |
This board doesn't have DIN MIDI connectors, so they have to be added to the board with the corresponding circuitry. Use this schematic:

| MIDI In | MIDI out |
|---|---|
| PA10 | PA9 |
| Screen | Pin |
|---|---|
| Vcc | 5V |
| GND | GND |
| Rx | PA9 |
| Tx | PA10 |
Hold OpenDeck switch 0 / PA0 low while resetting or powering the board to
enter the OpenDeck bootloader. This is the on-board user button.
To flash this board with the OpenDeck firmware, go to the OpenDeck configurator and follow the instructions.
OpenDeck supports only V3 and newer WeAct Black Pill variants where the
external SPI flash footprint is populated. Older variants are not supported by
the blackpill411 target.
DIN MIDI and touchscreen use the same UART pins on this board, so only one of them can be enabled at a time.
Hardware
- Supported microcontrollers
- Supported components
-
Supported boards
- Adafruit
- Arduino
- Generic
- LILYGO
- Nordic Semiconductor
- Olimex
- PJRC
- Raspberry Pi
- Shantea Controls
- Silicognition
- STMicroelectronics
- Waveshare
- WIZnet
- Recommended components and where to get them
- LED indicators
Configuration and usage
- Configurable features
- Output control
- OSC
- Presets
- Timing and latency
- Configuring touchscreens
- Firmware update via bootloader
Advanced