0% found this document useful (0 votes)
47 views

Arduino Installation and Simulation

This document provides information about installing and simulating Arduino programs. It discusses downloading and extracting the Arduino IDE, and then introduces two sites for simulating code without a physical Arduino board: Tinkercad and Wokwi. The document then covers various Arduino programming concepts like variables, data types, functions, conditions, loops, and arrays. It also discusses using breadboards for prototyping circuits and using pins for input and output.

Uploaded by

Jobeline Enrile
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Arduino Installation and Simulation

This document provides information about installing and simulating Arduino programs. It discusses downloading and extracting the Arduino IDE, and then introduces two sites for simulating code without a physical Arduino board: Tinkercad and Wokwi. The document then covers various Arduino programming concepts like variables, data types, functions, conditions, loops, and arrays. It also discusses using breadboards for prototyping circuits and using pins for input and output.

Uploaded by

Jobeline Enrile
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Arduino Installation and Simulation

Click the link for steps on how to download the Arduino IDE
https://docs.arduino.cc/software/ide-v1/tutorials/Windows. Installing Arduino will lead to you in this zip
folder.

After downloading the file, click the zip file and Select Extract All. After extracting all the files, click on
the Arduino IDE to begin the installation. Just click Next and then finish.
This is what Arduino IDE looks like. Void Setup and Void Loop are the default in the IDE. When you put
some codes in the Arduino IDE, it will only confirms that the code is correct but it wont show the result
because you need an ARDUINO BREADBOARD connecting to your laptop. You can simulate your code in
Tinkercad.

You can also simulate in https://wokwi.com. On the right side is the Arduino breadboard. Click the
Arrow with green background button to start the simulation.
The code's output can be seen in the image above. The Arduino board is operational, as indicated by the
green color on the right side. The code that says that if the button variable is set to 3, the serial monitor
will display the H, which indicates high status.

Then! Let's move forward and create our first Arduino program by simulating it in Tinkercad.

Go to Resources/Learning Center in your Tinkercad account. Select "New" with a plus sign. Furthermore,
Select your inclination whether it is to make 3D Blocks, Circuit and Code blocks.

Note: You can sign up for an account if you don't already have one, select student, and enter a
classroom with the code your instructor gives you.
Let’s create our project for Arduino. First, click the Tinker and choose the Circuits and Click Start
Tinkering.

This is the sample code when you simulate and test your Arduino board. It wont display anything in the
serial monitor since you didn’t put the code for display.
The breadboard circuit, which is merely a board for prototyping or building circuits, is one of the
components of ARDUINO UNO. It lets you make circuits without having to solder by placing parts and
connections on the board. Your connections are taken care of by the breadboard's holes, which hold
parts or wires in place and electrically connect them inside the board. It has a positive and negative
wires.

One of Arduino's parts is a resistor. The resistor is an electrical part that controls the voltage and
temperature. The variety shows how high or low the electric voltage and the electric flow stream.
There are 2 sorts of variables both the local and global variable. The local variable must be called inside
the function, while then again the global variable can be available even external the function. The
variable above needs to be declared before it can be used in the function, just like the variable button.

There are different types of data types in Arduino. The basics and most common used is the int, String,
bool and float. Each data types holds different value in programming a project.
Arduino also has a function. In the above example we created a function called
printEncodedNumber. The function has arithmetic equation which gives a result of 40.

Arduino has a condition function. In the above example, a condition was created. The variable
button will print L, which indicates low, and H, which indicates high, if the value is greater than
or equal to 2.
Arduino also has a loop function. In the above example we created a loop function. The for and
the while loop.

Arduino also has an array function. In the above example we created an array function. The
array that stores different numbers and it printed the value 12 in the array list.
Computerized pins will be utilized to compose information and read information from sensors and
actuators, separately. Digital pins can only exist in two states: They can be thought of as binary pins if
they are HIGH or LOW.

Simulating on how to light the LED in Arduino board. On the left side you will see the code, on
the right side you will see the result.

You might also like