Arduino UNO Activity: An Application & Tutorial in Using Arduino to Eight LED Lights | Part 1 – “ Four LED Lights Off While the other Four LED Lights On “

in #utopian-io7 years ago (edited)

Good day to all the readers! ^_^

Capture.JPG

Modern engineering life became quite more advance leading most of engineering activities involve with technology. There is no doubt that Arduino is one of the invented software and/or hardware which has been used by engineers and programmers nowadays. Arduino is an open source computer hardware and software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices and interactive objects that can sense and control objects in the physical world. The project's products are distributed as open-source hardware and software, which are licensed under the GNU Lesser General Public License(LGPL) or the GNU General Public License (GPL), permitting the manufacture of Arduino boards and software distribution by anyone. Arduino boards are available commercially in preassembled form, or as do-it-yourself (DIY) kits.

image.png

For more information about Arduino, just click here.

Today is the first day in which I am able to use the Arduino Application and somehow I realized its importance to engineering life nowadays. Using the said application sounds fun and challenging since if you are going to use it, you must have to analyze well the codes that should be used in order for the program to work well (brainstorming is a must) though it’s not that difficult to use.

Activity Name:

Four LED Lights Off while the other Four LED Lights On (Continuous Rotation)


Webp.net-gifmaker.gif


Equipment Used:

  1. Eight Resistors
  2. One Breadboard
  3. Eight LED Lights
  4. Connecting Wires
  5. Analog Multitester
  6. Arduino UNO with USB Cable
  7. Laptop with Arduino Application

Summarized Activity Instructions:

  1. Prepare the equipment needed for the activity.
  2. Use eight (8) LED lights and eight (8) resistors only for the activity. Use the Analog Multitester to test if the LED lights are operational. (Note: Operational LED lights will produce light when the terminals are connected properly)
  3. With the breadboard provided, make a circuit involving the said eight (8) LED Lights and resistors which are connected to each other and corresponds to the objective of the activity.
  4. Make a program of the activity using the Arduino Application on the laptop and verify if the created program is working or ready for uploading to Arduino UNO.
    Additional Information: Arduino Application has a verification/test button of the created program before running and using it to the circuit created in the breadboard. This is to make sure if the program works well to avoid errors or malfunctions of the system.
  5. Connect the created circuit to Arduino UNO using the connecting wires. After which, connect the Arduino UNO to the laptop using the USB Cable.
  6. In the Arduino Application on the laptop, upload the created program to Arduino UNO and run the system.

1.jpg

2.jpg

Activity Codes

Capture3.JPG

void setup()

{
pinMode (13,OUTPUT);
pinMode (12,OUTPUT);
pinMode (11,OUTPUT);
pinMode (10,OUTPUT);
pinMode (9,OUTPUT);
pinMode (8,OUTPUT);
pinMode (7,OUTPUT);
pinMode (6,OUTPUT);

}

void loop()
{
digitalWrite (13,HIGH);
digitalWrite (12,HIGH);
digitalWrite (11,HIGH);
digitalWrite (10,HIGH);
delay (500);

digitalWrite (10,LOW);
digitalWrite (11,LOW);
digitalWrite (12,LOW);
digitalWrite (13,LOW);
delay (500);

digitalWrite (9,HIGH);
digitalWrite (8,HIGH);
digitalWrite (7,HIGH);
digitalWrite (6,HIGH);
delay (500);

digitalWrite (6,LOW);
digitalWrite (7,LOW);
digitalWrite (8,LOW);
digitalWrite (9,LOW);
delay (500);

}

THE CIRCUIT

IMG_20171125_123752.jpg

THE PROGRAM

Capture1.JPG

Capture2.JPG


Thank you visiting and reading the context ^_^



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @rejzons I am @utopian-io. I have just upvoted you at 7% Power!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!
  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • I introduced a competition factor. My vote is based also on how competitive the category used is.

Human Curation

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you for the contribution. It has been approved.

Some points for future parts:

  • Explain the code (what is pinMode, digitalWrite and so on)
  • What resistor should I use? how many ohms?
  • Use Fritzing so the circuit is more clear

You can contact us on Discord.
[utopian-moderator]

thank you for the approval @favcau @utopian-io ... copy! thanks for the reminders :)

thanks sir ^_^ hoping to be one :)

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 59220.04
ETH 2316.03
USDT 1.00
SBD 2.51