0% found this document useful (0 votes)
7 views

IOT Lab Programs

Uploaded by

Chandana T
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

IOT Lab Programs

Uploaded by

Chandana T
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

te

nter " ED
input
wil Cneate
Pracedune
endConnet Kaspkery R
Components
n Diagramn
Cincut
"ot!.
uad tne to
il "entatiod
tzt Gnound one
Aomontt
nead tinig
. end PageNo.
fem Once
l6)
fele' the
off.tt Re! ff in the
ond giin tt pi
lo:00
bondLEDte
tn HAMIPouser Jump
ndlED tinme ami M-F
Bread
beand
the
Atant for pin ddoptur
EDJgivmfeldure
occws
l-ve to
to
Stops
blinking on.txt" thvough 14 VGnA wies
omd ath
the
linking Convetu
cnput ord nesise) UsB
and aon aoths
cable
l1b5
ago

Experiment No.

Thue
hile P CaPI0.
GaGaPTO inaport
pin impot
CFalae)inaport
sebsannings GaeT0
RPi. Alashan
the
t. neadltoOn
nead)OE (timesttimeAth
. prini h) TD
the
Aetup
setmsde time
print
ON")2EDprint time
date tuw9 dER
=
datetine, pin
(GaPT0, tinaes at
CAame , a Date.
GaP+O. gien
ROARD) ane
time 34].24.
datetiaenoC) QUT) taken time
)
en
dnem
andoy
a
stntimel
e
cyle. Page No
3
Output ExperimentNo
Date
Page No
The LED is twned on long os the tie n
"2ED ON n te
on.tat is sant as the aystnatit, prànang tiane. sleeplt)
9n the AUeen. afrO. autput (pin, falae
print ("EDo]
Page No

Experiment No. Date Page No. 15


Cincuit Diagnam
dED OFF ON sing
Procedne
. Connet heene end af Hae buttena to pial inpi
beand and theath aad to Geund (9 cn P
(O)

Comnet led pastkie to plull ia pi baand CaP rora)


ownd wnegatie ed toGnound lG) thrsugh neaisbn
belutie
Componenis uimporttime
Rasphevy p boanol Brcad boand Limpet RP. GaPîo as GaPTo
M-F Jump wës GprO.sebmode (GaPro. RCM)
Resisto Q Chrs buttn =l8 #12
Buttem HOMI to VGA Conet #1
CaPLO Aetup L6A, GaPTO. OUT)
Gaero. thup Cbutoa, aPrO. TN pulla paewn =GPIO.
Output PcD UP)
while Tnue'
LED Us off nomolly bwt ohn the butlou us prwsea
ond teld ED trn ON, printiug 2ED ON on GaPTO. autputlled, True)
the Aoneen, butlon id print lED ON
LES Switches off
·prntig titslep l)
GaPTO sulaut [led. talae)
pint(LEDOFE)
ExperimentNo. Date.
Page No 16

tranmit a stning sing UART

Tnansiter ) main puse ls to thansnit


Land eieat Aial Atrinq aata sing Aenial
Communication

bae Code.

dtring nane

int ogei
feat hagbh;
oid setuplli
benial. kegin (26p0);

oid losp ()
Senial pnintln ("Enter yaur name ):
Jhile Senialasailable c)= =0)

Svial. ead Stning j


Serial. phinthn ('luuding nae
dtlayiaoo);
Senial-printa ('aten
Ahile /Seial aNailable co o)
ExperimentNo.. Date.

Output
Enter yeut
Smding mame Geial-panse Tatl);
lnien you agei
Sending age hile delay Lia oo0)
Entu yur Height eel. Gneh:
Senial pnintln ("baten youn Height Teck. Jachi Ji
ávding heighd - -

hile L6enial arcailable () ==0)

Helle Chandane
yeu ae
yeas eld and
Aeighi = Belial panse Aloat ()
Senial pnintln l"Sudiuq hcight.
Yeu ate 5.4 tall delay LSO00);

vaidcisplay L)
Serialptint ("Helle ":
Soial phint lnamel
&uial priatla l"you ane")
sUial printlagel:
Bial.println 'Veans ad and Ji
-serial. phintln (" You ane)
Beial pnint lheight)i
Seial print CtalD:
Compenents
LEDboand
Anduine Cincuit
namiaq
Output Resiat
The Rr

LED

Page o

blinka

and.
Bnead
Boand
Vump
ois

Experiment No.

Blink
ldeliaaa)cligital
ay Lidlooa);ay digital pin
Mede
aete ite
LceD- LED
(lED- [LED
BUZLIIN, Date.
RUILIN,
BUILT
IN, HIGa oUTPUT)
LOL); H)

Page19
No
ate

Output >
iagkam
Cincuit

World
Hello ! 12

GIND

GaND

GND 16
- 14
-2 3 G
3
-3 -6
-5V
5V

Experiment No

cemtot,=75
setup
scoid
()i int
<liquidlaystal.h
include Di#yplsiLCAnagy
settounas
ledpnint led.
analag
Larite
("He
l6,
l e to,a)
contnast Date.

Laerld Anduina
boand
)i
"

No9Page

You might also like