๐ฑ This repository, Arduino-buzzer-music
, was developed as part of a school engineering class project. While this project holds a special place as a significant learning experience, it has been archived post-completion. I've since shifted my focus to other areas of development, but I hope this repository serves as an inspiration or reference for future enthusiasts.
This project allows you to easily create a sequence of notes from a Midi file and play it on a buzzer.
Python packages
- Mido (
pip install mido
)
- Clone/download this repository.
- You can upload the
buzzer.ino
to your Arduino to test the default music (Super Mario Bros Theme). - You can create your music by changing the
music.mid
file to your own. - After changing the
music.mid
file, runpython3 main.py
, which will print out the sequence of notes and their duration. - Edit the
buzzer.ino
file to change the notes' sequence and duration.//list of notes int notes[] = {330, 330, 330, 262, 330, ... } //list of delay int duration[] = {161, 324, 324, 161, 324, ... }
- Upload the
buzzer.ino
to your Arduino and enjoy your music!