Professional Documents
Culture Documents
TMP36 Guide
TMP36 Guide
.:Temperature:.
CIRC-10
CIRC-10
Breadboard sheet
x1
/*
*
*
*
*
*
*
*
*
{
float temperature =
getVoltage(temperaturePin);
//getting the voltage reading from the
//temperature sensor
}
void loop()
again
The Circuit:
Parts:
CIRC-10
2 Pin Header
x4
TMP36
Temperature Sensor
x1
Wire
Gibberish is Displayed
to cool it down.
Temperature Value is
Unchanging.
Try pinching the sensor with
Schematic:
Arduino
analog
pin 0
+5 volts
Making it Better
Outputting voltage:
This is a simple matter of changing one line. Our sensor
+5v
signal
gnd
TMP36
(precision
temperature
sensor)
gnd
(ground) (-)
The Internet
.:download:.
breadboard layout sheet
http://tinyurl.com/ctdjod
.:view:.
assembling video
http://tinyurl.com/d85jyx
The change to the first line means when we next output it will
appear on the same line, then we add the informative text and
a new line.
Changing the serial speed:
If you ever wish to output a lot of data over the serial line time
is of the essence. We are currently transmitting at 9600 baud
but much faster speeds are possible. To change this change
the line:
Serial.begin(9600); ----> Serial.begin(115200);
Upload the sketch turn on the serial monitor, then change the
More informative output:
Lets add a message to the serial output to make what is
appearing in the Serial Monitor more informative. To do
speed from 9600 baud to 115200 baud in the pull down menu.
You are now transmitting data 12 times faster.
http://tinyurl.com/c89tvd