The word documentation of Assignment 3 is available here
Develop an application integrating a GUI in a language such as Processing, Python, etc. with a microcontroller such as Arduino, Raspberry Pi, etc. Use serial communication to make the interface interact with the microcontroller. Please document the steps and create a video/screenshots showing the interaction between the GUI and the microcontroller.
At first let's test the speaker and understand the process of integration of speaker with the arduino interface. Let's connect the speaker at pin no. 11 of the arduino and test the speaker for low, the code for the same is available here. In this code we are using pin 11 as simple digital low and digital high pin.
Following is the Video for the same:
Then I tried generating the sounds using the tone function in arduino.Input of the tone function: pin, frequency, time duration. Output: Signal is supplied for that duration to the pin.
Using the serial interface, we tried running the arduino speaker at different tones. The code file for the same is available here. Pin number used: 11
Following is the Video for the same:
In the final step, I just made some changes to the processing code for ‘musical keyboard’ given in the demo files(changes in the form of changing colour of the key when pressed, changing positions etc) and noticed the effects. The code is available here
Now we connect the arduino to the laptop and upload the code files that gives different frequency output for different inputs. Finally, using the processing interface we run the buzzer at different frequencies.
Following is the Video for the same: