NOVICEGUARD HOME > > DAUGHTER BOARDS MENU     Delicious.Com Bookmark this on Delicious    StumbleUpon.Com Recommend to StumbleUpon

A simple, inexpensive temperature sensor

Very rough, preliminary effort!

It works!

And it works simply.

Plug an LM35DZ into either of the right hand input sockets for the NoviceGuard, and you get different numbers when the device is at different temperatures.

Here are the results of some rough tests....

43  / 22.9 deg c
58  / gripped in fingers... maybe 34 deg C
22 / against "cold cup"-7 deg C
85  /against hot mug of tea... 49.6 deg c

Here's a graph of that....

-

The software

//"LM35_for_NG"
//Code to read an LM35DZ temperature sensor
//  on a NoviceGuard, with NovGrdCore
//Vers 11 Aug 15

#include <NovGrdCore.h>
//See http://rugguino.com/DauBrds/TtureLM35.htm
//  for details of the (trivial) conversion which
//  allows you to use this software without NovGrdCore

NovGrdCore NGC;

void setup()
{
  Serial.begin(9600);
  Serial.println("Hello- NoviceGuard + LM35 temperature sensor");
  Serial.println("Version 11Aug15");
}//end of setup()

void loop()
{
int iTtureReading;
//Change inPUR in the following if sensor
//   is connected via a different data line.
iTtureReading=analogRead(inPUR);
Serial.println(iTtureReading);
delay(100);
}//End of loop()

Pester me if you see this online after 10 Sept 15, please. Please put "NGDau-TtureLM35 needs work" in subject line.






How to email or write this page's editor, Tom Boyd. This page, and the software it references, ©TK Boyd, 8/2015.






Valid HTML 4.01 Transitional Page has been tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org. Mostly passes, just a few "No attribute" issues, arising from Google code.


If this page causes a script to run, why? Because of things like Google panels, and the code for the search button. Why do I mention scripts? Be sure you know all you need to about spyware.

....... P a g e . . . E n d s .....