I'm new here so I'm going to introduce myself. I'm Wojtek and I come from Poland, currently I''m 25 y.o. and I'm just starting my journey with Arduino. In the future I would like to share with you my projects and I hope you can provide some insight and constructive criticism.
Ok, so now lets hop into the project itself. It's rather basic because for now I don't have that many parts (just Arduino board, diodes, some resistors, tact switches and photoresistors). The chain uses photoresistor to read the brightness outside (that is why I recommend sticking it to the window or keeping it on the wall outside of it). Direct exposure to sunlight returns a value of ~15 - 25, during overcast day the value rises to 60 and when it gets relatively dark the returned value is ~650. That's why I decided to turn the chain on when the value is higher than 650.
You can see bare construction in the video below:
That's how it looks in the bowl with Christmas glass balls:
Parts required to assemble the chain:
1 - Arduino UNO
6 - LED diodes
1 - photoresistor
6 - 280 ohm resistors (for diodes)
1 - 1K ohm resistor (for photoresistor)
Bunch of cables
You can find source code here: https://t.co/7fGqjvEFEq
Schematics are available here: Arduino based Christmas LED chain - Imgur
I really appreciate your attention and I hope you've liked my entry.
I've added potentiometer and a button to the circuit. Thanks to the potentiometer you can control brightness of the LEDs (they are connected through PWMs so they can act as analog pins), whereas the button controls which program is being used. Previously there was an infinite loop of three programs.
Here's a video presenting the new version:
Schematics for the upgraded version: https://t.co/D2thcn5300
Source code: https://t.co/ikjVfC38FE