Skip to content

BenBrizard/Microcontroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microcontroller

Here I present the source code of the final project of the course ELE3312. Using an ultrasonic sensor (the famous HC-SR04), the program computes the distance between an object (like a hand) and the microcontroller. In function of the distance, the microcontroller outputs a musical note in real-time. It can mimicks several instruments. A menu is displayed on a LCD screen. There, the user can select an instrument, a mode and a musical scale. If the user enters a secret combination, he will discover special features. In these special modes, the microcontroller plays songs instead of sensing a distance. It can play Mario and Zelda theme songs.

The microcontroller used in this project is the STM32F446RE. If you want more details on the project, please refer to the document "ELE3312 Projet final-v2.pdf" (french version only). This document explains in details the work the students had to do.

I am not the only author of the code. The majority of the comments are in english, but some are in french. I will try to translate it all in english someday.

At the end of the semester, a competition was organized to determine the team who had the best project. My team won with the code presented here, because the sound was accurate and because of the special features we added.

About

Synthesizer playing notes in function of the distance computed by an ultrasonic sensor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors