3351 views|23 replies

86

Posts

0

Resources
The OP
 

How to use thermistor and 8051 single chip and LCD to display temperature detection. Please answer [Copy link]

 

Please help me answer this question. I am a newbie and just started to learn microcontrollers.

2.png (88.54 KB, downloads: 0)

2.png
This post is from 51mcu

Latest reply

Your question is simple. There are two ways to achieve it. 1. For chips without AD acquisition, use the charging and discharging method to calculate the resistance of the thermistor, and then look up the table 2. Chips with AD acquisition use AD to collect the voltage signal after voltage division, and then calculate the resistance value by looking up the table If you have any questions, you can add me Q260568227 to study together   Details Published on 2019-9-20 16:09
 

5791

Posts

44

Resources
2
 
It seems that there is a formula corresponding to the temperature slope. I have used it before, but it is not written by me. I am only expressing the meaning. How did the construction team do it? Please help me, experts.
This post is from 51mcu
 
 
 

86

Posts

0

Resources
3
 
btty038 posted on 2019-9-18 15:11 It seems that there is a formula corresponding to the temperature slope. I have used it but it is not written by me. I only express the meaning. How did the construction team do it...

OK, thanks

This post is from 51mcu

Comments

I used LM50 without thermistor [attachimg]433666[/attachimg]  Details Published on 2019-9-18 16:40
 
 
 

2w

Posts

0

Resources
4
 

"How to use thermistor and 8051 single chip and LCD to display temperature"

Measuring temperature actually means giving a fixed current to the thermistor and measuring the voltage across the thermistor. This requires the use of the A/D inside the microcontroller or an external A/D. The value obtained by the A/D conversion read by the microcontroller is usually binary and needs to be converted into decimal before it can be displayed. The decimal data is stored in an area of RAM, and the microcontroller may also need to convert it into a format acceptable to the LCD before sending it to the LCD.

As for how often to measure the temperature, the timer inside the microcontroller must be used.

This post is from 51mcu
 
 
 

5791

Posts

44

Resources
5
 

I used LM50 without thermistor

This post is from 51mcu
 
Personal signature

射频【放大器】

 
 

86

Posts

0

Resources
6
 
maychang published on 2019-9-18 16:14 "How to use thermistor and 8051 single chip and LCD to display temperature" To measure temperature, actually give the thermistor a fixed current...

The table I posted is the temperature corresponding to the resistance. My chip should be 6V, 10 bits.

How to give a fixed current and how to use A/D?

This post is from 51mcu

Comments

There are many ways to "give a fixed current". One way is to use a constant current source, which is more expensive. Another way is as mentioned on the 7th post, resistor voltage division. Here, resistor voltage division means that a standard resistor and a thermistor are connected in series (obviously the current is equal), and a voltage is applied to the two in series.  Details Published on 2019-9-18 17:01
 
 
 

4005

Posts

0

Resources
7
 

NTC resistor, directly divide the voltage with resistor and then look up the table, the accuracy is slightly worse but the circuit is very simple

This post is from 51mcu
 
 
 

4005

Posts

0

Resources
8
 

NTC resistors must be calibrated, even if they are from the same batch, the parameters are different, e exponential function, use matlab to generate data and put it into the program

This post is from 51mcu
 
 
 

86

Posts

0

Resources
9
 
huo_hu posted on 2019-9-18 16:47 NTC resistor, directly divide the resistor voltage and then look up the table, the accuracy is slightly worse but the circuit is very simple

It should be, resistor divider?

This post is from 51mcu
 
 
 

2w

Posts

0

Resources
10
 
Myself 100 Years Later Posted on 2019-9-18 16:46 The table I posted is the temperature corresponding to the resistance. My chip should be 6V, 10 bits. How to give a fixed current, how to use the A/D? ...

How to give a fixed current?

There are many methods.

One method is to use a constant current source, which is more expensive.

One method is as mentioned on the 7th floor, resistor voltage division. Here, resistor voltage division means that a standard resistor and a thermistor are connected in series (obviously the current is equal), and the voltage is applied to the two resistors in series. First measure the voltage across the standard resistor to know the current, and then measure the voltage across the thermistor to know the resistance of the thermistor. In fact, as long as you compare the two measurement results, you can know the resistance of the thermistor.

This post is from 51mcu
 
 
 

86

Posts

0

Resources
11
 
maychang posted on 2019-9-18 17:01 There are many ways to "give a fixed current". One method is to use a constant current source, which is more expensive. Another method is...

This requires IIC, right?

This post is from 51mcu

Comments

IIC is a communication format and has nothing to do with constant current sources.  Details Published on 2019-9-18 17:18
 
 
 

4005

Posts

0

Resources
12
 

The main problem is that the NTC resistance and ADC voltage do not completely correspond, that is, the low temperature point you want does not match 0V. The complete correspondence requires the op amp to do conditioning.

This mismatch results in a loss of precision for the ADC.

Cross-current source is also OK but it can't solve the above problem, and the data still needs to be looked up in the table.

This post is from 51mcu
 
 
 

4005

Posts

0

Resources
13
 

The thermal effect of the NTC resistor must be considered when dividing the resistor voltage.

This post is from 51mcu

Comments

It is a simple LCD and ADC to display the temperature, and then use a soldering iron to test it.  Details Published on 2019-9-18 17:22
 
 
 

2w

Posts

0

Resources
14
 

IIC is a communication format and has nothing to do with constant current sources.

This post is from 51mcu
 
 
 

4005

Posts

0

Resources
15
 

Your table is meaningless. Each NTC needs to be calibrated before it can be used. It is troublesome to measure the B value and substitute it into the formula. This is why NTC is much cheaper than PT1000.

This post is from 51mcu

Comments

This is not the first time I learn 51 single-chip microcomputer, so I have to learn a little bit  Details Published on 2019-9-18 17:26
 
 
 

86

Posts

0

Resources
16
 
maychang posted on 2019-9-18 17:18 IIC is a communication format and has nothing to do with constant current source.

You are making it a bit complicated. I don't understand. I am just learning 51 single chip microcomputer and I just use LCD to display temperature. I will use a soldering iron to test it.

This post is from 51mcu
 
 
 

86

Posts

0

Resources
17
 
huo_hu posted on 2019-9-18 17:13 The main problem is that the NTC resistance value and the ADC voltage do not completely correspond, that is, the low temperature point you want and 0V do not match. The complete correspondence requires the op amp to do conditioning. ...

You are making it a bit complicated. I don't understand. I am just learning 51 single chip microcomputer and I just use LCD to display temperature. I will use a soldering iron to test it.

This post is from 51mcu

Comments

Let's say, now suppose the temperature range you want to measure is 10~100 degrees, and the resistance value is 19.9~0.679K ohms. Can you output a voltage of 0~5V without an op amp circuit? 5V is the reference voltage of ADC  Details Published on 2019-9-18 17:29
 
 
 

86

Posts

0

Resources
18
 
huo_hu posted on 2019-9-18 17:14 The thermal effect of the NTC resistor should be considered when dividing the resistor voltage.

It is a simple LCD and ADC to display the temperature, and then use a soldering iron to test it.

This post is from 51mcu
 
 
 

86

Posts

0

Resources
19
 
huo_hu posted on 2019-9-18 17:19 Your table is meaningless. Each NTC needs to be calibrated before it can be used. It is troublesome to measure the B value and substitute it into the formula. This is why NTC is faster than Pt100...

This is not the first time I learn 51 single-chip microcomputer, so I have to learn a little bit

This post is from 51mcu
 
 
 

4005

Posts

0

Resources
20
 
Myself in a Hundred Years Published on 2019-9-18 17:20 You made it a bit complicated. I don't understand. I just started to learn 51 MCU and I just used LCD to display temperature. I will use electric soldering iron to...

Let's say, now suppose the temperature range you want to measure is 10~100 degrees, and the resistance value is 19.9~0.679K ohms. Can you output a voltage of 0~5V without an op amp circuit? 5V is the reference voltage of ADC

This post is from 51mcu

Comments

So what should we do?  Details Published on 2019-9-18 17:32
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list