How2Bluetooth
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*Arduino とBluetooth mateを接続する(Mac OS X編) [#h725d75d]
http://skpang.co.uk/catalog/images/wireless/2-4ghz/09358-...
簡単に接続できるBluetoothモジュールをArduinoにつないでみ...
**Bluetooth mateをMac OS Xとペアリングする [#u3f00030]
{前回のあらまし}
[[けこたんぶろぐ:http://miracle-kktn.blogspot.jp/2014/02/...
を見てください。
ここで、接続で$$$などと送ってセットアップモードに入って、...
**Arduino --> Bluetooth mate --> Macintoshとデータを送っ...
このモジュールは0,1番ピンにつながっているので、それぞれを...
以下で、Arduinoから文字列をMacintoshに送ることができます。
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 1);
void setup() {
mySerial.begin(57600);
}
void loop() {
mySerial.println("hello");
delay(1000);
}
逆に、
mySerial.read();
などすればMacintoshからデータを受け取れます。
***Mac OS XからC, Python, Javaでシリアル経由でデータ送受...
[[ここにまとめてあります:http://is.ocha.ac.jp/~siio/index...
終了行:
*Arduino とBluetooth mateを接続する(Mac OS X編) [#h725d75d]
http://skpang.co.uk/catalog/images/wireless/2-4ghz/09358-...
簡単に接続できるBluetoothモジュールをArduinoにつないでみ...
**Bluetooth mateをMac OS Xとペアリングする [#u3f00030]
{前回のあらまし}
[[けこたんぶろぐ:http://miracle-kktn.blogspot.jp/2014/02/...
を見てください。
ここで、接続で$$$などと送ってセットアップモードに入って、...
**Arduino --> Bluetooth mate --> Macintoshとデータを送っ...
このモジュールは0,1番ピンにつながっているので、それぞれを...
以下で、Arduinoから文字列をMacintoshに送ることができます。
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 1);
void setup() {
mySerial.begin(57600);
}
void loop() {
mySerial.println("hello");
delay(1000);
}
逆に、
mySerial.read();
などすればMacintoshからデータを受け取れます。
***Mac OS XからC, Python, Javaでシリアル経由でデータ送受...
[[ここにまとめてあります:http://is.ocha.ac.jp/~siio/index...
ページ名: