User manual

37
20t
h
Da
y
In the Advent calendar today
•1x NT
C
Heat sensor in the App
Toda
y
s pro
j
ect uses an NTC
f
or temperature measurin
g
. You
can test this project well, e.g. by approaching a candle on the
A
dvent wreath with the NTC
.
C
omponents: 1x board, 1xNTC, 1 x potentiometer
15kOhm, 6xjumper (different lengths
)
T
h
e S
k
etc
h
The program
f
or this day is Tag20.in
o
a
n
d
l
ocated
in
d
ir
ec-
tory
T
ag2
0
. The Sketch is set up very simply. A
f
ter callin
g
ana
l
ogRea
d
,
the value will be sent to the App by Bluetooth;
then there will be a
p
ause o
f
2 seconds and the value will be
read again and sent
:
v
oid loop
()
{
sensorValue = analogRead
(
sensorPin
)
;
HC05.print(“Value of the NTC = “)
;
HC05.println
(
sensorValue
);
delay
(
2000
)
;
}
T
h
e Ap
p
The texts are displayed using the App
Se
ri
a
l Bl
uetoot
h T
e
rmin
a
l. First, connect to the IoT-board.
Y
ou will see the NTC value then. When the values grow smaller, this indicates increasing temper
-
atu
r
e.
Do not
f
orget to use the 10-kOhm-resistor; you will not be satis
ed with the measuring results
ot
h
erwise
.
As in the other projects, the data received are dis
-
played in green text. Do not
f
orget to call
d
elay
,
in the Sketch. You will otherwise receive too many
values.
2
0. Day
15007-3 Conrad Adventskalender Internet of Things 2017_en.indd 3715007-3 Conrad Adventskalender Internet of Things 2017_en.indd 37 13.08.2017 17:03:1913.08.2017 17:03:19