0% found this document useful (0 votes)
14 views5 pages

IoT Exp-4 - Removed

Uploaded by

mallikarjunm2004
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)
14 views5 pages

IoT Exp-4 - Removed

Uploaded by

mallikarjunm2004
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/ 5

I TECHNOLOGIES

l(llJNfD
MANNUAL
ARM/ARDUINO BASED PROGRAMMING

You have cho;en to open:


II arduino-nightfy-windows-DP
whi.ch is: WinRAR ZIP •rchive (148 MB)
from: https:,'/downloads.arduino.cc
.. .-----~··-- -·-
~ What should Firefox do with this file?~-------

. · .aul) ,1 •
..... ~ ,.,..
~. "pen with •WinRAR ~rch~S (<!~: ~- ~ •
~ lit t.~ - ;:,- Ati 1~ , , ¥ - - · · • · 1 • # - · - - . . . . . . . . ., . . . . ~
....-••···-•u•---.. ~:i
r-••••·•·..•••••:•:•••·••••-,.••••..n••-••••••• ....................-••• .. ••••• .. •••••••- -=r••••••-•••••••••-•..••••••-•-••"•••••,.,...........(

,1ti\, Save
~ ,.7:':H File
...................................... "'.•.••- ....................... . ..............·-·········"···---

[E] Do this 1utomatically for files fike this from now on.

_,. ... ---·--- ---·- ----··- --·---


I;,;
o ~ Cancel ]

Step 3 - Power up your board.

The Arduino Uno, Mega, Duemilanove and Arduino Nano automatically draw power
from either, the USB connection to the computer or an external power supply. If you are
using an Arduino
. Diecimila, youhave to make sure that the board. is configured to draw
power from the USB connection. The power source is selected with a jumper, a small
piece of plastic that fits onto two of the three pins between the lJSB and po,ver jacks.
Check that it is on the two pins closest to the USB port.

Connect the Arduino board to your computer using the USB cable The gr
. · . een power
LED (labeled PWR)should glow. •

Step 4 - Launch Arduino IDE.

After your Arduino IDE software is downloaded you Deed to unz · th -&'..
' 1P e ,older. Inside the
folder, you can find the application icon with an infinity label ( . .
. . app1icat1on.exe). Double-
chck the icon to start the IDE.

Page 8 7
ARM/ARDUINO BASED PROGRAMMING MANNUAL KRINYDI TECHNOLOGIES

~ 1£ • C:omput., • Looi 0kt (C:) • P....am t-llH • Arduino •

-~
°'Wanln •...........-...!"lduck-1"
---··-· hbr~ •
.....,.,,_,..__ ...,.,,,____ .....,,...
Sh~wl1fo, • 811fn Nftrt~
••• ••jt -·--- --·- -- -
)(" l'aYOnll~ N~m11

JL dn'Ycra 9!lJIXYI.~ l·i◄ IIM ,,1cf"'lf4"•


i:a Do-..nloiek JI,~ !il17/lOI' 1·JI l>M r.~ f tJld,:,r
\ll Rt<.• HKtt Ji.......,.,. 9m,ms 1.n PM fit~ fokte,
Jl ..... •M1~1·2SPM ,.i.to~
. . l.ibrlri" ~ l,b "J-!21/2015 l")?~M ,~,ot:tM
a)~~ JLlibr""' i1/UJ~; ~ PM ;-"!lt,,◊11,ff
JlMialc !?:271.t0-15 J·.6 rM "'~fcldtt
u ,1c,- iNfl1wn<• :/~<
.;J,,OM 9flNlOP 1,;i~ i1M 1'ii.to~
■ V•d- •~~~ •M.6/1,)IH .v'9 9M ·~pflt~
Af,p!•ot,c:,n
~~

J.BX9
.M.._._dwuf '.iftli}2tU4 l.A6 FM
9,(7.C:9
illl ~OfflpUt« ls C')'p(OflV,2.dl 9/16/20t~ ~~ PM 1-r,p:lotior, ~<IN, •
t-mo
~ <>'~•"'·
.,_ Loc_M~(O) , WJ.~~PM Af)pGc:.,ti:,i, ...te,,s.-
.l.pril\<.ttlon • ~ ·
~:,a
Q MTC MMlfJt (Oij f:!-: NbusbO..• l)/.11,/-X>l• !<d6 l'M
Q ~ATIOft lt(HtlOl04; r?.~ M0/2:01..t ~M PM 'Tfltt~O,,,,l!t'lt -~'°
~ llltderial. . 9/lll.lO!~ l"6 PM AppllUtlOf\ o:uru- 16lCI
J.ppnation 402 ,e
.,.,iftstalt 9aJl2!)U lr:af> P.M


,
' Step 5 - Open your first project.
Once the software starts, you have two options -

,' • Create a new project.


• Open an existing project
ex.ample.
• To create a new project, select

' File~ New

, •t

Sere,..,__ Cllf,.Sfuft• i
I
l
u,INd. a,l•U
u,a-,u.-,, ....-- Od•~•U

I I

Page9
OLOGIES
KRfHYDI TECHN

NUAL
SED PROGRAMMING MAN
ARM/ARDUJNO BA ics ~ B lin k.
Pie _ . Bas
l t F ile _ .. Exa m
ec
ng pr oject example, se
T o op en an existi

a,, e.w ....,..._,,


c:. .-s
.........,_.....
.
~~

,.,. .,.. _
~
c::.. -·S, hilll l•'S

........ ~, ,_.., ._ ~ ~ ., ~ .
<:¥ +11
~
_ ,, _ _ ·.
. fl
. ~

~ ·
,::::~.:.;-- :
~

C ...,

AO.._
..,

n
na m e B li n k . It turns th e L E D o
es with th e
e se le ct in g ju st one o f the exampl e list.
H er e, w e ar
n se le ct an y ot he r example from th
ca
e time delay. You
an d o ff withsom
ur Ardui no board.
S te p 6 - Select yo u m us t se le ct th e co
rr ec t
th e bo ar d, yo
program to
w hi le uploading your r.
T o av oi d an y er ro r
e bo ar d co nn ec te d to yo ur co m pu te
with th
e, which matches
A rd ui no boardnam
ard.
T oo ls ~ B oa rd and select your bo
G o to

... ... ...


.... . a:-. c ...~ ... c;,_-- •
..,.

--
L-~-
•..,-
I~ ...... ..,,,__
-~--,-
c;:... . , _
.,.
-:-.,,, .... ..,--..1..,.,.,_.
-« ■ ..

~-- .......
., ; wus,cw

Uno board a d' bu t yo u m us t se


lect
lected Arduino g to ou r tutorial,
H er e, w e ha ve se ccor Jo s
• nr .tl S
TS CI INOa
l(JllNYOI ,v -

ARM/ARDUINO BASED PR MING MANNUAL


OGRAM

A- · Used to check if the


re is any
compilation error. B - Used
to
upload a program to the Ardu
ino
board.C - Shortcut used to
create a
new sketch.
D - Used to directly open on
e of the example sketch.
E _ us ed to save your sketch
.
F _ Serial monitor used to
receive serial data from the
board and send the serial data to
board. the

Now, simply click the "Uplo


ad" button in the environme
nt. Wait a few seconds; yo
see th~ RX and TX LEDs on u will
the board, flashing. If the up
load is successful, the m
"Done uploading" will appe essage
ar inthe status bar.
Note - If you have an Ardu
ino Mini, NG, or other bo
ard, you need to press th
button physically on the bo e reset
ard, immediately before cli
cking the upload button on
Arduino Software. th e

• ••• Arduino - Pt og ra m Str


uc,ture
In this chapter, we will stu
dy in depth, the Arduino pro
gram stru tu .
more new tern1inologies us
ed in the Arduino world.
The
C re and we
Antu.
w,n. learn
a •no software is op en -
Page 12
JI
ARM/ARDUINO BASED PROGRAMMING MANNUAL KRINYDI TECHNOLOGIES

'
f

source. The source code for the Java environment is released under the GPL and the
CIC++ microcontroller libraries are under the LGPL.

Sketch -The first new terminology is the Arduino program called "sketch".

Structure

Arduino programs can be divided in three main parts: Structure, Values (variables
and constants), and Functions. In this tutorial, we will learn about the Arduino software
'r
program, step by step, and how we can write the program without any syntax or
compilation error.

Let us start with the Structure. Software structure consists of two main functions -

• Setup( ) function

• Loop( ) function

•____ J.

I v.:.dcl :setup ()

't I
(

vcd d :Lc»opl ( )
(

' J_
'
'
'g t
~oid setup (
.
t
t -
It
j
Page 13
~

~
Kl.\

You might also like