Embedded C Programming Lab Manual
Preface
This book contains the help documents and the exercises for the Embedded C Programming Lab.
IDEs
There are two groups of exercises which will be using the following IDEs.
- STMCubeIDE with STM HAL - Getting Started
- Arduino IDE (V2) with Stm32duino - Getting Started
Basic IO, Serial Communication, External and Timer interrupts will be discussed with STMCubeIDE and Interfacing with Sensors will be done using Arduino IDE.
Note
The exercises that are done using Arduino IDE can also be done using STMCubeIDE.
Development board
The exercise here are implemented using STM Nucleo-144 F767ZI development board.
- Nucleo-144 boards User manual - UM1974
- Nucleo-F767ZI MCU data brief - https://www.st.com/resource/en/data_brief/nucleo-f767zi.pdf
- STM32F767ZI MPU datasheet - https://www.st.com/resource/en/data_brief/nucleo-f767zi.pdf
Components
- Built-in LEDs (
PB0
,PB7
,PB14
) and Pushbutton (PC13
) - Built-in Serial UART
- Ultrasonic sensor - HC-SR04
- Temperature Sensor - MCP9808
- Accelerometer and gyroscope - MPU-6050