Iot Arduino
Iot Arduino
Poge
Avduino prognamnjing
epun-ÁOunLu aâvancemunt pruto typing patfoln
which cdeperd on stmple to-tiliy equipmant and.
pmg tamning.
can ad input- such as detecting the poo
Jiqtts enent tiggerec byaButton oa toitter
an respond into a yield for exanyle,
Masage and can
Suun the engine on the LED, Send data through onirg.
’Jnstnuctionsto dhe miciocontalle ase
sec auduino pmqramming ialect nahich duperá t
oiin and hanled tbanugh the etiligaticn c
Axduino Sottoae.
’ The Arduino is a Smal0 Compcer tbat qou can
proqiam to read infomation om the cood
arOund ou and to Send Commands to the
outside wsorld
Tiny computer that you can
can conneck.
Conneck to electical
crcuit
’ Tha makes it easy to TeOd inpuls - ead
data
fromte OufRide -dànd contnl
Command to the outside, output-send
> The broin ofhia boad
CAYduino Uno) is an
ATmeqas2kchip uoheae you. stoYrr yous proq1ams tht
you auduind uhattao
Why trduino 2
Arduino ia an open Souce product
harduca hich is accesihle and Aoftuae!
CustemNS. lleaihle to
Arduino is luaible beCasuE of offeing Naiily
Outpiti analug pins. SPI. and PoM.
te
Jact
Dt
FMCNDCOROLEN
Poge
ueid stupc).
Meid sctup L)
pinnicde(pin, NAUr); pin ceniqune as Snaut.
veid deepc)
AAeid doopc) Jlaiter calinq ketup).doop) furctis,
doe its task
digitad kste Cpín, Hlau); IL séts'pid oN
delayl0o00); paues for ten thovsand mili ser
digitaLlrste Cpin. ka); lse 'pin oE
delay Caonco), l paLLs for ten theusand mili se
HunctionA
mame
int seslt-0
kLut: Bum kuncls);
Lonstant
) TRuelFALSE -Boolan censtant trez1 and ale:0
LAelinsd.in logic Seven.
ex 12Cb=zTbe)
ldo something
pinModelI3,0UTPUD;
3) HIGqH ovo- uisd. to Ldeline pin leuels
HLGqe-1,ON.5 Ve{ts
LOp-0, OFE,0 VettA
ele
tatemet
2
(S); |L Ealuatd i
Cenpaite
Geth na laly kalue
5)do...hile- Botfum
eualatd lop , 1ame
as WwOKS
do
Dosomeitinq:
Metteds
a) pinlMoceCpio, Mao-nd to tetup) method to
ehliQue pin to behene aLneuro uTRT
pinMocepin INPUT) Ilpin át-toIPUT
pinLOde(pln, QuTPU pin Aet to uRUT
deait baing HIGittlLoo Valz digitas RacdGte
llas wsiu be equal to ínput Ain
Void loop ()
3)me
Meths
mlliscends
6)mitlis - Retuns cthe umba oe milieconds ta
alz miliso;Ikval'niebe egLal to mellis
4)math
methocs
)minlq)- caluks minimaum of Qneembons
MaleYnint Cvalo)
Ilsca'no' to
(0 (e
bmar(zy)- val=max (vat0); |l set 'vatto dageu
than O0 (o0100
> Pandom
methods
a) RndonSted (value)-Aati a valuelseed at Ktastingpoint
6) Random(mio,mar)-Alous to etun mumbe ithin
the sang sperifed by min and
mac walues
wal: sandam Coo 20);llset'va'to randem
Mumbea betuseon (00-90O.
eample int mumbe: lvaiabll tostore Tandom Value
int oc=10
Void Setup)
0-200
analcg Waie Cainumbed; loutpute PaM Signal
dulay's):.
5)Saial
Metthods
Suial.beqinCrat)-Gpens hsial_port QndAct the baud
uate fo Aiial dato hansmisias
Saial begin(9600):
ldata) -piot data to the eial
BSuial-printto Cvalue; llsende tfe
Seaial pntln 'Valudo eua!
'valud: ll Aend the
monit0A