“SKU:RB-02S019A LM35線性溫度傳感器”的版本間的差異
(→?規(guī)格參數(shù)) |
(→?產品相關推薦) |
||
(未顯示1個用戶的12個中間版本) | |||
第26行: | 第26行: | ||
==使用方法== | ==使用方法== | ||
===工作原理=== | ===工作原理=== | ||
? | LM35是由 National Semiconductor 所生產的溫度感測器,其輸出電壓與攝氏溫標呈線性關係,轉換公式如下,0°C時輸出為0V,每升高 1°C,輸出電壓增加10mV。 | + | LM35是由 National Semiconductor 所生產的溫度感測器,其輸出電壓與攝氏溫標呈線性關係,轉換公式如下,0°C時輸出為0V,每升高 1°C,輸出電壓增加10mV。<br/> |
<big>公式: Vout_lm35(T) = 10mV /℃ * T℃</big> | <big>公式: Vout_lm35(T) = 10mV /℃ * T℃</big> | ||
===編程原理=== | ===編程原理=== | ||
第42行: | 第42行: | ||
Serial.print(value); | Serial.print(value); | ||
Serial.print(">"); | Serial.print(">"); | ||
? | float celsius = value *(5.0/1023*100); | + | float celsius = (float)value *(5.0/1023*100); |
Serial.print(celsius); | Serial.print(celsius); | ||
Serial.print(" degrees Celsius, "); | Serial.print(" degrees Celsius, "); | ||
第50行: | 第50行: | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
+ | ===云編程代碼1=== | ||
+ | * 奧松在線云編程地址:http://arduino.alsrobot.cn/index.html | ||
+ | [[文件:yun0007.png|610px|縮略圖|居中]] | ||
===程序1效果=== | ===程序1效果=== | ||
:此代碼功能是檢測當前環(huán)境下的溫度。如下圖所示,串口助手窗口顯示為前溫度值。 | :此代碼功能是檢測當前環(huán)境下的溫度。如下圖所示,串口助手窗口顯示為前溫度值。 | ||
? | [[文件: | + | [[文件:02S019A100.png|526px|縮略圖|居中]] |
+ | |||
===例子程序2=== | ===例子程序2=== | ||
<pre style='color:blue'> | <pre style='color:blue'> | ||
? | int pin = 0; //模擬口0 | + | int pin = 0; //模擬口0,連接LM35溫度傳感器 |
int tempc = 0;//溫度變量 | int tempc = 0;//溫度變量 | ||
int samples[8]; | int samples[8]; | ||
第84行: | 第89行: | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
+ | ===云編程代碼2=== | ||
+ | * 奧松在線云編程地址:http://arduino.alsrobot.cn/index.html | ||
+ | [[文件:yun0008.png|1060px|縮略圖|居中]] | ||
+ | |||
===程序2效果=== | ===程序2效果=== | ||
? | :此代碼功能是檢測當前環(huán)境下的溫度。如下圖所示,串口助手窗口顯示為前溫度值。Celsius | + | :此代碼功能是檢測當前環(huán)境下的溫度。如下圖所示,串口助手窗口顯示為前溫度值。Celsius 為當前的溫度平均值,Max 為當前最大溫度值,Min 為當前最小溫度值。 |
[[文件:02S019A04.png|500px|有框|居中]] | [[文件:02S019A04.png|500px|有框|居中]] | ||
+ | |||
==應用視頻== | ==應用視頻== | ||
[[File:wen du 01.png|400px|左|link=http://v.youku.com/v_show/id_XODg0ODMzNzAw.html?from=y1.7-2]] | [[File:wen du 01.png|400px|左|link=http://v.youku.com/v_show/id_XODg0ODMzNzAw.html?from=y1.7-2]] | ||
第93行: | 第104行: | ||
==產品相關推薦== | ==產品相關推薦== | ||
[[文件:erweima.png|230px|無框|右]] | [[文件:erweima.png|230px|無框|右]] | ||
+ | ===資料下載=== | ||
+ | 網盤鏈接:https://pan.baidu.com/s/1rSjv033iKCelpKL0G1olLw | ||
+ | 提取碼:nkov | ||
===產品購買地址=== | ===產品購買地址=== | ||
[http://m.gharee.com/goods.php?id=71 LM35模擬線性溫度傳感器]<br/> | [http://m.gharee.com/goods.php?id=71 LM35模擬線性溫度傳感器]<br/> | ||
===周邊產品推薦=== | ===周邊產品推薦=== | ||
[http://m.gharee.com/goods-319.html LM35溫度傳感器 電子元件]<br/> | [http://m.gharee.com/goods-319.html LM35溫度傳感器 電子元件]<br/> | ||
? | |||
[http://m.gharee.com/goods-161.html DS18B20 數(shù)字溫度傳感器] | [http://m.gharee.com/goods-161.html DS18B20 數(shù)字溫度傳感器] | ||
===相關問題解答=== | ===相關問題解答=== |
2021年7月21日 (三) 11:41的最后版本
目錄 |
產品概述
最新推出的Analogue Temperature Sensor采用NS公司(美國國家半導體公司)生產的溫度傳感器LM35,它具有很高的工作精度和較寬的線性工作范圍,從使用角度來說,熱電偶常用于高溫測量,鉑電阻用于中溫測量(攝氏800度左右),而熱敏電阻和半導體溫度傳感 器適合于200度以下的溫度測量, LM35就是一款半導體溫度傳感器與用開爾文標準的線性溫度傳感器相比更有優(yōu)越之處,LM35無需外部校準或微調,可以提供±1/4℃的常用的室溫精度。LM35溫度傳感器模塊不僅可以通過一根3P傳感器連接線直接插到Sensor Shield V5.0 傳感器擴展板或Sensor Shield V1.0 專用傳感器擴展板上,還可以與各種單片機開發(fā)板、機器人控制器相連接,輕松實現(xiàn)周圍環(huán)境溫度檢測,是制作互動作品與智能機器人的常用傳感器。
規(guī)格參數(shù)
- 在攝氏溫度下直接校準
- 靈敏度:+10.0mV/℃的線性刻度系數(shù)
- 確保0.5℃的精度(在25℃)
- 額定溫度范圍為-40℃至+110℃
- 工作電壓范圍寬4V 至30V
- 低功耗,小于60uA
- 在靜止空氣中,自熱效應低,小于0.08℃的自熱
- 非線性僅為±1/4℃
- 輸出阻抗,通過1mA 電流時僅為0.1Ω
- LM35 數(shù)據手冊:下載
- 產品尺寸圖:
接口定義
- S:輸出信號
- +:電源(VCC)
- -:地(GND)
使用方法
工作原理
LM35是由 National Semiconductor 所生產的溫度感測器,其輸出電壓與攝氏溫標呈線性關係,轉換公式如下,0°C時輸出為0V,每升高 1°C,輸出電壓增加10mV。
公式: Vout_lm35(T) = 10mV /℃ * T℃
編程原理
LM35 溫度傳感器引出三個引腳,分別是信號S、電源Vcc、地GND,實際使用時,可以將LM35溫度傳感器連接到Arduino控制器的模擬接口,如A0,接線方法如接線圖所示,因為LM35會直接產生類比電壓,而產生的電壓大小和溫度成正比例,每1攝氏度產生10mV,程序中會將 analogRead 的值轉換成毫伏,再除以10轉換成攝氏度,LM35溫度傳感器的精確度大約是0.5度,在許多情況下可以使用整數(shù)而不是浮點數(shù)來做運算
連接示意圖
例子程序1
const int inpin = A0; void setup() { Serial.begin(9600); } void loop() { int value = analogRead(inpin); Serial.print(value); Serial.print(">"); float celsius = (float)value *(5.0/1023*100); Serial.print(celsius); Serial.print(" degrees Celsius, "); Serial.print((celsius * 9)/5 + 32);//轉換成華氏溫度 Serial.println(" degress Fahrenheit "); delay(1000); }
云編程代碼1
- 奧松在線云編程地址:http://arduino.alsrobot.cn/index.html
程序1效果
- 此代碼功能是檢測當前環(huán)境下的溫度。如下圖所示,串口助手窗口顯示為前溫度值。
例子程序2
int pin = 0; //模擬口0,連接LM35溫度傳感器 int tempc = 0;//溫度變量 int samples[8]; int maxi = -100,mini = 100; int i; void setup(){ Serial.begin(9600); // 設置波特率為9600 } void loop(){ for(i = 0;i<=7;i++) { samples[i] = ( 5.0 * analogRead(pin) * 100.0) / 1024.0; tempc = tempc + samples[i]; delay(100); } tempc = tempc/8.0; if(tempc > maxi) {maxi = tempc;} if(tempc < mini) {mini = tempc;} Serial.print(tempc,DEC); //打印溫度值 Serial.print(" Celsius, "); Serial.print(maxi,DEC); Serial.print(" Max, "); Serial.print(mini,DEC); Serial.println(" Min"); tempc = 0; delay(100); }
云編程代碼2
- 奧松在線云編程地址:http://arduino.alsrobot.cn/index.html
程序2效果
- 此代碼功能是檢測當前環(huán)境下的溫度。如下圖所示,串口助手窗口顯示為前溫度值。Celsius 為當前的溫度平均值,Max 為當前最大溫度值,Min 為當前最小溫度值。
應用視頻
產品相關推薦
資料下載
網盤鏈接:https://pan.baidu.com/s/1rSjv033iKCelpKL0G1olLw 提取碼:nkov
產品購買地址
周邊產品推薦
LM35溫度傳感器 電子元件
DS18B20 數(shù)字溫度傳感器