This project is a hardware sequencer built on the STM32F407 microcontroller, combining buttons, LEDs, and an audio codec to create a small, interactive music instrument.
- Potentiometer — controls BPM (tempo)
- Mode Button — switches between
PLAYandEDITmodes. Holding it inPLAYorFXmode entersRECmode - CLEAR Button — clears the whole pattern (
PLAY) or clears the selected sample (EDIT) - FX Button — enters
FXmode - TM1638 Module — 16 buttons for sample triggering and editing
- LEDs — indicate the current step in
PLAYmode or the selected slot/sample inEDITmode - Audio Output — using the CS43L22 codec in analog mode (via DAC). Driver taken from an online tutorial
- Press any of the 16 buttons on the TM1638 module to play one of 16 samples
- LEDs light up in sequence to visually indicate the current step
- First press selects a sample; pressing
CLEARcancels the selection - Subsequent presses assign the sample to one or more of the 16 steps
- LEDs show which steps are occupied by the selected sample
- Hold the mode button and press a button to record a sample or effect into the pattern
- Hold a button to apply a corresponding effect to the pattern
- Currently, only reverb is implemented; more effects are planned
Connect any speaker or headphones to the mini-jack on the board to hear the sound
- STM32F407 Discovery or compatible board
- TM1638 module (16 buttons + LEDs)
- Potentiometer and buttons for control
- This is an experimental, in-progress project
- The code is a mix of embedded input handling, step sequencing logic, and audio output