Objective 1) To Configure The Pin 2 To Pin 13 of The Arduino Board. 2) To Create Program That Simulates 10 Lights Sequence
Objective 1) To Configure The Pin 2 To Pin 13 of The Arduino Board. 2) To Create Program That Simulates 10 Lights Sequence
Analog Input 1
Objective
Materials
1 – Breadboard
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
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.
a) pinMode(); ?
The function pinMode() determines the specified pin to act either as an input or an
output.
b) digitalWrite();?
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.
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
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