a612142005 發表於 2015-5-13 16:21:50

Arduino藍芽連接andriod問題!!!!

請問各位高手,有人做過這個範例練習嗎
http://blog.cavedu.com/programming-language/appinventor/appinventorandarduinowithbluetooth3/

為什麼我照著這網站提供的app inventor檔案和arduino程式做
但是手機卻沒有照著影片中顯示的
而只是7.263.519.775 這四個數字跳來跳去
請問是哪裡出了問題呢???
我怎麼找也找不到.....

ilalay 發表於 2015-9-30 20:04:54

https://play.google.com/store/ap ... r_lite&hl=zh-tw
上面連結有範例與教學程式碼可以參考使用, 很簡單就可以達成透過藍芽來控制 Arduino, 希望對你有幫助.

說明 :
Step 1: 硬體
Arduino x 1
藍芽模組 x 1
LED x ? (? 表你要接幾個都行)
電阻 x ? -- 330 ohm (? 表LED有幾個, 就配給個電阻)

Step 2: 佈線 : 可參考 App 中的實體接線圖 or 教學影片

Step 3: 軟體 (參考 **Note)
Android App : Arduino Bluetooth Controllor (ABC) -> 到 Google Play 商店下載安裝
Arduino Sketch : 下載範例程式碼 & 專屬函式庫

Step 4: 開始執行
開啟 (ABC) -> 開啟藍芽 -> 配對並選擇藍芽對像 -> 連上 Arduino -> 按圖示下指令

**Note : 你可以撰寫你自己的程式碼, 也可以先試著使用我們提供的函式庫與程式碼, 你會發現用幾行程式碼就可輕易透過藍芽來控制你的智慧裝置。

下載連結 :
1. 範例程式碼 (Bluetooth_Controllor_Example.zip) : 請點選 App 中的下載程式碼
2. 範例函式庫 (Bluetooth_Controllor_Library.zip) : 請點選 App 中的下載函式庫 (Optional)

如果你直接使用我們提供的上述 2 個 zip 檔, 跟著步驟解壓縮後上傳即完成.
Step 1: Bluetooth_Controllor_Library.zip -> Unzip it to \libraries
Step 2: Bluetooth_Controllor_Example.zip -> Unzip and upload it to your Arduino board
Step 3: 執行 Arduino Bluetooth Controllor (ABC)

範例一: 使用 AndroidBluetooth 函式庫 (Bluetooth_LED_Android.ino 只有簡單幾行程式碼就完成所有控制動作)
#include
AndroidBluetooth ABC;
void setup() {
Serial.begin(9600);
}
void loop() {
ABC.doAction();
}
頁: [1]
查看完整版本: Arduino藍芽連接andriod問題!!!!