Black Pill

From STM32duino wiki
Jump to: navigation, search
Top View
PCB
Level of support Moderate
Bootloader Flash with [1]
Flash 64KB
RAM 20KB
User LED(s) PB12 (active LOW)
User button(s) None
RTC Crystal Yes
ST-Link header Yes
Manufacturer HWA YEH
Price (shipped) 2.15 USD

The Black Pill is the latest "pill" board. It is newer and less common than the Blue Pill and the Red Pill. It is available on AliExpress, eBay and Taobao.

Getting Started

  1. Buy a Black Pill
  2. Burn the bootloader
  3. Under 'Tools → Board' select "Generic STM32F103 series"
  4. Under 'Tools → Upload method' select "STM32duino bootloader"
  5. Select the correct COM port
  6. Open up the blink sketch, change the pin number to PB12
  7. Hit upload

It is also possible to upload sketches via UART and JTAG, though this will overwrite the bootloader.

Schematic and Design

Like the other pill boards, the design is closed source and the designer is unknown.

However, a File:Black Pill Schematic.pdf is available for this board.

Comparison with the Blue Pill

The Black Pill is similar to the more popular Blue Pill.

Similarities

  • STM32F103C8T6 32 bit ARM M3 microcontroller
  • 4-pin ST-Link header
  • Micro-USB
  • No USB reset circuitry (reset over USB is still possible, though less reliable than the Maple Mini)

Differences

  • Different pinout
  • User LED on PB12

Advantages of the Black Pill

  • All components are on one side of the board
  • Stronger Micro-USB connector
  • Mounting holes
  • Ships with the correct pull-up resistor on PA12 for USB port

Advantages of the Blue Pill

  • More widely available, and more widely used
  • Slightly cheaper
  • Vbat pin can be connected to a battery for the RTC. The black pill has Vbat hardwired to 3.3V.
  • Shorter and narrower
  • Black pill does not have a VIN pin, it can only be powered from USB or a 3.3 V source.