Difference between revisions of "Thermal Module"

From LinkSprite Playgound
Jump to: navigation, search
(Created page with "/* Analog input, analog output, serial output Reads an analog input pin, and T000200 Themistor Analog Sensor connected to I0, maps the result to a range from 0 to 255 an...")
 
(Introduction)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/*
+
==Introduction==
  Analog input, analog output, serial output
+
The Linker Thermal Module uses a Thermistor to detect the ambient temperature. The resistance of a thermistor will increase when the ambient temperature decreases. It's this characteristic that we use to calculate the ambient temperature.
 +
 
 +
[[File:Thermal 118101005 first.jpg| 640px]]
 +
 
 +
[[File:Thermal 118101005 second.jpg| 640px]]
 +
 
 +
[[File:Thermal 118101005 third.jpg| 640px]]
 +
 
 +
 
 +
 
 +
[[File:N11DH PACKAGED FRONT.jpg|640px]]
 +
 
 +
[[File:N11DH PACKAGED BACK.jpg|640px]]
 +
 
 +
== Features ==
  
Reads an analog input pin, and T000200  Themistor Analog Sensor connected to I0, maps the result to a range from 0 to 255
+
Dimensions: 20.0×20.0×10.6mm
and uses the result to set the pulsewidth modulation (PWM) on a T010111 LED Module connected on O0.
 
Also prints the results to the serial monitor.
 
  
created 29 Dec. 2008
+
Net weight: 1.8g
Modified 4 Sep 2010
 
by Tom Igoe
 
modified 7 dec 2010
 
by Davide Gomba
 
  
This example code is in the public domain.
+
== Dimension ==
  
*/
+
[[File:temperature dimension.jpg]]
  
#define O0 11
+
== Schematics ==
#define O1 10
 
#define O2 9
 
#define O3 6
 
#define O4 5
 
#define O5 3
 
#define I0 A0
 
#define I1 A1
 
#define I2 A2
 
#define I3 A3
 
#define I4 A4
 
#define I5 A5
 
  
// These constants won't change. They're used to give names
+
*[https://s3.amazonaws.com/linksprite/LinkerKit/Temperature.pdf Schematics ]
// to the pins used:
 
const int analogInPin = I0; // Analog input pin that the Themistor is attached to
 
const int analogOutPin= O0; // Analog output pin that the LED is attached to
 
  
int sensorValue = 0;        // value read from the pot
+
==Application Ideas==
int outputValue = 0;        // value output to the PWM (analog out)
 
  
void setup() {
+
<syntaxhighlight lang="c">
   // initialize serial communications at 9600 bps:
+
//TMP36 Pin Variables
  Serial.begin(9600);  
+
int sensorPin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to
 +
                        //the resolution is 10 mV / degree centigrade with a
 +
                        //500 mV offset to allow for negative temperatures
 +
 +
/*
 +
* setup() - this function runs once when you turn your Arduino on
 +
* We initialize the serial connection with the computer
 +
*/
 +
void setup()
 +
{
 +
   Serial.begin(9600);  //Start the serial connection with the computer
 +
                      //to view the result open the serial monitor
 +
}
 +
 +
void loop()                    // run over and over again
 +
{
 +
//getting the voltage reading from the temperature sensor
 +
int reading = analogRead(sensorPin); 
 +
 +
// converting that reading to voltage, for 3.3v arduino use 3.3
 +
float voltage = reading * 5.0;
 +
voltage /= 1024.0;
 +
 +
// print out the voltage
 +
Serial.print(voltage); Serial.println(" volts");
 +
 +
// now print out the temperature
 +
float temperatureC = (voltage - 0.5) * 100 ;  //converting from 10 mv per degree wit 500 mV offset
 +
                                              //to degrees ((volatge - 500mV) times 100)
 +
Serial.print(temperatureC); Serial.println(" degrees C");
 +
 +
// now convert to Fahrenheight
 +
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;
 +
Serial.print(temperatureF); Serial.println(" degrees F");
 +
 +
delay(1000);                                     //waiting a second
 
}
 
}
  
void loop() {
 
  // read the analog in value:
 
  sensorValue = analogRead(analogInPin);           
 
  // map it to the range of the analog out:
 
  outputValue = map(sensorValue, 0, 1023, 0, 255); 
 
  // change the analog out value:
 
  analogWrite(analogOutPin, outputValue);         
 
  
  // print the results to the serial monitor:
+
</syntaxhighlight>
  Serial.print("sensor = " );                     
 
  Serial.print(sensorValue);     
 
  Serial.print("\t output = ");     
 
  Serial.println(outputValue); 
 
  
  // wait 10 milliseconds before the next loop
+
[[File:Thermal Link.jpg]]
  // for the analog-to-digital converter to settle
+
 
  // after the last reading:
+
==How to buy==
  delay(10);                   
+
Here to buy Thermal Module on [http://store.linksprite.com/thermal-module-of-linker-kit-for-pcduino-arduino/ store]
}
 

Latest revision as of 10:54, 18 July 2016

Introduction

The Linker Thermal Module uses a Thermistor to detect the ambient temperature. The resistance of a thermistor will increase when the ambient temperature decreases. It's this characteristic that we use to calculate the ambient temperature.

Thermal 118101005 first.jpg

Thermal 118101005 second.jpg

Thermal 118101005 third.jpg


N11DH PACKAGED FRONT.jpg

N11DH PACKAGED BACK.jpg

Features

Dimensions: 20.0×20.0×10.6mm

Net weight: 1.8g

Dimension

Temperature dimension.jpg

Schematics

Application Ideas

<syntaxhighlight lang="c"> //TMP36 Pin Variables int sensorPin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to

                       //the resolution is 10 mV / degree centigrade with a
                       //500 mV offset to allow for negative temperatures

/*

* setup() - this function runs once when you turn your Arduino on
* We initialize the serial connection with the computer
*/

void setup() {

 Serial.begin(9600);  //Start the serial connection with the computer
                      //to view the result open the serial monitor 

}

void loop() // run over and over again {

//getting the voltage reading from the temperature sensor
int reading = analogRead(sensorPin);  

// converting that reading to voltage, for 3.3v arduino use 3.3
float voltage = reading * 5.0;
voltage /= 1024.0; 

// print out the voltage
Serial.print(voltage); Serial.println(" volts");

// now print out the temperature
float temperatureC = (voltage - 0.5) * 100 ;  //converting from 10 mv per degree wit 500 mV offset
                                              //to degrees ((volatge - 500mV) times 100)
Serial.print(temperatureC); Serial.println(" degrees C");

// now convert to Fahrenheight
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;
Serial.print(temperatureF); Serial.println(" degrees F");

delay(1000);                                     //waiting a second

}


</syntaxhighlight>

Thermal Link.jpg

How to buy

Here to buy Thermal Module on store