Expert Thermocouple & RTD &Temperature Sensor Manufacturer.

+86 13816377866    |    jimmy011@126.com

All products

temperature sensor tutorial!

by:JVTIA     2020-10-28
How to measure the temperature!
Easy to use tm36, just connect the left pin to the power supply (2. 7-5. 5V)
And ground the correct pin.
Then the intermediate pin will have a proportional analog voltage (linear)
To the temperature.
The analog voltage has nothing to do with the power supply.
To convert the voltage to temperature, just use the basic formula: temperature in degrees Celsius = [(Vout in mV)-500]
/10So for example, if the output voltage is 1 v, this means that the temperature is ((1000 mV -500)/ 10)
= 50 degrees Celsius CelsiusIf what you are using is LM35 or similar, use the line \"a\" in the picture and formula above: temperature in degrees Celsius = (Vout in mV)
/10 it is very easy to test your temperature sensors to test these sensors, but you need a battery pack or power supply. Connect a 2. 7-5.
5 v power supply (2-
Excellent work on 4 AA batteries)
Therefore, the grounding is connected to pin 3 (right pin)
The power supply is connected to pin 1 (left pin)
Then connect the multimeter in DC voltage mode to the ground and the remaining pin 2 (middle).
If you have a tm36, its room temperature (25 degrees C)
The voltage should be around 0. 75V.
Note that the voltage will be 0 if LM35 is used. 25V(See below)
You can change the voltage range by pressing the plastic case of the sensor with your finger and you will see the temperature/voltage rise. (See below)
Or you can touch the sensor with ice cubes, preferably in a plastic bag so it doesn\'t have water on your circuit or see a temperature/voltage drop. (See below)
Connected to your temperature sensors, there are few chips in them, and while they are not that delicate, they need to be handled properly.
Be careful when handling static electricity, make sure the power supply is connected correctly and between 2. 7 and 5. 5V DC -
So don\'t try to use the 9 v battery! Bread-92 -
They came in with a \"-
92 \"package, which means that the chip is encapsulated in a plastic half
A cylinder with three legs.
The legs can be bent easily in order to insert the sensor into the breadboard.
You can also Weld on pins to connect long wires.
If you need a waterproof sensor, you can see how to make an excellent case next.
Unlike the FSR or photocell sensors we see, tm36 and friends don\'t behave like resistors.
Because of this, there is only one way to read the temperature value from the sensor, that is, directly insert the output pin into the analog pin (ADC)input.
Keep in mind that you can use it anywhere between 2. 7V and 5.
5 V as power supply.
I display it with 5 v power supply for this example, but please note that you can use it with 3.
3 v power supply is also easy.
No matter what power supply you use, the analog voltage reading will be from about 0 v (ground)to about 1. 75V.
If you are using a 5 v Arduino and connect the sensor directly to the analog pin, you can use these formulas to convert 10-
Bit analog reading of temperature: pin voltage (in millivolts) = (
Read from ADC* (5000/1024)
This formula will number 0-
From ADC 1023 to 0-5000mV (= 5V)
If you use 3
3 v Arduino, you will want to use this: pin voltage in millivolts = (
Read from ADC* (3300/1024)
This formula will number 0-
From ADC 1023 to 0-3300mV (= 3. 3V)
Then, to convert millivolts to temperature, use the following formula: temperature of degrees Celsius = [(
Analog voltage in MV)-500]
/10 this sample code for Arduino shows a quick way to create a temperature sensor, it simply prints the value of the current temperature in degrees Celsius and Fahrenheit to the serial port/tm36 pin variable sensor pin = 0;
Vout analog pin for/Tm36 (sense)
The pin is connected to a resolution of 10 mV/C with an offset of 500 mV allowing negative temperature/* settings ()-
This feature runs once when you turn on Arduino.
We initialize the serial connection with the computer */void settings (){Serial. begin(9600);
/Start the serial connection to the computer/view the result turn on the serial monitor}void loop()
/Run over and over {
/Get voltage reading from temperature sensor int read = analogRead (sensorPin);
/The voltage to convert the reading to 3.
3 v arduino use 3.
3 floating voltage = Reading * 5. 0 / 1024;
Print out the voltage sequence. print(voltage); Serial. println(\" volts\");
/Now print out temperature floating temperature = (voltage -0. 5)* 100 ;
/Convert from 10 mv per degree to 500 mv offset per degree/to each degree ((volatge -500mV)times 100)Serial. print(temperatureC); Serial. println(\" degress C\");
/Now convert to height floating temperature f = (
TemperatureC * 9/5)+ 32; Serial. print(temperatureF); Serial. println(\" degress F\"); delay(1000);
/Wait a second}
This example is similar to the above example, except now that we use a special trick, in which we read the analog value of the fixed reference voltage inside the chip and then use it for accurate calculation.
This also means that the Arduino will work properly no matter what voltage it is running!
/Tm36 pin variable sensor pin = 0;
Vout analog pin for/Tm36 (sense)
The pin is connected to a resolution of 10 mV/C with an offset of 500 mV to allow negative temperature to define a special indicator of bandgap ref 14/we want to measure bandwidth/* settings ()-
This feature runs once when you turn on Arduino.
We initialize the serial connection with the computer */void settings (){Serial. begin(9600);
/Start the serial connection to the computer/view the result turn on the serial monitor delay (500); }void loop()
/Run over and over {
/Get the voltage reading from secret Interior 1.
05 V reference refresh int = analogRead (BANDGAPREF); Serial. println(refReading);
/Now calculate our supply voltage from known 1.
Floating power supply voltage of 05 v Reading = (1. 05 * 1024)/ refReading; Serial. print(supplyvoltage); Serial. println(
V power supply];
/Get voltage reading from temperature sensor int read = analogRead (sensorPin);
/Convert reading to voltage floating voltage = Reading * voltage/1024;
Print out the voltage sequence. print(voltage); Serial. println(\" volts\");
/Now print out temperature floating temperature = (voltage -0. 5)* 100 ;
/Convert from 10 mv per degree to 500 mv offset per degree/to each degree ((volatge -500mV)times 100)Serial. print(temperatureC); Serial. println(\" degress C\");
/Now convert to height floating temperature f = (
TemperatureC * 9/5)+ 32; Serial. print(temperatureF); Serial. println(\" degress F\"); delay(1000);
/Wait a second}
Custom message
Chat Online 编辑模式下无法使用
Chat Online inputting...