Difference between revisions of "BLACK-PILL-HUB"
Jump to navigation
Jump to search
Blwikiadmin (talk | contribs) (Created page with "File:BlACKPillHub-720px.jpg == Features == * Carrier for the STM32 BlACK Pill Board ** STM32F401/411 CPU * I2C Hub - [https://www.ti.com/lit/ds/symlink/pca9544...") |
Blwikiadmin (talk | contribs) |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[File: | + | [[File:Black-Pill-Board.png]] |
== Features == | == Features == | ||
− | * Carrier for the [[STM32|STM32 | + | * Carrier for the [[STM32|STM32 Black Pill Board]] |
** STM32F401/411 CPU | ** STM32F401/411 CPU | ||
+ | ** [https://www.aliexpress.com/item/4001098711269.html?spm=a2g0s.9042311.0.0.27424c4dqDjXsl AliExpress listing] | ||
* I2C Hub - [https://www.ti.com/lit/ds/symlink/pca9544a.pdf PCA9544A] | * I2C Hub - [https://www.ti.com/lit/ds/symlink/pca9544a.pdf PCA9544A] | ||
** 4-channel | ** 4-channel | ||
** Independent 3.3V/5V power for each channel | ** Independent 3.3V/5V power for each channel | ||
* Separate interrupts for each channel | * Separate interrupts for each channel | ||
− | * GVS connections for | + | * GVS connections for Black Pill pins |
* Reset switch | * Reset switch | ||
Line 45: | Line 46: | ||
=== P2 - Vbattery === | === P2 - Vbattery === | ||
− | * Battery power to the | + | * Battery power to the Black Pill board |
# GND | # GND | ||
# Vbat | # Vbat | ||
Line 57: | Line 58: | ||
# N/C | # N/C | ||
# VCC (to H8 pin 2) | # VCC (to H8 pin 2) | ||
− | # TX (to | + | # TX (to Black Pill RX) (PA10 pin on STM32) |
− | # RX (to | + | # RX (to Black Pill Tx) (PA9 pin on STM32) |
# RESET* | # RESET* | ||
Line 139: | Line 140: | ||
* 1-2 power from 5V to 3.3V regulator | * 1-2 power from 5V to 3.3V regulator | ||
− | * 2-3 Power from | + | * 2-3 Power from Black Pill board 3.3V regulator |
=== H2 - 5V Jumper (Rev X1-X3) === | === H2 - 5V Jumper (Rev X1-X3) === | ||
Line 148: | Line 149: | ||
* T-shaped header | * T-shaped header | ||
− | * Up - Power 5V from | + | * Up - Power 5V from Black Pill Hub USB power |
* Left - Power 5V from DC Jack | * Left - Power 5V from DC Jack | ||
* Down - Power 5V from FTDI 5V | * Down - Power 5V from FTDI 5V | ||
Line 161: | Line 162: | ||
# 5V | # 5V | ||
− | === H7 - 3.3V from | + | === H7 - 3.3V from Black Pill module 3.3V regulator === |
− | * Install = power on-board 3.3V circuitry from regulator on | + | * Install = power on-board 3.3V circuitry from regulator on Black Pill module |
** H8 should not be installed if H7 is installed | ** H8 should not be installed if H7 is installed | ||
Line 180: | Line 181: | ||
=== SW1 - Reset Switch === | === SW1 - Reset Switch === | ||
− | * Press to reset | + | * Press to reset Black Pill board |
=== SW2 - Switch on/off J1, J4 power source === | === SW2 - Switch on/off J1, J4 power source === | ||
Line 186: | Line 187: | ||
== Schematic == | == Schematic == | ||
− | * [ | + | * [http://land-boards.com/BLACK-PILL-HUB/BlackPillHub_Schematic-Rev1.pdf BLACK-PILL-HUB Schematic Rev 1] |
− | |||
− | == | + | == Software == |
− | * [https://github.com/ | + | * [https://github.com/SuperThunder/STM32F411CEU6-BlackPill-MicroPython-Examples STM32F411CEU6 MicroPython Examples] |
− | * [https:// | + | * [https://github.com/search?q=STM32F411 STM32F411 GitHub] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Testing == | == Testing == | ||
* [[Arduino Based Test Station]] | * [[Arduino Based Test Station]] | ||
− | |||
− | + | === Programming === | |
− | |||
+ | * [https://www.sgbotic.com/index.php?dispatch=pages.view&page_id=49 Programming] | ||
* ST-LINK V2 | * ST-LINK V2 | ||
* [https://www.st.com/en/development-tools/flasher-stm32.html FLASHER-STM32] - STM32 Flash loader demonstrator (UM0462) | * [https://www.st.com/en/development-tools/flasher-stm32.html FLASHER-STM32] - STM32 Flash loader demonstrator (UM0462) | ||
* From [https://www.st.com/content/ccc/resource/technical/document/application_note/51/5f/03/1e/bd/9b/45/be/CD00264342.pdf/files/CD00264342.pdf/jcr:content/translations/en.CD00264342.pdf AN3155] | * From [https://www.st.com/content/ccc/resource/technical/document/application_note/51/5f/03/1e/bd/9b/45/be/CD00264342.pdf/files/CD00264342.pdf/jcr:content/translations/en.CD00264342.pdf AN3155] | ||
[[File:SerialPropogramming (AN3155).PNG]] | [[File:SerialPropogramming (AN3155).PNG]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Assembly Sheet == | == Assembly Sheet == | ||
− | |||
− | |||
− |
Revision as of 23:51, 26 January 2021
Contents
Features
- Carrier for the STM32 Black Pill Board
- STM32F401/411 CPU
- AliExpress listing
- 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
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 connector (Rev X1-X3)
- To cable to FTDI wires swap pins 4 and 5 in cable
- FTDI card jumper has to be set to 3.3V since STM32 has 3.3V signal levels
- GND
- N/C
- VCC (to H8 pin 2)
- TX (to Black Pill RX) (PA10 pin on STM32)
- RX (to Black Pill Tx) (PA9 pin on STM32)
- RESET*
P3 - FTDI Module (Rev 4 or higher)
- 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
- n/c
- PC13
- PC14
- PC15
- PA0
- PA1
- PA2
- PA3
- PA4
- PA5/SCK1
- PA6/MISO1
- PA7/MOSI1
- PB0
- PB1
- PB10
- PB11
P12/P13 - GVS Connector
- Ground, Power, Signal pins
- n/c
- PB9
- I2C_INT (PB8)
- I2C_SDA1 (PB7)
- I2C_SCL (PB6)
- PB5
- PB4
- PB3
- PA15
- PA12
- PA11
- RX
- TX
- PA8
- PB15
- PB14
- PB13
- PB12
Headers
H1 - 3.3V (Rev X1-X3)
- Install to power 3.3V from regulator
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 Jumper (Rev X1-X3)
- Install to connect J4 and J1 5V
H2 - 5V Power Source (Rev 4 or higher)
- T-shaped header
- Up - Power 5V from Black Pill Hub USB power
- Left - Power 5V from DC Jack
- Down - Power 5V from FTDI 5V
H3, H4, H5, H6 - I2C Power
- Select the power to the I2C interface
- Install in one of the two positions to power external I2C interface from the board
- Remove if power comes in from external I2C interface
- 3.3V
- 5V
H7 - 3.3V from Black Pill module 3.3V regulator
- Install = power on-board 3.3V circuitry from regulator on Black Pill module
- H8 should not be installed if H7 is installed
H8 - Power from FTDI
- 1-2 = 3.3V from FTDI (don't ever do this)
- 2-3 = 5V from FTDI (probably don't do this)
- H7 should not be installed if H8 is installed
H9 - Hub Chip Address
- Select the address of the PCA9544A I2C hub
Switches
SW1 - Reset Switch
- Press to reset Black Pill board
SW2 - Switch on/off J1, J4 power source
Schematic
Software
Testing
Programming
- Programming
- ST-LINK V2
- FLASHER-STM32 - STM32 Flash loader demonstrator (UM0462)
- From AN3155