0% found this document useful (0 votes)
52 views6 pages

Objective 1) To Configure The Pin 2 To Pin 13 of The Arduino Board. 2) To Create Program That Simulates 10 Lights Sequence

1) The document describes an objective to configure pins 2-13 on an Arduino board and create a program to simulate a 10 light sequence. 2) The materials listed include a breadboard, Arduino Uno board, 10 330Ω resistors, and 10 LEDs in red, yellow, and green. 3) The document provides code sections to write the light sequence program and questions about LED components and Arduino functions like pinMode(), digitalWrite(), and delay().
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views6 pages

Objective 1) To Configure The Pin 2 To Pin 13 of The Arduino Board. 2) To Create Program That Simulates 10 Lights Sequence

1) The document describes an objective to configure pins 2-13 on an Arduino board and create a program to simulate a 10 light sequence. 2) The materials listed include a breadboard, Arduino Uno board, 10 330Ω resistors, and 10 LEDs in red, yellow, and green. 3) The document provides code sections to write the light sequence program and questions about LED components and Arduino functions like pinMode(), digitalWrite(), and delay().
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

BTC 319 – Microprocessors and Peripherals

Analog Input 1

Objective

1) To configure the pin 2 to pin 13 of the Arduino board.


2) To create program that simulates 10 lights sequence.

Materials

1 – Breadboard

1 – Arduino Uno Board 10 – 330Ω


10 – Light Emitting Diode (LED) Red, Yellow, Green

Configuration

1|Page
BTC 319 – Microprocessors and Peripherals

Place your code in this section. You may use separate sheet for other light
sequence.

2|Page
BTC 319 – Microprocessors and Peripherals

1) What part of the LED is the:

a) cathode?

The cathode is the negative side of the LED where the current leaves the diode and
it is the shorter pin.

b) anode?

The anode is the positive side of the LED where the current enters the diode and it
is the longer pin.

2) What the purpose of:

a) pinMode(); ?

The function pinMode() determines the specified pin to act either as an input or an
output.

b) digitalWrite();?

The function digitalWrite() is used to write a HIGH or a LOW value to a digital


pin.

c) delay();?

The function delay() is used to pause the program for a certain number of time
specified as parameter.

3|Page
BTC 319 – Microprocessors and Peripherals

Cite the steps or procedure you carried out for this workshop.

 First, we open the stimulator we used in this workshop, the TINKERCAD.

 We gather all our thoughts about the possible design we can come up with the provided
materials and of course the objective.

 We started to put all the materials and as we completed it, we began to structure our code.

 We decided to use the text rather that the block or the block + text because for us, it is more
4|Page
BTC 319 – Microprocessors and Peripherals

understandable and it focuses on our objective.

 Upon stimulating the configuration of the LED sequence, we observed that the LED light
turned on started from LED2, LED4, LED 6, LED8, LED10, LED1, LED3, LED5, LED7,
LED9 and after certain number of times specified as parameter it turned off started from
LED1 up to LED10.

5|Page
BTC 319 – Microprocessors and Peripherals

6|Page

You might also like