You are on page 1of 5

Date

MODULE 5

Arduino proqrommu'nq
Strucburc

vord setup

sba bernentls)
3
Vold loepC )

Stotement S),

i3unuhons

type PunuiornName parameBers)

Statement Cs)

i VariabeS
intx 14,
elassMALte
Date
Page

iv) louw control stotementS

ICoriable= =value).
Statement () 3
iCvorable value)
tStote rment (S)
Else

For Cinializa Hon, conol tyorn xpression


Stotement CS)3
whileCuorioble ??alue)
fstatement (s),}
dof
State ment(5),
while Cconditionsrue)

3. Smart aty IOT Arhutecure

Layers'

1Sreet loye

3 a t o center layer
4 Service loyer
elassute

Soehy i t e freliegion
Service Parking Lghting Red
Dashboar
Monagement||monoqemrt SearilHoagmt
Layer
Tntaret calw Reuk
Data okrret/other a l l vir tualitgkn FjMonagemcn
centtr
eooR Loccdion
Scvvftas
Scr vite Provide Engine
Layer Newok. CornputcIsoroge

scr .
Osmbuhon
Dsmuhon
Switch Switch.
Cit
Loyer

Steer Smart Lhts

Loyer Sersing J
Hobile
nodes
bokng Comcras o
Tolic RousensorE FR,LPRZVA DeTE
Sdubion Arthitechure

Smor& uty Seuriy Aruueture


Commn element (01 Seurity on nehwork toyer arc
Hreuwall locatco ot edgs ond shouuwd be
TPsc-ord 2VPN-ready ond tnude user-ond role
baxd access coneo L

ULAN- prourdes endto-cnd seqmentaton o


doto EronsuaSior
aassmAte
Date
Page

Encryption rotecttn g role yom sensor to appiabon


1S common requurerment to auord dato tampering

4 Arduin0 UNO lear ntng boar d.


Digi tol Pins

O0OOOCJDOOOO OO0C
Reseb
Button
Power LED

Jack Ardutn0

Rx O

TxRx
TEPS.

-Microcontroler

fouwer
Joc

Pocer Pins Analo Inrtt Pins

ython progr om or Raspberry Pi to blinl LeD

Lrport RPi.PIO o s GPID


PTO set mode CG1PTO.BCM
Pin 1a a s a n ouTPOT
61f TO Set upCI, LP10.0UT fon'g
lasSte
Dafe
poge

Cn rao sehuelo1,tPID.OuT) Fcong pin 82 as ouTrUT


P r O.output 13,PTo.HlGH# Tun LEDonpin (
GPID,ou tpu t (27,ueTO, HlbH #Turn LED On ein 2
Time sleepC
GPTD.output ( ,TO LOw)#TuhT LEDA Pin17
CTPTO. Outputlaa, b1PTO.LDu)#Turn LED hPn 2
Time cleepu)

* ***

You might also like