interface and application programming
for this assignment I used the software processing:
In most of my assignments in the course I use arduino and processing.
It is my way to evovlve in my field of work.
The project I did in this assigntment is connected to my final project
which I did with Oded.
The input of the project is the photocell sensor which gives data to the computer.
I took the numeric data from the photocell and translated it to a graphic response.
In the arduino code I set the boundaries for day state and night state:

Arduino code
After defining the day state and night state I could translate this data to
visual effect.
I decided to translate it both to visual effect and sound effect.
I took this visual effect from the processing library:

I took this visual effect and connected it to the data from the photocell sensor.
when the photocell noted for night state the rainbow started with the red bar,
and when the photocell noted for day state the rainbow started with the yellow bar.

When I had this ready I could add the sound to the graphics.
I took the song - "here comes the sun" by the beatles.
the song began to play as the data from the photcell turned to day state.
I took the song - "It's been a hard day night..." by the beatles.
the song began to play as the data from the photocell turned to night state.
processing code
When I finished to create all of this I could add this to the
final project with oded.
in this video you can hear the sound
of the songs and see the connection to the project:
IMG 4164 from gali blay on Vimeo.