Minho Illusion of Life Project

Charger scorpion

1) My code is based on the first code of this link (http://www.arduino.cc/en/Tutorial/PlayMelody), I added melody arrays, then used switch and case object and If function.

with If function it gets time line each dark an light situation has  3 steps. I also use map function, it controls time delay, so get more interaction with light.

2) I think this structure what I made for my bug would be pretty useful for later, whenever I make things has a timeline and reaction by sensor.