Difference between revisions of "BLACK-PILL-HUB"
Jump to navigation
Jump to search
Blwikiadmin (talk | contribs) |
Blwikiadmin (talk | contribs) |
||
Line 12: | Line 12: | ||
* GVS connections for Black Pill pins | * GVS connections for Black Pill pins | ||
* Reset switch | * Reset switch | ||
+ | * Power options | ||
=== Black Pill Module === | === Black Pill Module === |
Revision as of 16:50, 29 January 2021
Contents
Features
- Carrier for the STM32 Black Pill Board
- I2C Hub - PCA9544A
- 4-channel
- Independent 3.3V/5V power for each channel
- Separate interrupts for each channel
- GVS connections for Black Pill pins
- Reset switch
- Power options
Black Pill Module
Not pin compatible with Blue Pill due to power pin locations
Connectors
J1 - 5V power
- DC jack
- 5V
- Center positive
J4 - 5V Power
- 5mm terminal block
J7 - I2C
- The I2C interface that goes to the I2C hub part
- SCL (PB6)
- SDA (PB7)
- 3.3V
- GND
P1 - 5V
- 2x4 header with 5V from H2 (Rev 4 card)
P2 - Vbattery
- Battery power to the Black Pill board
- GND
- Vbat
P3 - FTDI Module
- Cheap FT232 module pinout
P4, P5, P6, P7 - I2C Interfaces #0-#3
- INT*
- SCL
- SDA
- VCC
- GND
P8 - SPI
- PA6 (MISO)
- 3.3V
- PA5 (SCK)
- PA7 (MOSI)
- RES
- GND
P11/P12 - GVS Connector
- Ground, Power, Signal pins
- Pin near Black pill is signal
- PC13
- PC14
- PC15
- N/C
- PA0
- PA1
- PA2
- PA3
- PA4
- PA5/SCK1
- PA6/MISO1
- PA7/MOSI1
- PB0
- PB1
- PB2
- PB10
P12/P13 - GVS Connector
- Ground, Power, Signal pins
- Pin near Black pill is signal
- GND
- PB9
- I2C_INT (PB8)
- I2C_SDA (PB7)
- I2C_SCL (PB6)
- PB5
- PB4
- PB3
- PA15
- PA12
- PA11
- RX
- TX
- PA8
- PB15
- PB14
- PB13
- PB12
Headers
H1 - 3.3V source select
- 1-2 = Power from 5V to 3.3V regulator
- 2-3 = Power from Black Pill board 3.3V regulator
H2 - 5V Power Source
- T-shaped header
- Up - Power 5V from FTDI 5V
- Down - Power 5V from Black Pill Hub USB power
- Left - Power 5V from DC Jack
H3, H4, H5, H6 - I2C Power
- Select the power to/from the (4) I2C interfaces
- Install in one of the two positions to power the external I2C interface from the Hub board
- Remove if power comes in from external I2C interface
- 3.3V
- 5V
H9 - Hub Chip Address
- Select the 3-bit (A0-A2) address of the PCA9544A I2C hub
- Remove for 1, install for 0
Switches
SW1 - Reset Switch
- Press to reset Black Pill board
SW2 - Switch on/off J1, J4 power source
Schematic
Software
Testing
- Arduino Based Test Station
- Issue with library
DFU Programming
- Steps from Programming|Program STM32 Black Pill (STM32F401 / F411) with Arduino IDE (Windows OS)
- Add the URL to Additional Board Manager URLs text box:
- Go to Tools > Board > Boards Manager
- Search for STM32, select latest version and click Install.
- Download and install STM32CubeProg from ST.com: [1]
- Start the STM32CubeProg
- From the Tools > Board > STM32 Board, select Generic STM32F4 series
- Select Tools > Board Part Number > BlackPill F411CE
- Under USB Support, select CDC (generic "Serial" supersede U(S)ART)
- Under Upload method, select SMT32CubeProgrammer(DFU)
- Use the onboard BOOT0 and NRST button to put the board into bootloader mode:
- press and hold the BOOT0 button
- press and release NRST (reset) button to power cycle the processor
- release BOOT0 button
- Upload sketch
Other Programming
- ST-LINK V2
- FLASHER-STM32 - STM32 Flash loader demonstrator (UM0462)
- From AN3155