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

4.Arduino Software

Arduino programming involves using a physical circuit board and an Integrated Development Environment (IDE) to write and upload code, known as sketches, to the board. Each sketch contains instructions for the board, and only one can be executed at a time. The programming includes defining pin numbers, setting modes for input or output, and controlling components like LEDs using specific functions.

Uploaded by

Misio Music
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views6 pages

4.Arduino Software

Arduino programming involves using a physical circuit board and an Integrated Development Environment (IDE) to write and upload code, known as sketches, to the board. Each sketch contains instructions for the board, and only one can be executed at a time. The programming includes defining pin numbers, setting modes for input or output, and controlling components like LEDs using specific functions.

Uploaded by

Misio Music
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Arduino software

What is Arduino Programming?

Arduino consists of both a physical programmable circuit


board (often referred to as a microcontroller) and a piece of
software, or IDE (Integrated Development Environment) that
runs on our computer, used to write and upload computer
code to the physical board
Arduino Software
• Once the circuit has been created on the breadboard, we will
need to upload the program (known as a sketch) to the Arduino. The
sketch is a set of instructions that tells the board what functions it
needs to perform.
• An Arduino board can only hold and perform one sketch at a
time.
• The software used to create Arduino sketches is called the IDE,
which stands for Integrated Development Environment.
Program Explanation

• Each line is ended with a semicolon (;)


• Initially we have to define or initialize the led with its pin
number.
• In the setup() method
We want to set the led to the output mode. We do this by calling a
special function called pin Mode (pin No, I/O)
• Since we are dealing with an output, we need to set it to a
constant called OUTPUT. If you were working with a sensor or
input it would be INPUT
• In the loop() method
Since the led are connected to digital pins, which are the
output modes, we use special method called Digital
Write (LED pin, HIGH/LOW)
• HIGH/LOW state indicates ON/OFF of LED
• Here, delay denotes the duration of LED pin to be
in HIGH or LOW state

You might also like