▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
Microcontroller
พอดีจะวัดอุณหภูมิที่ห้องอะครับ ใช้ Sensor LM 35 แต่อุณหภูมิ ไม่ตรงกับความจริงเลยครับช่วยแก้ให้น่อยครับ
int Vin = 0;
int lm35Pin = A0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
Vin = analogRead(lm35Pin);
float temperature;
temperature= float(analogValue)/1023;
temperature= temperature*500;
Serial.print("TEMP: ");
Serial.print(temperature);
Serial.print("C");
delay(1000);
}