- Class: Technology.
- Software: Arduino.
- Material/details: Cardboard, Male/male jumper wires, Breadboard, Arduino Uno, Blue LEDs x6, Resistors (1 k ohm) x6, Photoresistor, Resistor (10 k ohm).
- Aim: Explore Arduino and learn how to program in Arduino Language.
- Process: For this task, I decided to make simple snowflake which consists of 6 Blue LEDs. The idea is that LEDs turn on when lights in the room are turned off. In order to make it, I was needed to solder LEDs to the jumper wires and connect everything via breadboard to the Arduino (cathode to the ground and anode to the pins). I was not able to show it in the scheme, but for LEDs, I used 1 k ohm resistors and for the Photoresistor 10 k ohm resistor.
I was needed to make a code which will work for the snowflake. At the start, I listed all components (six LEDs and one photoresistor). Then, in “void setup” I listed what is going to be input and what is output. In the “void loop” I create the algorithm for a lighted and non-lighted environment. “int ldrStatus” reads the values of Photoresistor. In my case I used ldrStatus <=300, however, this number can be changed.