Change the world

The STM32-F4 Trainer was developed by the Department of Electrical Engineering at the Nelson Mandela Metropolitan Univeristy to demonstrate the operation of STMicroelectronics' STM32F4-Discovery board (


The STM32F4-Discovery itself contains a STM32F407VGT6 microcontroller featuring a 32-bit ARM Cortex-M4F core and an integrated ST-LINK/V2 programmer/debugger.  It also hosts the following on-board functions:

  • LIS302DL 3-axis digital accelerometer
  • MP45DT02 digital microphone
  • CS43L22 audio DAC with speaker driver
  • 4 user LEDs (orange, green, red, and blue)
  • User pushbutton (blue)
  • USB OTG with micro-AB connector


The STM32-F4 Trainer is an extension of STM32F4-Discovery board and provides the following additional features and peripherals:

  • 8 Red LEDs connected to parallel output pins
  • 8 Dip switches connectd to parallel input pins
  • Red, green and blue status LEDs
  • A single RGB LED
  • 5-Way joystick switch
  • Graphics LCD with backlight
  • 4x4 Keypad
  • Potentiometer for analog input
  • Graphics LCD with backlight
  • DC Motor connected using a H-bridge
  • Stepper motor
  • Servo motor
  • HC-SR04 Range sensor
  • USB or RS-232 connection to the STM32F407VGT6's UART
  • CAN connector to the STM32F407VGT6's CAN controller
  • SDCard connector
  • 23LC1023 1Mbit SPI RAM
  • 24LC1025 1024K I2C EEPROM
  • 2 x MCP23008 8-bit port expanders (connected to the Keypad, Status LEDs and joystick switch)


For more information on the usage of the STM32-F4 Trainer or the STM32F4-Discovery board by itself, see the STM32F4-Discovery Board (using Keil and the standard peripheral libraries) and ARMmbed (using the online ARMmbed compiler) pages on this website.