Bluetooth Joystick Controller

Bluetooth Joystick Controller

UHOROBO
Apr 22, 2022
  • 2.0 MB

    파일 크기

  • 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

더 보기

What's new in the latest 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 스크린샷 1
  • Bluetooth Joystick Controller 스크린샷 2
  • Bluetooth Joystick Controller 스크린샷 3
  • Bluetooth Joystick Controller 스크린샷 4
  • Bluetooth Joystick Controller 스크린샷 5
  • Bluetooth Joystick Controller 스크린샷 6
  • Bluetooth Joystick Controller 스크린샷 7

Bluetooth Joystick Controller apk 정보

최신 버전
1.04
카테고리
생산성
Android OS
Android 4.1+
파일 크기
2.0 MB
개발자
UHOROBO
콘텐츠 등급
Everyone
APKPure에서 안전하고 빠른 APK 다운로드
APKPure는 바이러스 없는 Bluetooth Joystick Controller APK 다운로드를 위해 서명 확인을 사용합니다.

Bluetooth Joystick Controller의 오래된 버전

APKPure 아이콘

APKPure 앱을통한매우빠르고안전한다운로드

한번의클릭으로 Android에 XAPK/APK 파일을설치할수있습니다!

다운로드 APKPure
thank icon
사용자 환경을 개선하기 위해 이 웹 사이트의 쿠키 및 기타 기술을 사용합니다.
이 페이지의 링크를 클릭하면 당사의 개인 정보 보호 정책쿠키 정책에 동의하는 것입니다.
더 알아보기