Arduino
Arduino
and
Actuators
with
Arduino
h4p://arduino.cc
Lab
Topics
Overview
of
the
Arduino
PlaAorm
Sensors
and
Actuators
Overview
Overview
of
Temperature
Sensors
- Pt-100,
Thermistor,
Thermocouple
Hardware
Breadboard
Mul?meter
Arduino
SoWware
Example:
Assignment
Overview
1. Arduino
Basics:
Explore
the
dierent
Sensors
and
Actuators
available
with
the
Arduino
Kit
2. Pt-100:
Create
your
own
Pt-100
sensor
with
Transmi4er
from
scratch
and
Read
Temperature
values
using
Arduino
3. Create
a
Temperature
Data
Logger/Embedded
DAQ
System
See
next
slides
for
more
details...
6
Theory
h4p://en.wikipedia.org/wiki/Actuator
Sensors
CalibraDon:
A
comparison
between
measurements.
One
of
known
magnitude
or
correctness
made
or
set
with
one
device
and
another
measurement
made
in
as
similar
a
way
as
possible
with
a
second
device.
The
device
with
the
known
or
assigned
correctness
is
called
the
standard.
The
second
device
is
the
unit
under
test,
test
instrument,
or
any
of
several
other
names
for
the
device
being
calibrated.
Theory
In
the
assignment
you
need
to
deal
with
these
parameters.
You
nd
informa?on
about
these
parameters
in
the
Data
sheet
for
your
device
h4p://en.wikipedia.org/wiki/Calibra?on
h4p://en.wikipedia.org/wiki/Measurement_uncertainty
h4p://en.wikipedia.org/wiki/Accuracy_and_precision
Part 1
Arduino Basics
Books
These books gives you an introduc?on to Arduino. These books are availible on the lab.
h4p://proquest.safaribooksonline.com/book/
hardware/arduino/9780133764147
h4p://proquest.safaribooksonline.com/
book/hardware-and-gadgets/
9781449314668
Arduino Basics
Breadboard
12
h4ps://www.youtube.com/playlist?
feature=edit_ok&list=PLT6rF_I5kknPf2qlVFlvH47qHvqvzkknd
14
Tinkerkit:
LED
Temperature
Poten?ometer
etc.
Part 2
Pt-100 Measurements
Temperature
Measurements
Pt100:
Create
your
own
temporary
Pt-100
sensor
with
Transmi4er
(create
the
circuit
on
a
breadboard)
and
then
Read
Temperature
values
using
Arduino.
Suggested
Tasks:
Compare
with
exis?ng
Pt-100
with
Transmi4er
equipment
(Reference
Equipment)
Compare
with
Temperature
Sensors
available
within
the
Arduino
Kit
(TMP36,
Thermistor,...)
Compare
and
Discuss
the
following
Temperature
Measurements;
Pt-100,
Thermocouple,
Thermistor
(Measurement
principles,
etc.)
17
Pt-100 Wiring
N
Cable
clamp
Ground
Output
+24 V
RTDred
RTDwhite
Internal
terminal
block
RTDred
Pt100
transducer
<<<<<<<
Pt100
element
0
V
+
24
V
red
white
4-20
mA
~250
Pt100
24
V
PSU
Output terminals
Output
red
Output +
RTD
transducer
1-5
V
output
terminals
Important!
Test
the
output
of
your
circuit
BEFORE
connec?ng
it
to
the
Arduino
Analog
Input
with
a
Mul?meter
to
make
sure
the
voltage
is
not
higher
than
5V,
else
the
Arduino
will
be
damaged!
Pt-100
h4ps://www.elfa.se/elfa3~eu_en/elfa/init.do?
item=76-690-51&toc=0&q=76-690-51
h4ps://www.elfa.se/elfa3~eu_en/elfa/init.do?
item=76-895-74&toc=0&q=76-895-74
Breadboard
h4ps://www.elfa.se/elfa3~eu_en/elfa/init.do?item=69-061-79&toc=0&q=69-061-79
19
0 V
Important!!!
+
24
V
red
RTD
transducer
red
white
4-20
mA
~250
Pt100
+
1-5
V
output
terminals
20
h4ps://www.sparkfun.com/products/10988
h4ps://www.elfa.se/elfa3~eu_en/elfa/init.do?item=73-889-29&toc=0&q=73-889-29
NTC Thermistor
h4ps://www.elfa.se/elfa3~eu_en/elfa/init.do?item=60-260-41&toc=0&q=60-260-41
Tutorial:
h4p://garagelab.com/proles/blogs/tutorial-using-ntc-thermistors-with-arduino
21
Voltage-based
Sensors
According
to
the
TMP36
datasheet,
the
rela?on
of
the
output
voltage
to
the
actual
temperature
uses
this
equa?on:
TMP36
mV
output
=
analogRead(aichannel)
0-1023
A0-A5
Datasheet
Calcula?ons
Theory
Linear rela?onship:
This gives:
23
Serial Monitor
24
Resistance-based
Sensors
The
problem
with
resistance
sensors
is
that
the
Arduino
analog
Theory
interfaces
cant
directly
detect
resistance
changes.
Thermistor
This
will
require
some
extra
electronic
components.
The
easiest
way
to
detect
a
change
in
resistance
is
to
convert
that
change
to
a
voltage
change.
You
do
that
using
a
voltage
divider,
as
shown
below.
Serial Monitor
Steinhart-Hart Equa?on:
26
Part 3
NTC Thermistor
We
dene:
Inverse
Laplace
gives
the
dieren?al
Equa?on:
This gives:
This gives:
Filter output
Xively
You
may
want
to
connect
e.g.,
to
xively.com,
a
free
datalogging
site
Use
the
Xively
for
Arduino
library
in
order
h4ps://xively.com
to
connect
and
store
measurement
data
from
your
Arduino
device
into
the
Xively
cloud
Arduino
xively.com:
h4ps://xively.com/dev/tutorials/arduino_wi-
www.temboo.com
www.temboo.com/arduino
32
E-mail:
[email protected]
Blog:
hSp://home.hit.no/~hansha/
33