BLUE-PILL-HUB
Contents
Features
- Carrier for the Blue Pill Board
- STM32F103 CPU
- I2C Hub - PCA9544A
- 4-channel
- Independent 3.3V/5V power for each channel
- Separate interrupts for each channel
- GVS connections for Blue Pill pins
- Reset switch
Blue Pill Module
Connectors
J1 - 5V power
J4 - 5V Power
- 5mm terminal block
J7 - I2C
- SCL
- SDA
- 3.3V
- GND
P1 - 5V
P2 - Vbattery
- GND
- Vbat
P3 - FTDI connector
- 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 Blue Pill RX) (PA10 pin on STM32)
- RX (to Blue Pill Tx) (PA9 pin on STM32)
- RESET*
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
- Install to power 3.3V from regulator
H2 - 5V Jumper
- Install to connect J4 and J1 5V
H3, H4, H5, H6 - I2C Power
- Select the power to the I2C interface
- 3.3V
- 5V
H7 - 3.3V from Blue Pill module 3.3V regulator
- Install = power on-board 3.3V circuitry from regulator on Blue 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
Schematic
Drivers
- STM32 examples
- Installing the STM32 USB Bootloader - Youtube video
Uploading Code
- FTDI connection to Blue Pill Hub FTDI connector
- Set Switch (or jumper) on Blue Pill module set towards center of card to download
- In Arduino IDE,
- Tools
- Board "Generic..."
- Upload method: "Serial..."
- Port: [the comm port]
- Tools
- Upload code
- Takes a while
- Set Switch (or jumper) on Blue Pill module set towards edge of card to run
- Press reset button
Testing
Rev 4
- Change FTDI to Modole