How aj-0/5-dof-robotic-arm-using-stm32 works
This repository is embedded firmware for an STM32 NUCLEO-F411RE robotic arm controller. The documented user-to-motion workflow is mobile app over Wi‑Fi → ESP32 → UART commands → STM32 firmware → timer-generated PWM → servo-driven arm. The sampled main routine starts interrupt-driven UART reception and configures timers; the excerpts do not show command parsing or the receive callback, so those links are documented at the README level. Platform support nodes aggregate the substantial CMSIS and STM32 HAL modules listed in the source index.
Main entry points: main.c Firmware startup · STM32F4xx_HAL_Driver STM32 HAL drivers · Include STM32 device support · stm32f4xx_hal_conf.h HAL configuration
Components 14
Command transport
- ESP32 bridge
Arm firmware
- STM32 controller
- Firmware startup
Core/Src/main.c - UART reception
Core/Src/main.c - Servo PWM control
Core/Src/main.c
MCU platform
- HAL configuration
Core/Inc/stm32f4xx_hal_conf.h - Interrupt handlers
Core/Src/stm32f4xx_it.c - Peripheral setup
Core/Src/stm32f4xx_hal_msp.c - STM32 HAL drivers
Drivers/STM32F4xx_HAL_Driver - STM32 device support
Drivers/CMSIS/Device/ST/STM32F4xx/Include - CMSIS core support
Drivers/CMSIS/Include
Servo actuation
- SG90 servos
- Robotic arm
Other components
- Mobile app
Connections 13
- Mobile app → ESP32 bridge: sends commands
- ESP32 bridge → UART reception: transmits UART
- UART reception → STM32 controller: receives commands
- Firmware startup → UART reception: starts reception
Core/Src/main.c - Firmware startup → Servo PWM control: configures timers
Core/Src/main.c - Servo PWM control → SG90 servos: outputs PWM
- SG90 servos → Robotic arm: moves joints
- Firmware startup → STM32 HAL drivers: initializes HAL
- HAL configuration → STM32 HAL drivers: configures modules
Core/Inc/stm32f4xx_hal_conf.h - Interrupt handlers → Firmware startup: handles callbacks
- Peripheral setup → STM32 HAL drivers: sets up peripherals
- STM32 HAL drivers → STM32 device support: uses device layer
Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_rcc.h - STM32 device support → CMSIS core support: uses core support