เมนู
สินค้าในตระกร้า

ขาย DS18B20 ราคา 40.00 บาท ในไทย

ขาย DS18B20  ราคา 40.00 บาท ในไทย
ขาย DS18B20  ราคา 40.00 บาท ในไทย
ขาย DS18B20  ราคา 40.00 บาท ในไทย
ขาย DS18B20  ราคา 40.00 บาท ในไทย
ขาย DS18B20  ราคา 40.00 บาท ในไทย
ขาย DS18B20  ราคา 40.00 บาท ในไทย

รายละเอียด

รุ่นนี้เป็นแบบกันน้ำได้ พร้อมสายต่อใช้งาน

สาย ยาว 1 เมตร

เซนเซอร์ตรวจจับอุณหภูมิ DS1820 เป็น IC แบบดิจิตอล สามารถวัดอุณภูมิในช่วง -55°C ถึง 125°C มีความคลาดเคลื่อนต่ำสุด ±0.5°C เมื่อใช้งานอยู่ที่ -10°C ถึง 85°C ใช้สายเพียงเส้นเดียวในการส่งข้อมูล และราคาถูกเหมาะกับการใข้งาน

ข้อมูลเพิ่มเติม datasheet ds1820

วีดีโอตัวอย่างการต่อใช้งาน IC DSB1820 เพื่อปรยุกต์ใช้งาน

สำหรับ Source Code ตัวอย่างมีอยู่ใน Sample Code ของ โปรแกรม Arduino อยู่แล้วครับ

ตัวอย่างโค๊ด


  1. #include <OneWire.h>
  2. #include <DallasTemperature.h>
  3.  
  4. // Define the pin connected to the DS18B20 sensor
  5. #define ONE_WIRE_BUS 2
  6.  
  7. // Setup a oneWire instance to communicate with any OneWire devices
  8. OneWire oneWire(ONE_WIRE_BUS);
  9.  
  10. // Pass the oneWire reference to DallasTemperature library
  11. DallasTemperature sensors(&oneWire);
  12.  
  13. void setup() {
  14. // Start serial communication
  15. Serial.begin(9600);
  16.  
  17. // Initialize the DS18B20 sensor
  18. sensors.begin();
  19. }
  20.  
  21. void loop() {
  22. // Call sensors.requestTemperatures() to issue a global temperature
  23. // request to all connected devices on the bus
  24. sensors.requestTemperatures();
  25.  
  26. // Read the temperature from the DS18B20 sensor
  27. float temperatureC = sensors.getTempCByIndex(0);
  28.  
  29. // Print the temperature to the serial monitor
  30. Serial.print("Temperature: ");
  31. Serial.print(temperatureC);
  32. Serial.println("°C");
  33.  
  34. // Wait for a second before taking the next temperature reading
  35. delay(1000);
  36. }
  37.  

ขาย DS18B20 ราคา 40.00 บาท ในไทย
40.00 บาท
  • จำนวนสินค้า: 8
  • รุ่น: DS18B20
  • น้ำหนัก: 0.03kg
  • SKU: 1319
Product Views: 10171

สินค้าที่เกี่ยวข้อง

เป็นโซลีนอยวาล์ว ใช้ไฟ 12VDC ขนาดท่อ 1/2 นิ้วหรือ ครึ่งนิ้ว ใช้สำหรับควบคุมการเปิดปิดน้ำเช่นใช้ควบคุม ความชื้นในโรงพราะเห็ดแบบอัตโนมัติเป็นต้น ..
180.00 บาท
สเป็ก ของ Lead Screw พร้อม nut จำนวนรุ่น: 3D502 Name: 8x400mm Lead Screw Type: 8x400mm Lead Screw Screw diameter: 8mm ..
250.00 บาท
BELT 6mm 2GT ( สายพาน 3d printer )  ราคา เมตรละ 60 บาท  สามารถสั่งความยาวได้ เช่นถ้าต้องการ ยาว 2 เมตร เราจะตัดให้ลูกค้ายาว 2 เมตร&..
40.00 บาท
Discriptionผลิตภัณฑ์: รายละเอียด: สี: สีดำ Diamension: 20x10x6mm( ยาวxกว้างxสูง) แรงดันไฟฟ้า: ac125v-250v 5a..
10.00 บาท
เทอร์มิสเตอร์สำหรับ  3D Printer ค่าความต้านทาน 100K โมเดล NTC 3950 ใช้ได้ทั้ง ชุด Extrude และ Bed ความยาวสาย 1 เมตร มี Socket..
35.00 บาท