You are on page 1of 49

11 jeks tallh

wka;¾cd,h yd ine|s Wmdx.


wka;¾cd,h yd ine|s Wmdx.

wka;¾cd,h yd ine|s Wmdx. ^IoT Internet of Things&


hkq" l=vd fN!;sl mrs.Kl Wmdx.hs" fñjd cd,dx.
jYfhka o ye|skafúhs' ixfõol fyda fjk;a úúO
Wmdx. iuÕ iïnkaO l, yel’ bka miqj mrs.Kl
jevigyka ls%hd;aul lr tu Wmdx. md,kh l, yel’
fuu cd,x. fhdod.;a úg iq<Õ” WIaK;ajh"
wdf,dalh jeks fN!;sl idol j, we;s jk fjkialï
ixfúol Tiafia yÿkdf.k Bg wod, o;a; mrs.Kl
moaO;sh fj; ,ndosh yelsh' bkamiqj tu o;a;
fjkqfjka ,ndfok m%;spdr ÿria;j isg fyda
wka;¾cd,h Tiafia fyda ,ndosh yel’
fuu cd,dx.j, we;s úfYaI;ajh fjkafka tajd

• m%udkfhka l=vd ùu
• wvq úÿ,s n,hlska l%shd;aul
• fndfyda Wmdx. ñf,ka wju ùu
laIqø ilik ixj¾Ok moaO;s
fufia cd,dx. f,i Ndú;d lrk mrs.Kl moaO;s" laIqø
ilik ixj¾Ok moaO;s ^MDS-microprocessor
development system& f,i yÿkajhs’ fuh l=vd
m%udkfha uhsfl%d mrs.Klhls’ fujd hï ksYaÑ;
ld¾hla isÿlsrSu i|yd Ndú;d fú’ fmdÿfú .; úg
l=uk fyda iaxjhl%Sh bf,lafg%dksla Wmlrkhla
fjf;d;a th l%Shd;aul fjkafka fujeks laIqø ilik
ixj¾Ok moaO;s Wojqfjks’
laIqø ilik ixj¾Ok
moaO;sfha uq,sl Wmdx.

• Microcontroller(CPU)
• RAM
• ROM
• Flash Memory
• Control Unit
laIqø ilik ixj¾Ok moaO;s i|yd Wodyrk’
• Ys;lrk” uhsfl%dfúõ Wÿka” fros fidaok hka;%
• idudkH m%skag¾" *elaia hka;%” ialek¾ iy fi,a,ï NdKav
• ksjfia n,an wka;¾ cd,h yryd l%shd;aul lsrSu” weÕs,s
i,l=Kq yÿkdf.k fodr w.=Ÿ yerSu” wk;=re ix{d
moaO;s”
• .=jka hdkd” frdafnda hka;%” jdyk” l¾udka; Yd,dj,
;sfnk hka;%
• lD;su yoj;a” lD;su jl=.vq
m%lg laIqø ilik ixj¾Ok moaO;s
Arduino Development Board
Raspberry Pi Development Board
micro:bit Development Board
The Intel Galileo Development Board
laIqø ilik ixj¾Ok moaO;s iuÕ
Ndú;d jk bf,lafg%dksl Wmdx.

• Resistor
• Diode
• Light Emitting Diode

• Light Dependent Resistor


Resistor
bf,alafg%dksl mrsm:j,
Odrd md,k Wml%uhla
f,i m%;sfrdaol Ndú;d
lrhs’
Wod’
220”
100K,
22K
Diode
tla osYdjlg mukla úÿ,s Odrdj .uka lrhs
LED [Light Emitting Diode]
LDR [Light Dependent Resistor]
fuu Wmdx.hg jefgk wdf,dl m%udkh wkqj .,k
úÿ,s Odrdj ;srkh fú'
Temperature Sensor – LM35
fuu Wmdx.h ;dmhg ixfúo Wmdx.ls‘ fuys ixfúoS
;djh -550 C to 15O0C
Transistor
bf,alafg%dksl mrsm:j, iaúphla f,i Ndú;d fú’
wdvqBfkda - Arduino
wdvqBfkda hkq laIqø ilik ixj¾Ok moaO;shls’
wdvqBfkda ydâfjhd iy fid*aÜfjhd Umkafidaia
udos,sfha tlla ksid fuys mrs.Kl jevigyk" fla;
iy mrsm: mqjre ksoyfia fjkia lr Ndú;d l< yel’
wdvqBfkda ydâfjhd fldgi store.arduino.cc hk fjí
wvúh fj; msúi ñ,oS .; yel’ wdvqBfkda uDÿldx.h
https://www.arduino.cc/en/Main/Software hk
fjí wvúh ,nd .; yel’
wdvqBfkda - Arduino
Blinking Onboard Led
void setup() {
// put your setup code here, to run once:
pinMode(13,OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(13,HIGH);
delay(1000);
digitalWrite(13,LOW);
delay(1000);
}
Data Types
Blinking Led on Bread board

+ -
Schematic Diagram
<Source Code>
Int ledPin=3;

void setup() {
pinMode(ledPin,OUTPUT);
}

void loop() {
digitalWrite(ledPin,HIGH);
delay(1000);
digitalWrite(ledPin,LOW);
delay(1000);
}
<Flow Chart>

<declare variables>
<setup> function
<loop> function
<Flow Chart>
START START START
led_blinker letup() loop()

declare digital Set ledPin


configure ledPin High
I/O pin 3 as
as Output
ledPin
Wait
500ms
STOP
setup()
Setup() Set ledPin
low

Loop() Wait
500ms

STOP
loop()
Push Button Switch – On and Off LED
Push Button Switch – On and Off LED
Schematic Diagram
<Source Code>
//Working with Push Button Switch
int switch_v=2;
int ledPin=3;

void setup() {
pinMode(switch_v, INPUT);
pinMode(ledPin, OUTPUT);

}
void loop() {
switch_v = digitalRead(2);
digitalWrite(ledPin, switch_v);
}
<Flow Chart>
START START START
p_button letup() loop()

Declare digital Read


configure ledPin
I/O pin 2 as switch_V at
as output
switch_V digital pin 2

declare digital configure


I/O pin 3 as set ledPin into
switch_V as switch_V value
ledPin input

setup() STOP STOP


Setup() loop()

Loop()
On a LED When Dark Detected
Schematic Diagram
<Source Code>
int ldrPin = A0;
int ledPin = 8;

void setup()
{
pinMode(ldrPin ,INPUT);
pinMode(ledPin,OUTPUT);

void loop() {
int sensorValue = analogRead(ldrPin);
<Source Code>
if (sensorValue < 150)
{
digitalWrite(ledPin,HIGH);
}
else
{
digitalWrite(ledPin,LOW);
}

}
<Flow Chart>
START START START
Auto_Light letup() loop()

Declare Analog Read sensorValue


configure ldrPin
input pin A0 as at ldrPin pin A0
as input
idrPin

declare digital
I/O pin 8 as configure ledPin If
ledPin as output F sensorV T
alue
<150
setup() STOP
set ledPin set ledPin
Setup()
Low High
Loop()

STOP
loop()
Auto Fan
Turns on and off a Motor of a Fan depending on the
room temperature

LM 35 Transistor
Vout C

+ GND E B
Schematic Diagram
<Source Code>
int sensorPin = A0;
int motorPin = 8;

void setup()
{
pinMode(motorPin, OUTPUT);
}
<Source Code>
void loop()
{
int sensorValue = analogRead(sensorPin);
float voltage = sensorValue * 5.0 / 1024;
float temp = voltage * 100;

if (temp>30)
{
digitalWrite(motorPin, HIGH);
}
else
{
digitalWrite(motorPin, LOW);
}

}
<Flow Chart> START
loop()
START START
Auto_Light letup() Read sensor value at
sensorPin A0
Declare Analog configure Convert sensor value to
input pin A0 as sensorPin as voltage
sensorPin input
Convert voltage to a
declare digital configure temperature
I/O pin 8 as motorPin as
motorPin output
F If temp T
setup() STOP >30
Setup()
set set
Loop() motorPin motorPin
Low High

STOP
loop()
Door Alarm
Triggers an alarm when a door is opened
Door Alarm
Triggers an alarm when a door is opened
Schematic Diagram
<Source Code>
int switchPin = 9;
int buzzerPin = 8;

void setup()
{
pinMode(switchPin, INPUT);
pinMode(buzzerPin, OUTPUT);
}
<Source Code>
void loop()
{
int switchState = digitalRead(switchPin);
if (switchState == LOW)
{
tone(buzzerPin, 262);
}
else
{
noTone(buzzerPin);
}
}
<Flow Chart> START
loop()
START START
doorAlarm() letup() Read state at switchPin

Declare digital configure


I/O pin 9 as switchPin as
switchPin input
F If state T
declare digital configure = Low
I/O pin 8 as buzzerPin as
buzzerPin output Stop playing Play middle
any tone C tone
setup() STOP
Setup()
STOP
Loop() loop()

You might also like