
{"id":1164,"date":"2016-11-22T16:15:49","date_gmt":"2016-11-22T08:15:49","guid":{"rendered":"https:\/\/www.webteach.tw\/?p=1164"},"modified":"2016-11-22T16:15:49","modified_gmt":"2016-11-22T08:15:49","slug":"arduino-hc-05-%e4%b8%bb%e5%8b%95%e9%80%a3%e7%b5%90hc-06%e6%95%99%e5%ad%b8","status":"publish","type":"post","link":"https:\/\/www.webteach.tw\/?p=1164","title":{"rendered":"[ Arduino ] &#8211; HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78"},"content":{"rendered":"<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div><div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><p>\t\t\t\t1.\u8173\u4f4d\u63d2\u597d\u5f8c\u5beb\u5165\u4e0b\u9762\u7a0b\u5f0f<br \/>\n5V => 5V<br \/>\nGND => GND<br \/>\nTX=> 11<br \/>\nRX=> 10<br \/>\n[javascript]<br \/>\n#include  &lt;SoftwareSerial.h&gt;<br \/>\nSoftwareSerial BTSerial(10, 11); \/\/ RX | TX<br \/>\nvoid setup()<br \/>\n{<br \/>\n  Serial.begin(9600);<br \/>\n  Serial.println(&quot;Enter AT commands:&quot;);<br \/>\n  BTSerial.begin(38400);\/\/\u85cd\u82bd\u51fa\u5ee0\u9810\u8a2d\u503c<br \/>\n}<br \/>\nvoid loop()<br \/>\n{<br \/>\n  if (BTSerial.available())<br \/>\n    Serial.write(BTSerial.read());<br \/>\n  if (Serial.available())<br \/>\n    BTSerial.write(Serial.read());<br \/>\n}<br \/>\n[\/javascript]<br \/>\n2.\u5148\u65b7\u958bUSB \u6309\u4f4fHC05\u677f\u4e0a\u7684\u9215 \u4e0d\u8981\u653e\u958b\uff0c\u7136\u5f8c\u5c07USB \u63d2\u5165 UNO\u7248\u904e\u96fb,\u6703\u770b\u5230HC-05 \u71c8\u865f\u6703\u8b8a\u6210\u5169\u79d2\u9583\u4e00\u6b21\u8868\u793a\u9032\u5165AT\u6a21\u5f0f<br \/>\n\u9019\u6642\u5c31\u53ef\u4ee5\u958b\u555f\u5e8f\u5217\u57e0\u76e3\u63a7\u8996\u7a97 \u8a18\u5f97\u4e0b\u9762\u4e0b\u62c9\u8981\u9078 NL &#038; CR<br \/>\n\u8f38\u5165 AT<br \/>\n\u5982\u679c\u51fa\u73feOK \u8868\u793a\u85cd\u82bd\u6709\u555f\u52d5 \u5c31\u53ef\u4ee5\u958b\u59cb\u505a\u8a2d\u5b9a<br \/>\n3.\u6211\u5011\u8981\u8b93HC-05\u8b8a\u6210\u4e3b\u63a7\u7aef \u8f38\u5165\u6307\u4ee4 AT+ROLE=1<br \/>\n\u756b\u9762\u6703\u8f38\u51fa<br \/>\n+ROLE:1<br \/>\nOK<br \/>\n\u8868\u793a\u8a2d\u5b9a\u6210\u529f<br \/>\n4.\u6211\u5011\u8981\u8b93HC-05 \u4e3b\u52d5\u53bb\u9023\u7d50HC-06\u5f9e\u7aef \u8f38\u5165\u6307\u4ee4 AT+BIND=XXXX,XX,XXXXXX<br \/>\n\u756b\u9762\u6703\u8f38\u51fa<br \/>\nOK<br \/>\n\u8868\u793a\u8a2d\u5b9a\u6210\u529f<br \/>\n\u5f9e\u7aef\u7684\u85cd\u82bdmac\u78bc\u683c\u5f0f\u70ba 98:d3:31:80:9c:a8<br \/>\n\u8f38\u5165\u6307\u4ee4\u6642\u8981\u9019\u6a23\u8f38\u5165 98d3,31,809ca8<\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>1.\u8173\u4f4d\u63d2\u597d\u5f8c\u5beb\u5165\u4e0b\u9762\u7a0b\u5f0f 5V =>  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-1164","post","type-post","status-publish","format-standard","hentry","category-arduino"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[ Arduino ] - HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78 - \u6df7\u6c34\u6478\u9b5a<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webteach.tw\/?p=1164\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[ Arduino ] - HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78 - \u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"og:description\" content=\"1.\u8173\u4f4d\u63d2\u597d\u5f8c\u5beb\u5165\u4e0b\u9762\u7a0b\u5f0f 5V =&gt; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webteach.tw\/?p=1164\" \/>\n<meta property=\"og:site_name\" content=\"\u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-22T08:15:49+00:00\" \/>\n<meta name=\"author\" content=\"jeff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"jeff\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1164#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1164\"},\"author\":{\"name\":\"jeff\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"headline\":\"[ Arduino ] &#8211; HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78\",\"datePublished\":\"2016-11-22T08:15:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1164\"},\"wordCount\":79,\"commentCount\":0,\"articleSection\":[\"Arduino\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=1164#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1164\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1164\",\"name\":\"[ Arduino ] - HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78 - \u6df7\u6c34\u6478\u9b5a\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\"},\"datePublished\":\"2016-11-22T08:15:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1164#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=1164\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1164#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\\\/\\\/www.webteach.tw\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[ Arduino ] &#8211; HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/\",\"name\":\"\u6df7\u6c34\u6478\u9b5a\",\"description\":\"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webteach.tw\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\",\"name\":\"jeff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"caption\":\"jeff\"},\"sameAs\":[\"http:\\\/\\\/35.72.55.111\"],\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?author=1\"},false]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[ Arduino ] - HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78 - \u6df7\u6c34\u6478\u9b5a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webteach.tw\/?p=1164","og_locale":"zh_TW","og_type":"article","og_title":"[ Arduino ] - HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78 - \u6df7\u6c34\u6478\u9b5a","og_description":"1.\u8173\u4f4d\u63d2\u597d\u5f8c\u5beb\u5165\u4e0b\u9762\u7a0b\u5f0f 5V => [&hellip;]","og_url":"https:\/\/www.webteach.tw\/?p=1164","og_site_name":"\u6df7\u6c34\u6478\u9b5a","article_published_time":"2016-11-22T08:15:49+00:00","author":"jeff","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"jeff"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webteach.tw\/?p=1164#article","isPartOf":{"@id":"https:\/\/www.webteach.tw\/?p=1164"},"author":{"name":"jeff","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"headline":"[ Arduino ] &#8211; HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78","datePublished":"2016-11-22T08:15:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webteach.tw\/?p=1164"},"wordCount":79,"commentCount":0,"articleSection":["Arduino"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webteach.tw\/?p=1164#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webteach.tw\/?p=1164","url":"https:\/\/www.webteach.tw\/?p=1164","name":"[ Arduino ] - HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78 - \u6df7\u6c34\u6478\u9b5a","isPartOf":{"@id":"https:\/\/www.webteach.tw\/#website"},"datePublished":"2016-11-22T08:15:49+00:00","author":{"@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"breadcrumb":{"@id":"https:\/\/www.webteach.tw\/?p=1164#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webteach.tw\/?p=1164"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webteach.tw\/?p=1164#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.webteach.tw\/"},{"@type":"ListItem","position":2,"name":"[ Arduino ] &#8211; HC-05 \u4e3b\u52d5\u9023\u7d50HC-06\u6559\u5b78"}]},{"@type":"WebSite","@id":"https:\/\/www.webteach.tw\/#website","url":"https:\/\/www.webteach.tw\/","name":"\u6df7\u6c34\u6478\u9b5a","description":"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webteach.tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520","name":"jeff","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","caption":"jeff"},"sameAs":["http:\/\/35.72.55.111"],"url":"https:\/\/www.webteach.tw\/?author=1"},false]}},"views":744,"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"_links":{"self":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/1164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1164"}],"version-history":[{"count":0,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/1164\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}