Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz

求救﹐XBee Bluetooth 的使用

查看數: 12092 | 評論數: 20 | 收藏 0
關燈 | 提示:支持鍵盤翻頁<-左 右->
    組圖打開中,請稍候......
發佈時間: 2012-5-29 09:25

正文摘要:

最近在學習如何透過手機使用Bluetooth與Arduino溝通。 我使用的是 Arduino 328 控制板 Xbee傳感器擴展板V5 Bluetooth Bee藍牙無線模塊 手機是ZTE﹐Android 2.3.4 我依照著 http://www.buildcircuit.com/multi-color ...

回復

yuan6191 發表於 2012-10-13 17:33:26
不好意思,我是個新手
想請教你,電路圖應該要怎麼走呢?
因為我也是在研究像你那樣的。利用Arduino和XBee Bluetooth 來控制遙控車...
但是我還不懂怎麼從Arduino和XBee Bluetooth 接去遙控車的馬達,與程式,所以想問下你那個網站有教..
謝謝哦
sinocgt 發表於 2012-6-4 08:22:51
回復 19# nethawk


    加油! 還有很多東西要學著........
nethawk 發表於 2012-6-3 23:50:12
終於成功了﹐sinocgt 依你的方式修改了baud rate之後﹐果然解決了一切的問題~~~
看到燈可以控制的那一刻﹐對於我這個沒學過電子的人﹐超感動的~~~
nethawk 發表於 2012-6-1 11:49:15
大大﹐你說的是﹐我怎麼沒想到要去找賣家問呢~~~~
sinocgt 發表於 2012-6-1 11:23:43
你跟誰買就跟他要! 不給怎麼開發.
nethawk 發表於 2012-6-1 10:39:48
sinocgt 大﹐你真厲害....
今晚下班再試試﹐竟然command也不一樣....
請問這些command 資料是要去那裏找呢?
sinocgt 發表於 2012-6-1 09:27:21
抱歉是57600,不是97600
sinocgt 發表於 2012-6-1 09:26:20
你的Bluetooth 是 Bee v2版本沒錯, 跟你說的網站不一樣! AT COMMAND也不一樣, 要改baud rate必須把switch 調到 AT Mode, AT COMMAND不是 AT+BAUD7, 而是 AT+UART=97600,0,0\r\n
sinocgt 發表於 2012-5-31 08:59:10
可以拍張你的Bluetooth Bee 照片出來看看嗎? 我先確定你的是哪個版本,網路上賣得常常圖片甚至資料都放錯.
nethawk 發表於 2012-5-30 14:37:55
sinocgt 你的blog和 coopermaa的blog 都是我接觸arduino常拜訪的地方﹐給我這個外行人提供了許多的知識﹐先謝謝你們。

sinocgt 想請教幾件事
1.我買的Bluetooth Bee是 http://twarm.com/commerce/produc ... 27b51694f646fc4cf6f 這一塊﹐請問和你文章中說的 Bluetooth Bee v2 是一樣的嗎?
2.請問http://sinocgtchen.blogspot.com/ ... s-baud-rate-of.html (the baud rate of Bluetooth Bee v2 on the IO Expansion Shield V5) 和 http://sinocgtchen.blogspot.com/2011/12/motoduino-baud-rate.html (Motoduino 上修改藍芽模組Baud Rate) 這兩篇都是修改藍牙的baud rate﹐我昨天已有使用後者的方式做過﹐也如同在你的文章描述的一樣在Arduino的Monitor下方如果將baud rate欄位選成9600﹐則Monitor中會顯示AT+BAUD7(不過前面帶有一個亂碼的字元)﹐如果將baud rate欄位選成57600﹐則會顯示一串的亂碼﹐這樣是不是代表Bluetooth Bee的baud rate已經改成57600了?
3.我還需要再用"changes the baud rate of Bluetooth Bee v2 on the IO Expansion Shield V5"這篇文章中的方式修改嗎?
sinocgt 發表於 2012-5-30 08:57:03
有參考過我的Blog: changes the baud rate of Bluetooth Bee v2 on the IO Expansion Shield V5,
把baud rate改成57600 for Amarino.
http://sinocgtchen.blogspot.com/ ... s-baud-rate-of.html
nethawk 發表於 2012-5-30 00:21:19
我依照 http://sinocgtchen.blogspot.com/2011/12/motoduino-baud-rate.html 這個方式修改了baud rate。
不過﹐我把擴展板pin9的信號口接Led的正極﹐gnd接led負極﹐一接上led就亮了。(我是認為藍牙還沒連上前應該是還不亮的)
而當我手機執行MultiColorLamp和藍牙模組連上後(藍牙模組上的link燈有亮起來)﹐在手機上操作並不能像MultiColorLamp的影片檔一樣可以控制led燈的亮度...不知道還有那裏是錯誤的....難道說我應該先去換個藍牙模組嗎....
nethawk 發表於 2012-5-29 13:47:22
非常感謝﹐今天下班後回家試試看~~~
coopermaa 發表於 2012-5-29 13:12:37
請問如果我想換一塊Bluetooth模組﹐應該買什麼才對呢?
nethawk 發表於 2012-5-29 10:44


這塊不錯:http://goods.ruten.com.tw/item/show?21204206581641
coopermaa 發表於 2012-5-29 13:10:06
以你用的這塊模組而言,要設 baud rate 的話,用 XBee USB Adapter 比較方便

不過,即使手邊沒有 XBee USB Adapter 也是可以設定 baud rate,可以參考 signcgtchen 的文章:
http://sinocgtchen.blogspot.com/2011/12/motoduino-baud-rate.html
http://sinocgtchen.blogspot.com/ ... d-rate-name-on.html
nethawk 發表於 2012-5-29 10:44:18
請問如果我想換一塊Bluetooth模組﹐應該買什麼才對呢?
nethawk 發表於 2012-5-29 10:42:39
coopermaa, 我剛去賣家的網站上看應該是你說的DFrobot
嗯...你的意思是我還要另外買一個XBee USB Adapter才能去設定我買的那塊Bluetooth Bee的Baud rate啊...
難道這就是為什麼我看網路上的範例我都一直沒辦法改baud rate的關係嗎...

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-9-29 09:19 , Processed in 0.241986 second(s), 12 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表