06 Serial Communication


I wanted to make a digital piano which can be played by a keyboard, communicating with Arduino. The system that I made can be responded when a user is pressing the designated keys.

To begin with, I tried to add the serial communication function by setting some keys ( ‘a’, ‘w’, ‘s’, ‘e’, ‘d’, ‘f’, ‘t’, ‘g’, ‘y’, ‘h’, ‘u’, ‘j’, ‘k’) which can display the notes on the P5(“C”, “C#”, “D”, “D#”, “E”, “F”, “F#”, “G”, “G#”, “A”, “A#”, “B”, “C”) respectively.

Plus, I added a keyPressed function to engineer a keyboard interaction. Finally, I connected P5 with Arduino via serialEvent.



Leave a Reply

Your email address will not be published. Required fields are marked *