{"id":9739,"date":"2022-09-12T21:19:19","date_gmt":"2022-09-12T13:19:19","guid":{"rendered":"http:\/\/www.szryc.com\/?p=9739"},"modified":"2022-09-12T21:19:19","modified_gmt":"2022-09-12T13:19:19","slug":"ds18b20%e6%95%b0%e5%ad%97%e6%b8%a9%e5%ba%a6%e4%bc%a0%e6%84%9f%e5%99%a8%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=9739","title":{"rendered":"DS18B20\u6570\u5b57\u6e29\u5ea6\u4f20\u611f\u5668\u7b80\u4ecb"},"content":{"rendered":"

1.\u82af\u7247\u7b80\u4ecb<\/p>\n

DS18B20\u6570\u5b57\u6e29\u5ea6\u4f20\u611f\u5668<\/u>\u63d0\u4f9b9-Bit\u523012-Bit\u7684\u6444\u6c0f\u6e29\u5ea6\u6d4b\u91cf<\/u>\u7cbe\u5ea6\u548c\u4e00\u4e2a\u7528\u6237\u53ef\u7f16\u7a0b\u7684\u975e\u6613\u5931\u6027\u4e14\u5177\u6709\u8fc7\u6e29\u548c\u4f4e\u6e29\u89e6\u53d1\u62a5\u8b66\u7684\u62a5\u8b66\u529f\u80fd\u3002DS18B20\u91c7\u7528\u76841-Wire\u901a\u4fe1\u5373\u4ec5\u91c7\u7528\u4e00\u4e2a\u6570\u636e\u7ebf(\u4ee5\u53ca\u5730)\u4e0e\u5fae\u63a7\u5236\u5668\u8fdb\u884c\u901a\u4fe1\u3002\u8be5\u4f20\u611f\u5668<\/u>\u7684\u6e29\u5ea6\u68c0\u6d4b\u8303\u56f4\u4e3a-55\u2103\u81f3+125\u2103\uff0c\u5e76\u4e14\u5728\u6e29\u5ea6\u8303\u56f4\u8d85\u8fc7-10\u2103\u81f385\u2103\u4e4b\u5916\u65f6\u8fd8\u5177\u6709+-0.5\u2103\u7684\u7cbe\u5ea6\u3002\u6b64\u5916\uff0cDS18B20\u53ef\u4ee5\u76f4\u63a5\u7531\u6570\u636e\u7ebf\u4f9b\u7535\u800c\u4e0d\u9700\u8981\u5916\u90e8\u7535\u6e90<\/u>\u4f9b\u7535\u3002<\/p>\n

\"poYBAGMbAcWAWHwwAADDFCLrWq8857\"<\/p>\n

\u4e3b\u8981\u7279\u70b9\u5982\u4e0b<\/p>\n

\u6e29\u5ea6\u53ef\u6d4b\u91cf\u8303\u56f4\u4e3a\uff1a-55\u2103\u81f3+125\u2103(-67\u2109\u81f3+257\u2109)\u3002<\/p>\n

\u6e29\u5ea6\u8303\u56f4\u8d85\u8fc7-10\u2103\u81f385\u2103\u4e4b\u5916\u65f6\u5177\u6709+-0.5\u2103\u7684\u7cbe\u5ea6\u3002<\/p>\n

\u5185\u90e8\u6e29\u5ea6\u91c7\u96c6\u7cbe\u5ea6\u53ef\u4ee5\u7531\u7528\u6237\u81ea\u5b9a\u4e49\u4e3a9-Bits\u81f312-Bits<\/p>\n

\u6e29\u5ea6\u8f6c\u6362\u65f6\u95f4\u5728\u8f6c\u6362\u7cbe\u5ea6\u4e3a12-Bits\u65f6\u8fbe\u5230\u6700\u5927\u503c750ms\u3002<\/p>\n

\"poYBAGMbAdeAOdNRAAA5dG-OydE092\"<\/p>\n

DQ\u5f15\u811a\u4e3a\u5f00\u6f0f\u6a21\u5f0f\uff0c\u9700\u5916\u7f6e\u4e0a\u62c9\u7535\u963b<\/u><\/p>\n

2.DS18B20\u5f15\u811a\u5b9a\u4e49-\u4ee5TO-92\u5c01\u88c5\u4e3a\u4f8b<\/p>\n

(1)Pi<\/u>n 1\uff1aGND \u5730\u7ebf<\/p>\n

(2)Pin 2\uff1a\u6570\u636e\u8f93\u5165\/\u8f93\u51fa\u30021-Wire\u6f0f\u6781\u5f00\u8def\u63a5\u53e3<\/u>\u5f15\u811a\u3002\u5f53\u91c7\u7528\u201c\u5bc4\u751f\u7535\u6e90\u201d\u4f9b\u7535\u65b9\u5f0f\u65f6\uff0c\u540c\u65f6\u5411\u8bbe\u5907\u63d0\u4f9b\u7535\u6e90\u3002\u6240\u4ee5<\/p>\n

\u5728\u4f7f\u7528\u65f6\uff0c\u4e00\u822c\u9700\u8981\u52a0\u4e00\u4e2a5-10k\u7684\u4e0a\u62c9\u7535\u963b\u3002<\/p>\n

(3)VDD\u5f15\u811a\u3002VDD\u5fc5\u987b\u8fde\u63a5\u5230\u5730\u5f53\u91c7\u7528\u201c\u5bc4\u751f\u7535\u6e90\u201d\u4f9b\u7535\u65f6\u3002<\/p>\n

3.DS18B20\u9a71\u52a8\u7a0b\u5e8f<\/p>\n

(1)DS18B20.h<\/p>\n

\"pYYBAGMbARGAGJwyAABM_aDzKfw582\"<\/p>\n

\uff082\uff09DS18B20.c<\/p>\n

\"poYBAGMbAUGADOGaAADcklwJ6rA584\"<\/p>\n

 <\/p>\n

\"poYBAGMbAYGABeRUAADX5Z4eVnQ908\"<\/p>\n

 <\/p>\n

\"pYYBAGMbAZyAA7SKAACydEEYQog659\"<\/p>\n","protected":false},"excerpt":{"rendered":"

1.\u82af\u7247\u7b80\u4ecb DS18B20\u6570\u5b57\u6e29\u5ea6\u4f20\u611f\u5668\u63d0\u4f9b9-Bit\u523012-Bit\u7684\u6444\u6c0f\u6e29\u5ea6\u6d4b\u91cf\u7cbe\u5ea6\u548c\u4e00\u4e2a\u7528\u6237\u53ef\u7f16\u7a0b\u7684\u975e\u6613 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/9739"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9739"}],"version-history":[{"count":1,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/9739\/revisions"}],"predecessor-version":[{"id":9747,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/9739\/revisions\/9747"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9739"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}