{"id":3067,"date":"2011-02-03T02:41:36","date_gmt":"2011-02-03T07:41:36","guid":{"rendered":"https:\/\/example.com\/?postname=bt-up-and-running"},"modified":"2011-02-03T02:41:36","modified_gmt":"2011-02-03T07:41:36","slug":"bt-up-and-running","status":"publish","type":"post","link":"http:\/\/atomsofttech.com\/blog\/uncategorized\/bt-up-and-running\/","title":{"rendered":"Bluetooth Module BTM-182"},"content":{"rendered":"<p><a href=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/bt.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1228\" title=\"bt\" src=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/bt.jpg\" alt=\"\" width=\"321\" height=\"366\" \/><\/a><\/p>\n<p>Hello all i recently obtained a BTM-182 from Sparkfun. This is a Bluetooth module.<\/p>\n<p>This module is super easy to get up and running, even though i ran into a issue. The issue i had was on my part, i was writing to the wrong port.<\/p>\n<p>Ok i wont go into details about the module because you can find the info on <a href=\"http:\/\/www.sparkfun.com\/products\/9913\" target=\"_blank\">Sparkfun<\/a>.<\/p>\n<p>What i will give you is some basic information to get started using this with a PC. Once you can use it with your PC you can use it with a AVR, PIC or ARM without issue.<\/p>\n<p>Lets take a look at the pinout:<\/p>\n<p><a href=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/pins.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1223\" title=\"pins\" src=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/pins.jpg\" alt=\"\" width=\"500\" height=\"502\" \/><\/a><\/p>\n<p>Looks like a lot, i know. Dont worry most of these pins wont even be used.\u00a0 The only pins we need to worry about besides POWER pins are&#8230;<\/p>\n<p>UART_TX &#8211; PIN 9<br \/>\nUART_RX &#8211; PIN 10<\/p>\n<p>There are some LED&#8217;s we can also which are:<\/p>\n<p>Link Status &#8211; PIN 22<br \/>\nData Status &#8211; PIN 24<br \/>\nPower Status &#8211; PIN 28<\/p>\n<p>These are vital for debug use. They are not needed really but can help you figure out connection and power issues.<\/p>\n<p>Knowing the pins required we can now make a small development board for breadboard use:<\/p>\n<p><a href=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/sch.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-1225\" title=\"sch\" src=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/sch.jpg?w=150\" alt=\"\" width=\"150\" height=\"119\" \/><\/a><a href=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/brd.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-1224\" title=\"brd\" src=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/brd.jpg?w=109\" alt=\"\" width=\"109\" height=\"150\" \/><\/a><\/p>\n<p>Ok With this board created we can connect to a MCU or PC. The protocol is UART and the default config is:<\/p>\n<p><strong>Baud rate:<\/strong> 19200 bps<br \/>\n<strong>Data bit: <\/strong>8<br \/>\n<strong>Parity: <\/strong>none<br \/>\n<strong>Stop bit: <\/strong>1<\/p>\n<p>You can simply use a MAX232 to connect to your PC and talk to the device via Terminal program or you can connect to a MCU like this:<\/p>\n<p><a href=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/dia.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1257\" title=\"dia\" src=\"http:\/\/atomsoft.wordpress.com\/wp-content\/uploads\/2011\/02\/dia.jpg?w=300\" alt=\"\" width=\"300\" height=\"161\" srcset=\"http:\/\/atomsofttech.com\/blog\/wp-content\/uploads\/2011\/02\/dia.jpg 400w, http:\/\/atomsofttech.com\/blog\/wp-content\/uploads\/2011\/02\/dia-300x161.jpg 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The device uses simple AT command to configure the device.\u00a0 As for example we will change the name of the module. You can get the name from the module by sending<\/p>\n<p>&#8220;ATN?&#8221;<\/p>\n<p>This is AT Command N? which queries the device for its name. The max characters for the name field is 16.<\/p>\n<p>To change the name to &#8220;AtomBT&#8221; we have to send &#8220;ATN=AtomBT&#8221;<\/p>\n<p>Its simple as that. If you are getting errors or no data from the device try sending &#8220;+++&#8221; this is a SWITCH to command mode command. It will leave data mode and enter command mode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello all i recently obtained a BTM-182 from Sparkfun. This is a Bluetooth module. This module is super easy to get up and running, even though i ran into a issue. The issue i had was on my part, i was writing to the wrong port. Ok i wont go into details about the module [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-3067","post","type-post","status-publish","format-standard","hentry"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts\/3067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/comments?post=3067"}],"version-history":[{"count":0,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts\/3067\/revisions"}],"wp:attachment":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/media?parent=3067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/categories?post=3067"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/tags?post=3067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}