CP323L - Experiment 1
CP323L - Experiment 1
INTRODUCTION IN ARDUINO
Experiment #1
MICROPROCESSOR SYSTEMS
NAME:
STUDENT NUMBER:
DATE OF SUBMISSION:
PROFESSOR
To access their documentation and support for the Microcontroller, visit the website
https://www.arduino.cc/en/Tutorial/HomePage
Objectives:
Procedure:
1. Create a basic circuit diagram with 8 LEDs, 1 switch, and Arduino UNO.
2. Connect the components using the connecting wires and the breadboard.
3. Power ON the ARDUINO by connecting the USB Cable to your PC/Laptop.
4. Make sure that the ARDUINO IDE has recognized your ARDUINO UNO.
5. Try the sample code located in the File > Examples > Basic > Blinking LED.
6. Make sure that you connect your LED first on PIN 13 to be able to test the code
and its connection.
7. Document #6, and copy the code and explain each part of the code.
8. Produce the following LED lighting pattern combinations:
a. All LEDs must light ON
b. Blinking LEDs when switch is ON
c. Alternate blinking LEDs when the switch is ON
9. Add another switch (for a total of 2 switches), and 8 LEDs. Produce the following
LED Lighting Pattern Combinations:
Activity Questions:
1. Based on this activity, what does digitalWrite() manipulates? How do you initiate
it?
2. Does the current and voltage load affect the LED? Why or why not?
3. Can you implement the alternate ON/OFF of LEDs without using delay?
Conclusion: