AP03 STM32 MCU: Arduino-Compatible Microcontroller Leaf

Use this page with AI

Explore with your favorite AI

Gemini & other AI

Copy this page’s context into your AI to explore how it works and what you can build.

Open Gemini

Copy the prompt, then paste it into Gemini’s message box.

View prompt

AP03 leaf front AP03 leaf back AP03 leaf overview

Features

Run programs that read connected sensors and control other leaves based on their readings. Development with Arduino IDE is supported.

This 32-bit MCU (microcontroller) leaf uses STMicroelectronics' STM32L452RE series with an Arm Cortex-M4 core and FPU. Use a USB leaf for a USB connection or a Shield leaf for SWD.

Specification

ItemDescription
Part numberSTM32L452REI6
CoreARM Cortex-M4
Operating voltage3.3V
Input voltage3.0-3.6V
Digital I/O16
Analog input6
ADC12bit
Flash Memory512 KB
SRAM160 KB
Clock frequency80MHz
OthersRTC with HW calendar, alarms and calibration
Arduino IDE Board SettingsBoard: "Leafony STM32"
Board Part number: "Leafony STM32 MCU(16MHz)"
Board Part number: "Leafony STM32 MCU(80MHz)"
DimensionW23×D20.5×H4.7mm

Block diagram

AP03 block diagram

Pinassign

AP03 pin assignment

See the pin assignment data for details.

Tips

About LEDs and switches

AP03 viewed from the component side, with the green connector at the top
123
  1. 1
    Program / Run

    Slide up for Program; down for Run in this photo.

  2. 2
    Reset

    Press and release after changing the slide switch.

  3. 3
    Mode LED

    On: Program. Off: Run. This LED does not indicate upload completion.

Program ↑Write a program

  1. Slide to Program ↑ and check that the LED is on.
  2. Press and release Reset.
  3. Start Upload on the PC and check the result.

Run ↓Run the program

  1. Slide to Run ↓ and check that the LED is off.
  2. Open the serial monitor at the sample’s baud rate.
  3. Press and release Reset, then check the output.

Up and down refer to the photo above. If the leaf is rotated or stacked, use the Program / Run position and the mode LED to identify the setting. The PC cannot move these physical switches.

Sample App

How to use it with Arduino

In order to use this leaf with Arduino, you need to configure the board on Arduino IDE.
Please refer to Environment for setting instructions.

Document

Revision history

  • First edition, November 2020
Leaf photo
Search documentation, sample apps, and Q&A