Simulation of Bluepill (STM32F103C8T6) LED blinking circuit in Proteus

 I just made a Bluepill (STM32F103C8T6) simulation part in Proteus and wanted to show this here. The circuit is simple a hello world circuit, that it is a LED blinking circuit. I used the proteus default Arduino for STM32 compiler which is arm-none-eabi-gcc. The program code is simple and one can use the same Arduino programing language. 

Below shows the circuit diagram.

Simulation of Bluepill(STM32F103C8T6) LED blinking circuit in Proteus

As you can see the LED is connected to port pin PC13. The code for led blink is very simple and provided below.


/*
 * Bluepill Blink for STM32 Official Core
 * Onboard LED is connected to PC13
 */

void setup() {
  // Initialize PC13 as an output
  pinMode(PC13, OUTPUT);
}

void loop() {
  // On the Bluepill, the LED is ACTIVE LOW
  digitalWrite(PC13, LOW);  // Turn the LED ON
  delay(500);               // Wait 500ms
  
  digitalWrite(PC13, HIGH); // Turn the LED OFF
  delay(500);               // Wait 500ms
}

This is the same programming code like in standard Arduino. Nothing really to explain.

The following video shows how I built the Bluepill(STM32F103C8T6) LED blinking circuit in Proteus.

Bluepill uses STM32F103C8T6 microcontroller, see the STM32F103C8T6 chip pinout explorer for faster building of circuit. 

Post a Comment

Previous Post Next Post