Prelim Exam Human Response Timer (Tone Generator)

An interactive tone generator on an STM32 board: hold SW2 to play, press SW1/SW3 to raise or lower the pitch in real time.

IntermediateFull instructions provided2 hours22
Prelim Exam Human Response Timer (Tone Generator)

Things used in this project

Hardware components

RT-Thread RT-Spark Development Board (STM32-based)
×1
3× Switches / Push buttons
×3
Speaker module
×1
330 Ω resistor (×1)
×1
1 µF capacitor (×1)
×1
Logic Analyzer or Oscilloscope (to monitor interrupt/output signals)
×1

Software apps and online services

STM32CubeIDE
STM32CubeMX

Story

Read more

Code

BCA143 Prelim Project — Human Response Timer (STM32 Firmware)

STM32 firmware for the Human Response Timer built on the RT-Thread RT-Spark board. Hold SW2 to play a tone through the speaker, and press SW1/SW3 to raise or lower the pitch in real time. Includes the play_tone() and update_buttons() functions for square-wave generation and button-driven pitch control.

Credits

Jhanaloden Dipantar
7 projects • 0 followers
MICHAEL CADIZ
7 projects • 0 followers
Paul Rodolf P. Castor
60 projects • 9 followers

Comments