IoT Exp-4 - Removed
IoT Exp-4 - Removed
l(llJNfD
MANNUAL
ARM/ARDUINO BASED PROGRAMMING
. · .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.
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. •
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
-~
°'Wanln •...........-...!"lduck-1"
---··-· hbr~ •
.....,.,,_,..__ ...,.,,,____ .....,,...
Sh~wl1fo, • 811fn Nftrt~
••• ••jt -·--- --·- -- -
)(" l'aYOnll~ N~m11
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 -
, •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
,.,. .,.. _
~
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
--
L-~-
•..,-
I~ ...... ..,,,__
-~--,-
c;:... . , _
.,.
-:-.,,, .... ..,--..1..,.,.,_.
-« ■ ..
~-- .......
., ; wus,cw
•
'
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.\