Re: Project 8 (DIGITAL HOURGLASS)

Hi,
I tried the same thing and I wanted to use something else. Instead of the button I added a photo sensor [Light sensor] I am not that good in coding, may I have the code of that please?
Thank you!

P.S. When light is off, the digital hour glass should work (When the room light is off, Lights on with a delay of 3 seconds for each LED, When all LED's are on keep them that way. When the room light is on then LED go off)

Hi,
I wanted to make the digital hour glass but instead of the tilt switch I added a photo sensor [Light sensor] I am not that good in coding, may I have the code of that please?
Thank you!

What I would like it to do: When bedroom light is ON, turn of all LED's in the digital hourglass. When bedroom light is OFF, Turn the lights on the breadboard on, one by one with a delay of 3 seconds. When all lights are on, wait until the bedroom light is ON then off the lights again.
Thank you so much,
Please reply with the FULL code!

Hi,
I want to make the digital hourglass and I want to use something else. Instead of the tilt sensor I added a photo sensor [Light sensor] I am not that good in coding, may I have the code of that please?
Thank you!
~When room light is on do nothing / turn off all LED'S
~When room light is off work the digital hourglass
Comment the full code below!
Thanks.

What's this ?

Spamming all over the board with demands for FULL CODE for something you have absolutely no clue about ?

Good luck with that, but stop posting all over the board right now.
You've already got a tread going on that has some answers.

  1. Sorry
  2. Not my thread
  3. I have 3/4 of the project just need the last part

@MasterCard786, please do not cross-post again. Topics purged and merged. OP referenced this... Project 8 (DIGITAL HOURGLASS) - The Arduino Starter Kit - Arduino Forum

  1. I have 3/4 of the project just need the last part

How much of it do you understand? I'm going out on a limb here and guess that it's something less than 3/4.

Reading a tilt switch is simple. Find the code that does that. Hint: It's a call to digitalRead().

Reading a light sensor is simple. Learn how. Hint: It involves analogRead().

Changing the if statement to use the light sensor value instead of the tilt sensor value is trivial