Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Case

Arduino

Rating
-
Sold
-
Pages
8
Grade
A
Uploaded on
05-04-2022
Written in
2021/2022

The basic way to learn Arduino

Institution
Course

Content preview

1




TITLE: INTRODUCTION TO ARDUINO MICROCONTROLLER
SIMULATOR

Learning Outcome: 1. To identify the structure of Arduino microcontroller simulator (CLO3)
2. To identify the function of Arduino microcontroller simulator. (CLO3)

Tools :
Software
Arduino IDE
Arduino Simulator (UnoArduSim.exe)
Procedures :

ACTIVITY : USING THE ARDUINO SIMULATOR

1. Install Arduino Software.
2. Run UnoArduSim.exe program on your computer. Arduino UNO board will be
displayed as the simulator is only capable to simulate the Arduino UNO board.
3. Go to File -> Load INO or PDE program -> Program Files(x86) -> Arduino -> Select
Examples -> 01.Basics -> Blink from Arduino default folder. A sketch will be opened
up.
4. Click ‘Run’ icon (the light green/red down-pointing-arrow icon).




5. Visualize the result. You should see that the yellow on board LED blinks with one
second of delay between on and off period.

OBSERVATION Marks (1m)
Step 5: LED will be blink in one second according to the program (Press
downward/green arrow button will blinking the LED until the stop
button is press however the red arrow button it will display the
sequence of blinking the LED only once and needed to press it
again).

, 1



First LED


Second LED



On Board LED




6. Change the First LED input box to ‘13’. Visualize what happens.
OBSERVATION Marks (1m)
LED on pin 13 for first input box will be blink when press the
Step 6: green/red arrow button during one second of delay.

7. Enter the code editor by clicking ‘File -> Edit/View menu. Alternately, you can
doubleclick the sketch line to get the same result. After the View/Edit Program
window has appeared, edit the code so that pin 12 on the Arduino board follows the
behavior of pin 13 (Hint: pinMode, digitalWrite). Click ‘Adopt’ once you have done
editing. Change the Second LED input box to 12 to make the output becomes visible.
OBSERVATION Marks (1m)
The LED on pin 12 for second box is blinking according to the
Step 7: program.

8. Alter the code once again to make the Second LED blinks alternately to the First LED.
Modified Coding Marks (1m)
void setup()
{
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever void
loop() { digitalWrite(13, HIGH); // turn the LED on (HIGH
Step 8: is the
voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the
voltage LOW
delay(1000); // wait for a second
digitalWrite(12, HIGH); // turn the LED on (HIGH is the
voltage level)
delay(1000); // wait for a second
digitalWrite(12, LOW); // turn the LED off by making the
voltage LOW
delay(1000); } // wait for a second

OBSERVATION Marks (1m)

Written for

Institution
Course

Document information

Uploaded on
April 5, 2022
Number of pages
8
Written in
2021/2022
Type
CASE
Professor(s)
Azlina
Grade
A

Subjects

$11.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
Amir1024

Get to know the seller

Seller avatar
Amir1024 Politeknik
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions