You are on page 1of 4

22EC-006: Rapid Prototyping

Student Name:Raunak
Roll Number:2310994547
Branch: ECE
Semester:3rd

.Department of Electronics and Communication Engineering


Chitkara University Institute of Engineering & Technology
Chitkara University, Punjab
22EC-006: Rapid Prototyping

TASK - 2.2 C

Introduction to STM32 & Arduino IDE


​ Welcome to STM32!
Arduino IDE is an electronic prototyping platform. Different types of sensors & actuators can be
attached to STM32 black pill boards to create our own sensing-thinking-acting systems.
Throughout this unit, we will use STM32 and Arduino IDE to create different sensing devices,
and to retrieve the collected sensor data.

Hardware Required
​ STM32 black pill board with in-built LED

​ USB –Type C cable

Software Required
Arduino IDE, MS-Word.

.Department of Electronics and Communication Engineering


Chitkara University Institute of Engineering & Technology
Chitkara University, Punjab
22EC-006: Rapid Prototyping

Task Objective
STM32CubeIDE is an all-in-one multi-OS development tool, which is part of the STM32Cube
software ecosystem. STM32CubeIDE is an advanced C/C++ development platform with
peripheral configuration, code generation, code compilation, and debug features for STM32
microcontrollers and microprocessors. To get comprehensive understanding of STM Cube IDE
and get start with application development work, student need to create first script using
hardware abstraction language and test the system. Create the tutorial for getting started STM32
using STM cube IDE which much contains sufficient information for beginners to successfully
test their system.

Tutorial
In this tutorial, we'll cover the steps to kickstart your journey with the STM32 Black Pill
development board and STM32CubeIDE, culminating in the mesmerizing blink of its on-board
LED using HAL programming. First, we'll set up STM32CubeIDE by downloading and
installing it from the official STMicroelectronics website. Next, we'll dive into configuring the
GPIO pin responsible for controlling the LED. With the GPIO pin properly initialized, we'll craft
code within the main function to toggle the state of the LED in an infinite loop, effectively
creating the blinking effect. Finally, we'll build the project and flash it onto the STM32 Black Pill
board, bringing our creation to life. Through these steps, you'll gain a foundational understanding
of STM32 development, empowering you to explore further and unleash the full potential of this
powerful microcontroller platform.

NOTE
Completing the task of writing a program to blink the on-board LED attached to the STM32 Black Pill

was relatively straightforward within the Arduino IDE. First, I defined the pin associated with the LED.

Then, in the setup function, I initialized this pin as an output. Within the loop function, I toggled the LED

state between on and off with a delay of 1 second each, creating the blinking effect. Compared to the

previous task of integrating the STM32 Black Pill with Arduino IDE, this task was simpler and more

.Department of Electronics and Communication Engineering


Chitkara University Institute of Engineering & Technology
Chitkara University, Punjab
22EC-006: Rapid Prototyping

focused on basic Arduino programming concepts. However, both tasks contributed to a deeper

understanding of microcontroller programming and software-hardware integration.

.Department of Electronics and Communication Engineering


Chitkara University Institute of Engineering & Technology
Chitkara University, Punjab

You might also like