Arduino Snowflake

  • 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, the simple snowflake which consists of 6 Blue LEDs were made The idea is that LEDs turn on when lights in the room are turned off. In order to make it, it was needed to solder LEDs to the jumper wires and connect everything via a breadboard to the Arduino (cathode to the ground and anode to the pins). For LEDs, 1 k ohm resistors were used and for the Photoresistor 10 k ohm resistor.

The working code presented below. But in short, all components (six LEDs and one photoresistor) were listed. Then, in “void setup” listed what is going to be input and what is output. In the “void loop” created the algorithm for a lighted and non-lighted environment. “int ldrStatus” reads the values of Photoresistor. In this case I used ldrStatus <=300, however, this number can be changed.

  •   Result:

Pages: 1 2

Tags: , , ,

Leave a comment

address: 20 Myasnitskaya ulitsa
(metro stations ‘Lubyanka’ and ‘Kitay-Gorod’)
Moscow 101000 Russia

phone: +7(495)772-95-90 *15026

email: city@hse.ru