Bluetooth Joystick Controller 아이콘

Bluetooth Joystick Controller


UHOROBO
1.04
  • Apr 22, 2022
    Update date
  • Everyone
  • Android 4.1+
    Android OS

Bluetooth Joystick Controller 정보

ESP32등의 Bluetooth 단말과 접속해, 스마트 폰을 컨트롤러로서 사용할 수 있는 앱

下のほうに日本語版記載してあります

///////↓English///////

1.

If you press the Bluetooth icon on the upper right of the app bar, the screen for selecting the Bluetooth device set for the device will be displayed. Select the device you want to connect to. * Please set the pair with the Bluetooth terminal in advance.

2.

Attempts to connect to the selected Bluetooth device. Hopefully it will connect, otherwise it will not connect. When connected, the Bluetooth icon at the top right of the app bar will change to a connection mark.

3.

When connected, the smartphone will send the controller status data (see below for details) to the Bluetooth device. The upper half of the screen (the part where the comment at the top of the controller is displayed) displays the data sent from the Bluetooth terminal.

4.

If you want to disconnect from the device, press the Bluetooth icon at the top right of the app bar. Disconnected from the terminal

5.

If you set it to the horizontal screen, it will extend horizontally.

Controller transmission data details

・ We are sending 3 bytes of data.

・ The 1st byte is the state of the push button. Button1 ~ 4 = 0b01111.

・ The 2nd byte is the joystick X coordinate data 0 ~ 255 (127 in the center).

・ The 3rd byte is the Y coordinate data of the joystick 0 ~ 255 (127 in the center).

3Byte data of is sent from the smartphone at intervals of 50ms.

///////日本語///////

1.

アプリバー右上のBluetoothアイコンを押すと、端末に設定されているBluetooth端末を選択する画面になります。接続したい端末を選択してください。※事前にBluetooth端末とのペア設定をしておいてください

2.

選択したBluetooth端末と接続を試みます。うまくいけば接続し、うまくいかなければ接続されません。接続した場合はアプリバー右上のBluetoothアイコンが接続マークに変化します。

3.

接続された場合、スマホからはコントローラーの状態データ(詳細は下記を参照)をBluetooth端末に送信します。画面の上半分の部分(コントラーの上部のコメントが表示される部分)はBluetooth端末から送られてきたデータを表示します。

4.

端末と切断したい場合はアプリバー右上のBluetoothアイコンを押してください。端末と切断されます

5.

横画面にすると横にのびます

コントローラの送信データ詳細

・3Byteのデータを送っています。

・1Byte目は押しボタンの状態。Button1~4 = 0b01111。

・2Byte目はジョイスティックのX座標データ0~255です(中央は127)。

・3Byte目はジョイスティックのY座標データ0~255です(中央は127)。

の3Byteのデータを50ms間隔でスマホから送ります。

///Arduino Sample Sketch////////////////////////

#include "BluetoothSerial.h"

#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)

#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it

#endif

BluetoothSerial SerialBT;

void setup() {

Serial.begin(115200);

SerialBT.begin("ESP32test"); //Bluetooth device name

}

void loop() {

//Bluettthでデータを送る処理

int sendNum = Serial.available(); //送る文字列数を取得

if (sendNum) { //送る文字があれば入る

for(int i=0 ; i <= sendNum-1 ; i++){ //文字数分ループ

SerialBT.write(Serial.read()); //一文字ずつ送信

}

}

//Bluetoothで取得したデータをシリアルコマンドに表示する処理

int receiveNum=SerialBT.available(); //Bluettth受信バッファにあるデータ数を取得

if (receiveNum) { //受け取るデータがあれば入る

Serial.print(millis()); //プログラムが実行されてからの経過時間を表示(100ms間隔で受信してることを確認するため)

Serial.print("ms  ");

for(int j=0 ; j <= receiveNum-1 ; j++){ //データ数分ループ

Serial.print(j);

Serial.print("Byte=");

Serial.print(SerialBT.read()); //1Byteごとにデータを取得

Serial.print(" ");

}

Serial.print("\n");

}

delay(10);//Serial.printfが画面表示終わるの待つため

}

////////////////////////////////////////////////////////

Blog Link : https://kousakutanosii.hatenablog.com/entry/2022/01/18/224100

더 보기

추가 앱 정보

최신 버전

1.04

업로드한 사람

Orlando Sender

필요한 Android 버전

Android 4.1+

콘텐츠 등급

Everyone

최신 버전 1.04의 새로운 기능

Last updated on Apr 22, 2022

Minor bug fixes and improvements. Install or update to the newest version to check it out!

더 보기

Bluetooth Joystick Controller 스크린 샷

Bluetooth Joystick Controller 포스터Bluetooth Joystick Controller 스크린샷 1Bluetooth Joystick Controller 스크린샷 2Bluetooth Joystick Controller 스크린샷 3Bluetooth Joystick Controller 스크린샷 4Bluetooth Joystick Controller 스크린샷 5Bluetooth Joystick Controller 스크린샷 6Bluetooth Joystick Controller 스크린샷 7

관련 태그

지난 24시간 동안의 인기 기사

검색 중...
APKPure를 구독하십시오
최고의 Android 게임 및 앱의 초기 릴리스, 뉴스 및 가이드에 액세스하는 첫 번째 사람이 되십시오.
고맙지 만 사양 할게
가입하기
성공적으로 구독!
당신은 이제 APKPure에 가입되었습니다.