{"id":5851,"date":"2023-03-26T11:15:30","date_gmt":"2023-03-26T11:15:30","guid":{"rendered":"https:\/\/www.fambach.net\/?p=5851"},"modified":"2023-03-26T11:16:12","modified_gmt":"2023-03-26T11:16:12","slug":"hc-06-blutooth-modul","status":"publish","type":"post","link":"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/","title":{"rendered":"HC-06 Blutooth Modul"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Fakten\" title=\"Facts\">Facts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Anwendungsbereiche\" title=\"Areas of application\">Areas of application<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Ansichten\" title=\"Views\">Views<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Programmierung\" title=\"Programming\">Programming<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Bibliotheken\" title=\"Libraries\">Libraries<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Testprogramm\" title=\"Test programme\">Test programme<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Probleme\" title=\"Problems\">Problems<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Sonstiges\" title=\"Miscellaneous\">Miscellaneous<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Fazit\" title=\"Conclusion\">Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Verwandte_Beitrage\" title=\"Related Posts\">Related Posts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Quellen\" title=\"Sources\">Sources<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>Diese Modul ist \u00e4hnlich dem HC05 und kann eine serielle Verbindung via Bluetooth herstellen. Die Logikein-\/ausg\u00e4nge arbeiten mit 3V das Modul kann also nicht direkt an Controllern mit 5V betrieben werden.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fakten\"><\/span>Facts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul><li><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th><strong>Description<\/strong><\/th><th><strong>Worth<\/strong><\/th><\/tr><\/thead><tbody><tr><td>Versorgungsspannung <\/td><td>5-7V<\/td><\/tr><tr><td>Logikspannung<\/td><td>3V<\/td><\/tr><tr><td>Empfangspin<\/td><td>RX<\/td><\/tr><tr><td>Sendepin<\/td><td>TX<\/td><\/tr><tr><td>Boudrate (Einstellbar)<\/td><td>9600<\/td><\/tr><tr><td>Pin<\/td><td>1234<\/td><\/tr><\/tbody><\/table><figcaption>Details<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Anwendungsbereiche\"><\/span>Areas of application<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul><li>Fernsteuerung \/ Fernbedienung<\/li><li>Kommunikation \u00fcber kurze Entfernungen<\/li><li>Verbindung zu Handy Applikation<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ansichten\"><\/span>Views<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.fambach.net\/wp-content\/uploads\/bthc06Front.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"1000\" data-id=\"9249\" src=\"https:\/\/www.fambach.net\/wp-content\/uploads\/bthc06Front.jpg\" alt=\"\" class=\"wp-image-9249\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.fambach.net\/wp-content\/uploads\/bthc06back.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"1000\" data-id=\"9248\" src=\"https:\/\/www.fambach.net\/wp-content\/uploads\/bthc06back.jpg\" alt=\"\" class=\"wp-image-9248\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Programmierung\"><\/span>Programming<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Bibliotheken\"><\/span>Libraries<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Keine n\u00f6tig kann entweder \u00fcber HardwareSerial an den entsprechenden Pins angesprochen werden oder \u00fcber SoftwareSerial.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Testprogramm\"><\/span>Test programme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<style> #wrap_githubgista0204a06367e681cd950386e3680e5f8 .gist-data {max-height: 400px;} <\/style>\n<div id=\"wrap_githubgista0204a06367e681cd950386e3680e5f8\" style=\"width:100%\"><script>document.write('<link rel=\"stylesheet\" href=\"https:\/\/github.githubassets.com\/assets\/gist-embed-f554937d749d36df.css\">')\ndocument.write('<\/p>\n<div id=\\\"gist121590973\\\" class=\\\"gist\\\">\\n    <\/p>\n<div class=\\\"gist-file\\\" translate=\\\"no\\\" data-color-mode=\\\"light\\\" data-light-theme=\\\"light\\\">\\n      <\/p>\n<div class=\\\"gist-data\\\">\\n        \\n<\/p>\n<div class=\\\"js-gist-file-update-container js-task-list-container\\\">\\n      <\/p>\n<div id=\\\"file-simple-bt-hc06-test\\\" class=\\\"file my-2\\\">\\n    \\n    <\/p>\n<div itemprop=\\\"text\\\"\\n      class=\\\"Box-body p-0 blob-wrapper data type-text  \\\"\\n      style=\\\"overflow: auto\\\" tabindex=\\\"0\\\" role=\\\"region\\\"\\n      aria-label=\\\"Simple BT HC06 Test content, created by sfambach on 11:08AM on March 26, 2023.\\\"\\n    >\\n\\n        \\n<\/p>\n<div class=\\\"js-check-hidden-unicode js-blob-code-container blob-code-content\\\">\\n\\n  <template class=\\\"js-file-alert-template\\\">\\n  <\/p>\n<div data-view-component=\\\"true\\\" class=\\\"flash flash-warn flash-full d-flex flex-items-center\\\">\\n  <svg aria-hidden=\\\"true\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" version=\\\"1.1\\\" width=\\\"16\\\" data-view-component=\\\"true\\\" class=\\\"octicon octicon-alert\\\">\\n    <path d=\\\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\\\"><\\\/path>\\n<\\\/svg>\\n    <span>\\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\\n      <a class=\\\"Link--inTextBlock\\\" href=\\\"https:\/\/github.co\/hiddenchars\\\" target=\\\"_blank\\\">Learn more about bidirectional Unicode characters<\\\/a>\\n    <\\\/span>\\n\\n\\n  <\/p>\n<div data-view-component=\\\"true\\\" class=\\\"flash-action\\\">        <a href=\\\"{{ revealButtonHref }}\\\" data-view-component=\\\"true\\\" class=\\\"btn-sm btn\\\">    Show hidden characters\\n<\\\/a>\\n<\\\/div>\\n<\\\/div><\\\/template>\\n<template class=\\\"js-line-alert-template\\\">\\n  <span aria-label=\\\"This line has hidden Unicode characters\\\" data-view-component=\\\"true\\\" class=\\\"line-alert tooltipped tooltipped-e\\\">\\n    <svg aria-hidden=\\\"true\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" version=\\\"1.1\\\" width=\\\"16\\\" data-view-component=\\\"true\\\" class=\\\"octicon octicon-alert\\\">\\n    <path d=\\\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\\\"><\\\/path>\\n<\\\/svg>\\n<\\\/span><\\\/template>\\n\\n  <\/p>\n<table data-hpc class=\\\"highlight tab-size js-file-line-container\\\" data-tab-size=\\\"4\\\" data-paste-markdown-skip data-tagsearch-path=\\\"Simple BT HC06 Test\\\">\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L1\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"1\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC1\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">\/** modified by SteFam www.fambach.net GPLII*\/<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L2\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"2\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC2\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">\\n<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L3\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"3\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC3\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">#include &lt;SoftwareSerial.h&gt;<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L4\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"4\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC4\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">SoftwareSerial bt(10, 11); \/\/ RX | TX<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L5\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"5\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC5\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">\\n<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L6\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"6\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC6\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">void setup()<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L7\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"7\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC7\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">{<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L8\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"8\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC8\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  <\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L9\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"9\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC9\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  Serial.begin(9600);<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L10\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"10\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC10\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  bt.begin(9600);  \/\/Default Baud rate <\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L11\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"11\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC11\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  Serial.println(&quot;Connect to HC-XX with 1234 as key!&quot;);<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L12\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"12\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC12\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  <\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L13\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"13\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC13\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">}<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L14\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"14\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC14\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  <\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L15\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"15\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC15\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">void loop()<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L16\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"16\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC16\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">{<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L17\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"17\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC17\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  <\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L18\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"18\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC18\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  \/\/ Feed any data from bluetooth to Terminal.<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L19\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"19\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC19\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  if (bt.available())<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L20\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"20\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC20\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">    Serial.write(bt.read());<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L21\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"21\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC21\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  <\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L22\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"22\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC22\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  \/\/ Feed all data from terminal to bluetooth<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L23\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"23\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC23\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">  if (Serial.available())<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L24\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"24\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC24\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">    bt.write(Serial.read());<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L25\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"25\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC25\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">}<\\\/td>\\n        <\\\/tr>\\n        <\/p>\n<tr>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-L26\\\" class=\\\"blob-num js-line-number js-blob-rnum\\\" data-line-number=\\\"26\\\"><\\\/td>\\n          <\/p>\n<td id=\\\"file-simple-bt-hc06-test-LC26\\\" class=\\\"blob-code blob-code-inner js-file-line\\\">\\n<\\\/td>\\n        <\\\/tr>\\n  <\\\/table>\\n<\\\/div>\\n\\n\\n    <\\\/div>\\n\\n  <\\\/div>\\n\\n<\\\/div>\\n\\n      <\\\/div>\\n      <\/p>\n<div class=\\\"gist-meta\\\">\\n        <a href=\\\"https:\/\/gist.github.com\/sfambach\/a0204a06367e681cd950386e3680e5f8\/raw\/e4dd5533c1d95a3ba7d2c401d2271537d6d245fb\/Simple%20BT%20HC06%20Test\\\" style=\\\"float:right\\\" class=\\\"Link--inTextBlock\\\">view raw<\\\/a>\\n        <a href=\\\"https:\/\/gist.github.com\/sfambach\/a0204a06367e681cd950386e3680e5f8#file-simple-bt-hc06-test\\\" class=\\\"Link--inTextBlock\\\">\\n          Simple BT HC06 Test\\n        <\\\/a>\\n        hosted with &#10084; by <a class=\\\"Link--inTextBlock\\\" href=\\\"https:\/\/github.com\\\">GitHub<\\\/a>\\n      <\\\/div>\\n    <\\\/div>\\n<\\\/div>\\n')\n<\/script><\/p>\n<div style='margin-bottom:1em;padding:0;'><noscript><code><\/p>\n<pre style='overflow:auto;margin:0;padding:0;border:1px solid #DDD;'>400: Invalid request<\/pre>\n<p><\/code><\/noscript><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Probleme\"><\/span>Problems<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Noch keine gefunden.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Sonstiges\"><\/span>Miscellaneous<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Einstellungen des Moduls \u00e4ndern.<\/p>\n\n\n\n<p>Die Einstellungen des Moduls k\u00f6nnen mit AT Kommandos ge\u00e4ndert werden. Hierf\u00fcr muss der State Pin auf High (Vorsicht 3.3V) gelegt werden.<\/p>\n\n\n\n<p>Siehe hierzu auch folgenden Link:<\/p>\n\n\n\n<p><a href=\"https:\/\/droiduino-cc.medium.com\/changing-arduino-bluetooth-name-if-you-are-using-hc05-module-6f184a242467\">https:\/\/droiduino-cc.medium.com\/changing-arduino-bluetooth-name-if-you-are-using-hc05-module-6f184a242467<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fazit\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Eine schnelle und einfache M\u00f6glichkeit um serielle Verbindungen drahtlos zu gestalten. Gerade f\u00fcr die alten Arduino Boards ohne Wifi sehr interessant. Der ESP01 erf\u00fcllt nat\u00fcrlich auch diesen Zweck ist hierf\u00fcr \u00fcberproportioniert und muss erst noch programmiert werden. Auch ben\u00f6tigt man auf der anderen Seite einen Server der antwortet. Mit dem BT Modul kann man die Serielle Schnittstelle wie mit Kabel benutzen, wenn die BT Verbindung erst einmal hergestellt ist. Ob eine Programmierung beispielsweise eine UNOs m\u00f6glich habe ich nicht getestet w\u00e4re aber mal ein interessantes Projekt.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Verwandte_Beitrage\"><\/span>Related Posts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ul class=\"display-posts-listing\">\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-c3-seeed-studio-xiao\/\">ESP32-C3 Seeed Studio XIAO<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-c3-super-mini-board\/\">ESP32-C3 Super Mini Board<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-ubuntu-22-04\/\">PS3-Controller unter Ubuntu 2x.04<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/preview-template\/\">Preview &#8211; Open-Smart USB\/Serial Adapter<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/preview-strom-sensor-ina219-dc\/\">Preview \u2013 INA3221 Power Monitor<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-ubuntu-22-04-2\/\">PS3 controller on Windows 10<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-bluetooth-gamepad-2\/\">ESP32 Bluetooth Gamepad<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-ubuntu-22-04-3\/\">Bluetooth Gamecontroller unter Ubuntu 2x.04<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-windows-10\/\">Bluetooth Gamecontroller unter Windows 10<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/\">HC-06 Blutooth Modul<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Quellen\"><\/span>Sources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/wolles-elektronikkiste.de\/hc-05-und-hc-06-bluetooth-module\">https:\/\/wolles-elektronikkiste.de\/hc-05-und-hc-06-bluetooth-module<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/stefanfrings.de\/bluetooth\/\">http:\/\/stefanfrings.de\/bluetooth\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/funduino.de\/tutorial-hc-05-und-hc-06-bluetooth\">https:\/\/funduino.de\/tutorial-hc-05-und-hc-06-bluetooth<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.conrad.de\/de\/p\/az-delivery-hc-05-hc-06-bluetooth-wireless-rf-transceiver-modul-rs232-serielle-ttl-850037630.html\">https:\/\/www.conrad.de\/de\/p\/az-delivery-hc-05-hc-06-bluetooth-wireless-rf-transceiver-modul-rs232-serielle-ttl-850037630.html<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Diese Modul ist \u00e4hnlich dem HC05 und kann eine serielle Verbindung via Bluetooth herstellen. Die Logikein-\/ausg\u00e4nge arbeiten mit 3V das Modul kann also nicht direkt an Controllern mit 5V betrieben werden. Fakten Beschreibung Wert Versorgungsspannung 5-7V Logikspannung 3V Empfangspin RX Sendepin TX Boudrate (Einstellbar) 9600 Pin 1234 Details Anwendungsbereiche Fernsteuerung \/ Fernbedienung Kommunikation \u00fcber kurze &#8230;<\/p>\n<a href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/\" class=\"read-more-link\">Continue reading <span class=\"screen-reader-text\">\"HC-06 Blutooth Modul\"<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a>","protected":false},"author":1,"featured_media":9253,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[157,216],"tags":[145,687,685,686,540],"modified_by":"sfambach","_links":{"self":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5851"}],"collection":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/comments?post=5851"}],"version-history":[{"count":8,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5851\/revisions"}],"predecessor-version":[{"id":9255,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5851\/revisions\/9255"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/media\/9253"}],"wp:attachment":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/media?parent=5851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/categories?post=5851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/tags?post=5851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}