總網頁瀏覽量

2011年5月29日 星期日

Arduino + Android + Bluetooth







主要是利用 Amarino 當bluetooth介面, 利用android手機的藍牙裝置來控制小汽車.
利用的材料如下:
1. Auduino board
2. Bluetooth Bee shield and Bluetooth Bee v2 module
3. L293D motor driver IC
4. 自己組裝的基礎車4WD(可以拆不要的玩具車, 我另一台車就是拆玩具車組裝)
5. 麵包板
6. DC motor 兩顆
7. 9 V 電池一顆(供Arduino板子power) 及三顆AA 1.5V電池供馬達power.



附註: 三顆AA電池不夠力, 改成四顆(1.5*4=6V)就Ok. 


我的YouTube影片: http://www.youtube.com/user/sinocgtchen

2011年5月11日 星期三

DFRduino (Arduino): changes the baud rate of Bluetooth Bee v2 on the IO Expansion Shield V5


在DFRobot IO 擴充板上修改 Bluetooth Bee v2(default 38400)的 Baud Rate 成 57600.
通常使用USB-TTL線來設定baud rate,但是如果只有Arduino板子時,可以用此法設定...

Step 1:
把 Arduino上的ATMEGA328P IC 拔起來,放到旁邊去.

Step 2:
IO Expansion的RS232/RS385 的兩個Jumper拔起,然後用杜邦線跳線,如右圖.

Step 3:
把 Bluetooth Bee v2上的switch撥到 AT mode,然後插入IO Shield上.

Step 4:
把Arduino USB接頭接到PC上電,利用SSCOM3.2的serial port tool下AT command.
SSCOM3.2設定請參考 Bluetooth Bee V2使用手册.

Step 5:
按照手冊設定完後移除電源,把藍芽模組撥回正常mode,然後ATmega328p插回板子及兩個Jumper也都插回去原來狀態.

Step 6:
開始玩 Arduino ..... (如有問題可以send mail to me )

注意: Bluetooth Bee v2 佔用 Arduino digital pin 0 and pin 1.