Arduino UNO, IoT

ARDUINO – Guest Post by Dylan Bryant

In my effort to fight the TV, I issued a challenge to my 10yr old. Here is his story. Enjoy! -dbaOnTap

Last week my dad challenged me to make the Arduino UNO do something. So I chose to make a light blink. Now I will tell you exactly how I did it. First, I had to E-Mail dad to ask him where the USB cord was because my mom did not know. Next, I had to go online and look up how to do it. Then, after going to a few different sites I finally went to a YouTube video https://www.youtube.com/watch?v=YWY_Is0L7fE and a man who goes by EEEnthusiast showed me how to write the code. Last, he showed me how to set up the wires and the resistor so that they made the light blink.

First, I went to dad’s office to find a USB cord but I could not find any because the light was out so I gave up and looked in mom’s office but I still could not find one that would fit. Then I had to look in the playroom and in my room, I could not find one that was not connected to anything, so I went to mom to see if she knew where one was but she didn’t and told me to E-Mail dad. The next day I E-Mailed him and he replied and told mom where to look, so we finally found one.

So when I found the cord I hooked it up to my computer and the Arduino lit up.  Now I had to look up how to work the Arduino because my dad did not tell me how to work it nor did he leave any instructions, so I was on my own. I went to a couple of different sites:

  • io/a/beginners-guide-to-arduino/
  • instructables.com/id/Arduino-Uno-Basics/

before I found that video I mentioned on YouTube.

Then, the EEEnthusiast showed me how to write the code which looked like this (I added comments because my dad said it would help people understand better):

int LED = 12;   //Initialize
void setup()
 {
   pinMode (LED,OUTPUT) ;
}
void loop()   //Repeat over and over again
{
  digitalWrite(LED,LOW);   //Turns off light
  delay(500);   //Wait a second
  digitalWrite(LED,HIGH);   //Turns on light
  delay(500);   //Wait a second
  digitalWrite(LED,LOW);   //Turns off light
}

 

So, I had to type this into the Arduino IDE and then the computer proofread it. I got a few error messages. I fixed them so they are now correct and then I uploaded it to the Arduino.

To get this to work I had to acquire the following parts:

  • The Arduino UNO
  • The bread board
  • Two cables
  • An LED light
  • A resistor
  • A USB cable

When that was done I hooked up the wires to GND and 12 on the Arduino and hooked them up on the bread board so GND went to a-17 and 12 went to a-22. Then I put the resistor in to the bread board on c-17 and c-21. Then I put the LED light on the bread board with the longer side on c-22 and the shorter side on e-21.

 

In conclusion I really liked doing this because I had to figure it out on my own. The hardest part was trying to find the USB cord with the right connector because it took about 2 days to do. The easiest part was hooking up the wires to the bread board because it only took about 10 minutes. And that is how I got an LED light to blink using Arduino.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.