{"id":446,"date":"2013-03-10T14:23:34","date_gmt":"2013-03-10T21:23:34","guid":{"rendered":"http:\/\/micromouseusa.com\/?p=446"},"modified":"2013-03-12T12:00:23","modified_gmt":"2013-03-12T19:00:23","slug":"use-a-bluetooth-module-to-transfer-data-from-micromouse-to-pc","status":"publish","type":"post","link":"http:\/\/micromouseusa.com\/?p=446","title":{"rendered":"Use a Bluetooth Module to transfer data from Micromouse to PC"},"content":{"rendered":"<p><a href=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-443\" alt=\"bluetooth module (5)\" src=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-5.jpg\" width=\"1280\" height=\"853\" srcset=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-5.jpg 1280w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-5-300x199.jpg 300w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-5-1024x682.jpg 1024w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-5-450x300.jpg 450w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<p>In order to easier my life for transferring data from my micromouse to my computer, I make a serial port bluetooth module adapter to help me finish this job. I use RN-42 bluetooth module and it costs only $15.95 for the module and some other cost for the adapter PCB board. The board is powered by 3.3v directly from my micromouse and it drains about 100-150mah current when running at a medium baudrate. The max baudrate that the module can go is 921000bps, and the my mouse spent about 30us(acceptable for this price) to printf 4 character plus \\r\\n(new line) at max baudrate when transfer data wirelessly through this bluetooth module. Now I mainly use it to get sensor values to avoid using a long usb cable all the way from my computer to my mouse when I need some threshold values for my mouse in the maze. When I need some large amount of data when mouse is running, I still prefer to save the data in RAM then send out at same time once it stops even though the module is capable to send data simultaneously since I don&#8217;t want the module use too much current when mouse is running.<\/p>\n<p>Note that when you want to make such a module powered by your micromouse, make sure you voltage regulator can provided enough current. I use a 1A 5V regulator for 5V output and a 500mah 3.3V regulator for 3.3V power, but area under 5V regulator is always hot when the bluetooth module is running even though I put a pretty larger ground polygon underneath my 5V regulator(and both sides of the PCB under that 5V LDO regulator). I think the better solution is to power the module with external battery to reduce the load of LDO regulator on the micromouse. I am pretty sure it&#8217;s not exceeding the limit of that 5V regulator but as what I&#8217;ve observed for all kinds of LDO regulator, unless they have extremely low dropout voltage, otherwise it will generate some noticeable heat when exceeding 50% of load.<\/p>\n<p>here is the tutorial for how to make this bluetooth module do communication with PC http:\/\/www.jayconsystems.com\/tutorial\/btmatemod\/. in that article they use arduino as example but essentially they are same and I use putty to receive data and it worked well for me.<\/p>\n<p><a href=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-444\" alt=\"bluetooth module (1)\" src=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-1.jpg\" width=\"1280\" height=\"853\" srcset=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-1.jpg 1280w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-1-300x199.jpg 300w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-1-1024x682.jpg 1024w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-1-450x300.jpg 450w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a> I customized the 6-pin interface to make both bluetooth and mouse to fit each other when plug in. <a href=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-445\" alt=\"bluetooth module (2)\" src=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-2.jpg\" width=\"1280\" height=\"853\" srcset=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-2.jpg 1280w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-2-300x199.jpg 300w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-2-1024x682.jpg 1024w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-2-450x300.jpg 450w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><a href=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-441\" alt=\"bluetooth module (3)\" src=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-3.jpg\" width=\"1280\" height=\"853\" srcset=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-3.jpg 1280w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-3-300x199.jpg 300w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-3-1024x682.jpg 1024w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-3-450x300.jpg 450w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><a href=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-442\" alt=\"bluetooth module (4)\" src=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-4.jpg\" width=\"1280\" height=\"853\" srcset=\"http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-4.jpg 1280w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-4-300x199.jpg 300w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-4-1024x682.jpg 1024w, http:\/\/micromouseusa.com\/wp-content\/uploads\/2013\/03\/bluetooth-module-4-450x300.jpg 450w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to easier my life for transferring data from my micromouse to my computer, I make a serial port bluetooth module adapter to help me finish this job. I use RN-42 bluetooth module and it costs only $15.95 for &hellip; <a href=\"http:\/\/micromouseusa.com\/?p=446\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,8,10],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/micromouseusa.com\/index.php?rest_route=\/wp\/v2\/posts\/446"}],"collection":[{"href":"http:\/\/micromouseusa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/micromouseusa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/micromouseusa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/micromouseusa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=446"}],"version-history":[{"count":11,"href":"http:\/\/micromouseusa.com\/index.php?rest_route=\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":1233,"href":"http:\/\/micromouseusa.com\/index.php?rest_route=\/wp\/v2\/posts\/446\/revisions\/1233"}],"wp:attachment":[{"href":"http:\/\/micromouseusa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/micromouseusa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/micromouseusa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}