MAES - Lab - Experiment 2
MAES - Lab - Experiment 2
Title: Familiarization with an STM32, the study of blink test and implementation of a light-
controlling system using microcontrollers.
Introduction:
Pin Configuration:
Apparatus:
Experimental Procedure:
Using STM32Cube IDE to write code for a simple Blink program first:
1. Open the STM32Cube IDE and in the first while loop write the program as follows:
4. Select the resume option to see the board showing results to blink the LED lights.
Try to rewrite the code again for the two LED lights
1) Include all codes and scripts into the lab report following the writing template
mentioned in appendix A of Laboratory Sheet Experiment 2.
2) Include the proteus simulation of the blink program and light control system. you can
learn the simulation from the following link:
https://www.youtube.com/watch?v=MDsoLQicdAk
3) Design a simulation for a traffic system using the Proteus simulation tool and
STM32Cube IDE.
Reference(s):
• https://www.st.com/en/evaluation-tools/nucleo-f401re.html for
STM32F401RE,datasheet
• www.st.com
• https://www.st.com/resource/en/user_manual/dm00105879-description-of-stm32f4-
hal-and-ll-drivers-stmicroelectronics.pdf
• www.st.com/en/development-tools/stm32cubeide.html