top of page
  • Writer's pictureAtchareeya Jattuporn

Lab5 : DIY Piano


This week I learned more about tone function to play with melody. I used speaker and simple button to created a DIY piano. I got the tone from pitches.h library which converted the hertz into precisely musical note.


Understanding tone & note system

I understand the note system from a lab exercise which used pitches.h library to created an auto-played song. According to this exercise, I try to be creative by putting each note into one button in order to created a piano.


Sketch Code


Tone Testing


Play Time !


17 views

Recent Posts

See All
bottom of page