Automatic Blinking Light

by mimi1017 in Circuits > Arduino

271 Views, 0 Favorites, 0 Comments

Automatic Blinking Light

Automatic LED blinking

This is an Arduino light that blinks in the dark. This is a simple project for starters.

You can this when you are at home and you want to sing KTV by yourself.

Step 1: Write the Code

Screen Shot 2020-05-28 at 08.39.03.png
Screen Shot 2020-05-27 at 22.41.13.png

the link for the code online: code

You can change the delay time for the LED blinking

digitalWrite( 12 , HIGH ); // sets the light on

delay( 1000 ); // wait for a certain time (can be changed)

digitalWrite( 12 , LOW ); // sets the light off

delay( 1000 ); // wait for a certain time (can be changed)

Step 2: Prepare All Things Needed

IMG_2596.jpg

(Arduino official website)

things that should have:

micro USB connector *1

Arduino Uno Rev3 *1

jumper wires male *7

LED light 3mm*1

Photoresistor *1

resistance*2

Breadboard*1

you can also prepare a case for it if you want to make it prettier.

Step 3: Make the Circuit

Screen Shot 2020-05-28 at 09.18.52.png

negative: black wires

positive: red wires

LED: orange wire

Photoresistor: green wire

Step 4: Connect the Arduino to Your Computer

Screen Shot 2020-05-28 at 09.36.00.png

when you are all prepared for the steps, you will have to connect the Arduino to your computer.

Press the upload to upload your code onto the Arduino, if you have done all things correctly, the LED light will blink in the dark.

Finished

Screen Shot 2020-05-28 at 23.59.48.png
Screen Shot 2020-05-29 at 00.00.44.png
Screen Shot 2020-05-29 at 00.03.35.png
76397FBC-3D38-4FA7-A283-464A323F4555_1_105_c.jpeg