The third Assignment in DSL810: Prototyping in IoT, was to 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.
I developed an interface in Processing that allows users to select for among 4 options which interact with Arduino COM4 port at 9600bps. Using the four buttons, the user can control for how long they would like to run the devices connected to the circuit. I made a simple circuit connecting an LED bulb, a buzzer and an LCD display. Using the buttons, the users can play the buzzer and the LED for 1,2,3 and 4 seconds. The LCD display shows the amount of time the devices are run.
Serial data transfer is when we transfer data one bit at a time, one right after the other. Information is passed back & forth between the computer and Arduino by, essentially, setting a pin high or low. I've changed the font of the text in the interface to "Raleway".
Code
Please find the Arduino and the Processing code:
Arduino Code Screenshot
Processing Code Screenshot
Circuit
Interface