Flowing LED Lights Pillow
In this lesson, we will conduct a simple yet interesting experiment – using LEDs to create flowing LED lights. As the name suggests, these eight LEDs in a row successively light up and dim one after another, just like flowing water. However, I made some changes to the original experiment. I delay command from 100ms to 250ms. And at the bottom also add made the lights go like a wave out the video. The video makes all the lights bright then closes I make them bright then closes before the next one.
Components
- Arduino board * 1
- USB cable * 1
- Resistor (220Ω) * 8
- LED * 8
- Potentiometer * 1
- Breadboard * 1
- Jumper wires
- Pillow sheet * 1
Principal
Original:
8 LEDs are in a row successively light up and dim one after another. The principle of this experiment is simply to turn on eight LEDs in turn. The eight LEDs are connected to pin 2-pin 9 respectively. Set them as High level and the corresponding LED at the pins will light up. Control the time of each LED brightening and you will see flowing LED lights.
Changed:
I delay command from 100ms to 250ms. And at the bottom also add made the lights go like a wave
out the video. The video makes all the lights bright then close I make them bright then close before the next one.
Procedures
Step 1:
Build the circuit.
Step 2:
Download the code from https://create.arduino.cc/editor/qqqqqqqbbbbbbb12...
Step 3:
Upload the sketch to the Arduino Uno board
Click the Upload icon to upload the code to the control board.
If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded.
Now, you should see eight LEDs brighten one by one from the LED connected to pin 2 to that to pin 9, and then dim in turn from the LED at pin 9 to the one at pin 2. After that, the LEDs will light up from the LED at pin 9 to that at pin 2 and dim from the LED at pin 2 to that at pin 9. This whole process will repeat until the circuit is power off.
Code + Credit
Load this code into your Arduino: https://create.arduino.cc/editor/qqqqqqqbbbbbbb12...
Original Author: primerobotics
These instructions are revised from: https://www.instructables.com/Flowing-LED-Lights-...