

The STM32F103C8T6 Blue Pill is a compact and affordable microcontroller development board based on the STM32F103C8T6 chip. It features a 32-bit ARM Cortex-M3 core, 64KB of flash memory, and a wide range of I/O ports, making it ideal for prototyping and embedded applications. Its small form factor and low cost make it a popular choice among hobbyists, students, and professionals for developing IoT devices, robotics, and other embedded systems.








| Parameter | Specification |
|---|---|
| Microcontroller | STM32F103C8T6 (ARM Cortex-M3) |
| Clock Speed | 72 MHz |
| Flash Memory | 64 KB |
| SRAM | 20 KB |
| Operating Voltage | 3.3V |
| Input Voltage (via USB) | 5V |
| GPIO Pins | 37 |
| Communication Interfaces | UART, SPI, I2C, CAN, USB |
| ADC Resolution | 12-bit (10 channels) |
| PWM Channels | 15 |
| Dimensions | 53 mm x 22 mm |
The STM32F103C8T6 Blue Pill has two rows of 20 pins each. Below is a summary of the pin configuration:
| Pin Number | Label | Description |
|---|---|---|
| 1 | GND | Ground |
| 2 | 3.3V | 3.3V Power Output |
| 3 | 5V | 5V Power Input |
| 4-15 | PA0-PA11 | GPIO, ADC, PWM, or Alternate Function |
| 16 | PB0 | GPIO, ADC, or Alternate Function |
| 17-28 | PB1-PB12 | GPIO, ADC, PWM, or Alternate Function |
| 29 | PC13 | GPIO (Low-power pin) |
| 30 | PC14 | GPIO (Low-power pin) |
| 31 | PC15 | GPIO (Low-power pin) |
| 32 | NRST | Reset Pin |
| 33 | BOOT0 | Boot Mode Selection |
| 34-40 | Various | UART, SPI, I2C, CAN, USB, etc. |
Powering the Board:
Programming the Board:
Boot Mode Selection:
Connecting Peripherals:
Below is an example of how to blink an LED connected to pin PA5:
// Define the pin for the LED
#define LED_PIN PA5
void setup() {
pinMode(LED_PIN, OUTPUT); // Set PA5 as an output pin
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Turn the LED on
delay(500); // Wait for 500 milliseconds
digitalWrite(LED_PIN, LOW); // Turn the LED off
delay(500); // Wait for 500 milliseconds
}
Board Not Detected by Computer:
Code Upload Fails:
GPIO Pins Not Responding:
Overheating:
Q: Can I use the Blue Pill with 5V sensors?
A: Yes, but you will need a level shifter to safely interface 5V signals with the 3.3V GPIO pins.
Q: How do I reset the board?
A: Press the onboard reset button or momentarily connect the NRST pin to GND.
Q: Can I use the Blue Pill for USB communication?
A: Yes, the STM32F103C8T6 supports USB communication. You can use libraries like USB HID or CDC for implementing USB functionality.
Q: What is the maximum current output of the 3.3V pin?
A: The 3.3V pin can supply up to 100 mA, depending on the input voltage and load.
This concludes the documentation for the STM32F103C8T6 Blue Pill.