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

FIOT Assignment

The document provides an overview of Arduino programming, detailing the use of microcontrollers for electronic projects and the programming language based on C++. It explains the structure of an Arduino program, including the setup and loop functions, as well as how to connect various sensors and modules for communication. Additionally, it touches on data types in Python and basic programming concepts such as conditionals and loops.

Uploaded by

bharathpatel612
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 views8 pages

FIOT Assignment

The document provides an overview of Arduino programming, detailing the use of microcontrollers for electronic projects and the programming language based on C++. It explains the structure of an Arduino program, including the setup and loop functions, as well as how to connect various sensors and modules for communication. Additionally, it touches on data types in Python and basic programming concepts such as conditionals and loops.

Uploaded by

bharathpatel612
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/ 8

FIDT Asiomen

jE-plain obaut Ardio Proamg hth on

Ahduino microcontolleros , hich se populas ss buildng


elechronñe Prjgets, he pragya mmYhg language used iG
bsed on clett,ond he Adao todegvalrd Develaprmmt
Envírbnment (ioests uaed to uwite and up leod tode to
Ahe Arduino boand.
*Basic Scue o an Aruino Proqya
AAdufns proqvarn, len called a"seetch', hypcatly
Consits d uo ma hunctons:
ohen the
1,sehup() his Ponchsh'uns onte wben the prgran
stals. 1s used to foikalize vaiables, pYh modes
and oheo Sing.
canthususly ateo, he
'sotups' unchon. Tt conlats he maYo code that sill
eiecute

Const t ledPo 13;


vord sotucot
phMode CledPo,OuTrUT);

voTd loop()
dratallJnte (ledi,, HlGH);
delay (l00o);
diakltahte (ledfh, Lou);
delay (looc);

involves, inden standg he Connmuhcahon prhuds


hey use ond connctig herm Oppsaely o,
Aduins's pYns, Heoe's"a bieakdoon o to romon
loT deuices ond how o teafar e hen oith
'an Adtino:
J,ensos (eq, Temperatue Humdty oton, aht:
Comreunahon of leo ust araloq oy Jig:tal sitnds,
T2C ,6Y S .

SAnaloq senséas3 Cornt the sensa's analog ouput pio


to one atthe Aeanos anaoq nput pns (Ab-A 5).
Readthe analeg value usng 'anabgle ad(s'.
") Draital Steso: Com et one o Aduinos diad pins (a-,
Ao-A% yd s draita) S.pead he digrlad stake
usny
dqtal Dead(s'.
ii> T)c Sensa Cormec SoA to soA pin (A4 Bn Üno) «nd
ScL to scL ph CAh on UnoJoUse the ire' ibramy
(ommuntation.
o. Ac luats Ceq-, Qalays, Motrs) :
. (ommunica tion :pically Conbled Jatras sianals.
Jaleabcirg:

pinHl64 o Low th swifeh he gelay.


y Motes: olMen gafe
egue nohoy
rotur daves sheelds ciraik
leq:l29N) ac they nerd moe powes and centl shnas.
,Com mnicodibn Moduwe
(ea,ESPs266/Esr32 Wifi, Bluetooth
Neddes e He-o5):
.coro ro uniicatiors: Pimanily Senia) (UATSSoae EsP3
modes also suppot DC and sPi.

iy Sesial (UART): Conoe t He mudules TX


CTransmst)pin
A the Asduins's Rx (Recejve) pn and the mode's RV
CReceive) pin to he Anduino s Ty (Tean sm)pio we the
Semal stoone Sesial lihsay tornmunitahion
4, Disglayr : (eq-, LeD, oLE DS:
·Cormnunicdion, Can use parcallel drg stanals, 12csp!.

is Pona lel Lp632): toneect muliple daa pins,


torl
pins (R'S,EN,eu)and polopolground. Bse ite Ligud(yld.k

Ne cigurdcyga)T2 C.h.
Daa ypo otth suitabe
A
P thon esan
Pthon Data yre
me afe ypes Theye epeenh numenta eloc,
" int (ategen); Represroh whde nombed uith but any
Jecimo púl
age-30
year 2025
Count 0
Pn(type(age)) # Outptsceless'a's

sth a decima) pot.


p3.1459

temp e25.5

torn plen Ctomplex numbes:epesenh' num bet in te


troro a+bf.

pánt (typc tz ))

piot (nane LoJ)


denedond muee colle cheo ttns (d:fleoeat

puroben futts = 1,'bgple".


pint (hypet nubeas baitts ) 2,"bahanal,3"chny,4]
nunbes =L1,3,4,6)
pot Chype Cnambens))
hde: nded and ommubale calleahoo o Thens
Encasl
ng ponerheses c.

CvCnsdiahe s (10, Lo)


emhplecs

cequenee numbed and

Cven-nutn range (b, 10,2


pin (1s (numbens))
pint Ctyre (numbem)

set: Reprenoh
seh are mwalse-Daplira aoe abm atitally emoved.
ngms=1,2,3) 3, t, 5

pdnt Chype (numss)


-value pae.
Dichonasle ane maae,
,'ag 30banth

*Suiente :88

pint (shdoo)
pnt (hpe (shdeat)
prict (shudent "Branch )
Shudent (ethe] "yp
peint( shudeot)

bosl (Booean)* epelenb one ot has ps/He valus:

of toqtab opeoalions.
Gi isvalid Te
is tished- Fele
psint(is. al rd)
pint(hype (s_Anntrd)
e(5)3)
pnt Creuy

tython sth sutteble taom ples,


A: Condihan a Statement :it and else
ag 35
i age y=13:
print (oo ane
pnt ("ThTS salement N ays be enecald)

.Ke elie Shademen pouides abocle o cude tha s


uled he coo ?n he precedng i
-le Ao
ce, Ap ese bloclk i optonal and con stotomont
brnls apean

psint (^I's a wa

Pint I's a bi chily


rni "Enfage weatter,")
Loyhaishaternenh lop

Seaiere (sch as alit, typle,shinq,


Ahenabe obiec
S)ruts Uapd", banana,"ihern1
pYntcAart)

pint Csep)
briel
5)Deae beleen l0T end MaM ib
TOT(Irtrorek de MaM( Machheh
Machíae
Connecty frinani inteonel- bayedYomb-Point; Vo
nehwues (celala,
notalas fateond
StoeBrondydivtse dates
and
Applicahon's ndustaalf business

aCrbSS
ntgraia liolsd; Rteo' cloed
and propoielany
Syens
automahion -acro3s domains
ontl, and speol
data rrhanat.
Can be limied and

Hurmao |challegma h sale


Jterachionrheates and apps bumon ftexachon
Pobcels shandad frdesne adrtd ppielr
paoul s(HTTe,
(M
MOT)ndushal
prtcls
Evolution Evo wed fdrg MM
fre caoY b DoT.

You might also like