PIC16F887 microcontroller with 1-Wire interface DS18B20

การใช้งานไมโครคอนโทรลเลอร์ PIC16F887 กับดิจิตอลเทอร์โมมิเตอร์ DS18B20 ซึ่งเป็น 1-Wire interface

(Using the PIC16F887 microcontroller with 1-Wire interface DS18B20 digital thermometer.)

ช้ PIC16F690 กับ DS1820 แสดงผลด้วย LED 7 ส่วน แบบแอโนดร่วม 4 หลัก

ความสามารถ

วัดได้ตั้งแต่ 0°C ถึง +125 °C

สามารถแสดงผลได้ทั้ง องศาเซลเซียส (°C) และองศาฟาเรนไฮต์ (°F) องศาเซลเซียส

ก่อนใช้ OneWire กับ PIC16F887 ใหดาวน์โหลดไฟล์ dallas onewire primitives library and ds1822 driver code จาก http://losdos.dyndns.org:8080/public/onewire/lib-onewire.html หรือ url=http://www.ccsinfo.com/forum/viewtopic.php?t=19520 ซึ่งสามารถใช้เป็น driver ของ DS18B20 ได้

วงจรสำหรับการทดลอง (Logic diagram)

รูปการประกอบวงจรด้วยบอร์ดทดลอง

โปรแกรม thermometer1.zip

Copyright © 2007 By Narong Buabthong.