As part of the second prototype, I am looking at making the casing look more futuristic and use interactions that are more independent and less dependent on humans. The clock would be represented in a manner different from the normal analogue or digital view we see. The ultrasonic sensor will be replaced with the representative clock to send updates to the screen. Even powering the jellyfish would be a remote activity from the screen rather than manually doing it.
I was suggested to use a more organic look for the casing. However, considering our futures would be more compact and there would be a fight for space. So I am looking at a more compact design rather than the organic look.
The buzzer is controlled by the potentiometer. It is based off the arduino example of controlling buzzer volume.
In the process of learning to connect sensors to the arduino as inputs, I used the ultrasonic sensor that measures proximity by echoing and triggering ultrasonic sound. In the code used, I put a limit of 10 inches on the sensor to trigger a light change. So if the sensor detects a distance of more than 10 inches, the yellow light remains on and if the distance detected is less than 10 inches, then the yellow light switches off and the blue light turns on.
Link to code used:
As part of CC Lab homework for arduino, we were supposed to change the state of the button. So i used the button to switch between LEDs. When the button is not pressed, the red light is on, but the red light turns off and the green light turns on for the period that the button is pressed.
Link for the code used: