BLUE-PILL-HUB

From Land Boards Wiki
Jump to navigation Jump to search

BluePillHub-P682-cropped-720px.jpg

Features[edit]

  • 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[edit]

Bluepill pinout-800px.png

Connectors[edit]

J1 - 5V power[edit]

J4 - 5V Power[edit]

  • 5mm terminal block

J7 - I2C[edit]

  1. SCL
  2. SDA
  3. 3.3V
  4. GND

P1 - 5V[edit]

P2 - Vbattery[edit]

  1. GND
  2. Vbat

P3 - FTDI connector[edit]

  • 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
  1. GND
  2. N/C
  3. VCC (to H8 pin 2)
  4. TX (to Blue Pill RX) (PA10 pin on STM32)
  5. RX (to Blue Pill Tx) (PA9 pin on STM32)
  6. RESET*

FTDI rot.jpg

P4, P5, P6, P7 - I2C Interfaces #0-#3[edit]

  1. INT*
  2. SCL
  3. SDA
  4. VCC
  5. GND

P8 - SPI[edit]

  1. PA6 (MISO)
  2. 3.3V
  3. PA5 (SCK)
  4. PA7 (MOSI)
  5. RES
  6. GND

P11/P12 - GVS Connector[edit]

  • Ground, Power, Signal pins
  1. n/c
  2. PC13
  3. PC14
  4. PC15
  5. PA0
  6. PA1
  7. PA2
  8. PA3
  9. PA4
  10. PA5/SCK1
  11. PA6/MISO1
  12. PA7/MOSI1
  13. PB0
  14. PB1
  15. PB10
  16. PB11

P12/P13 - GVS Connector[edit]

  • Ground, Power, Signal pins
  1. n/c
  2. PB9
  3. I2C_INT (PB8)
  4. I2C_SDA1 (PB7)
  5. I2C_SCL (PB6
  6. PB5
  7. PB4
  8. PB3
  9. PA15
  10. PA12
  11. PA11
  12. RX
  13. TX
  14. PA8
  15. PB15
  16. PB14
  17. PB13
  18. PB12

Headers[edit]

H1 - 3.3V[edit]

  • Install to power 3.3V from regulator

H2 - 5V Jumper[edit]

  • Install to connect J4 and J1 5V

H3, H4, H5, H6 - I2C Power[edit]

  • Select the power to the I2C interface
  1. 3.3V
  2. 5V

H7 - 3.3V from Blue Pill module 3.3V regulator[edit]

  • 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[edit]

  • 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[edit]

Drivers[edit]

Uploading Code[edit]

  • 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]

ArduinoIDE Tools Menu.png

  • Upload code
    • Takes a while
  • Set Switch (or jumper) on Blue Pill module set towards edge of card to run
  • Press reset button

Testing[edit]

BPH-P711-720px.jpg

Rev 3 Changes[edit]

Assembly Sheet[edit]