Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
3 add code highlighting
source | link

For a project I need to connect a Bluetooth Remote control with an Arduino Nano.

On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify that the connection is ok, because I can send and receive Strings with an Android smartphone.

In the minimal example I send values from a sensor which is connected to my Arduino via bluetooth to the smartphone, which is working nice. So I guess the wiring is correct:

void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}
void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}

Instead of sending sensor values, I need to connect said remote with the Arduino.

Picture of the remote

(Picture shows the basic model of said remote control.)

The remote control has the Bluetooth class 20258C which means:

  • Major Device Class: Peripheral
  • Limited Discoverable Mode
  • Audio
  • Pointing device
  • Remote control

Remote Control Bluetooth Specifications:

  • BT Device Name: YL-BTM3-xxxxxx
  • Supplier ID and Product ID: 0x0A5C / 0x4503
  • Class of Device: 0x20258C

My Question is: How can I pair those two devices? I can get the remote control into "Pairing mode", by pressing 2 Buttons. But how do I pair the Arduino-Bluetooth-module with this remote-control? Is it possible at all?

Best regards

For a project I need to connect a Bluetooth Remote control with an Arduino Nano.

On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify that the connection is ok, because I can send and receive Strings with an Android smartphone.

In the minimal example I send values from a sensor which is connected to my Arduino via bluetooth to the smartphone, which is working nice. So I guess the wiring is correct:

void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}

Instead of sending sensor values, I need to connect said remote with the Arduino.

Picture of the remote

(Picture shows the basic model of said remote control.)

The remote control has the Bluetooth class 20258C which means:

  • Major Device Class: Peripheral
  • Limited Discoverable Mode
  • Audio
  • Pointing device
  • Remote control

Remote Control Bluetooth Specifications:

  • BT Device Name: YL-BTM3-xxxxxx
  • Supplier ID and Product ID: 0x0A5C / 0x4503
  • Class of Device: 0x20258C

My Question is: How can I pair those two devices? I can get the remote control into "Pairing mode", by pressing 2 Buttons. But how do I pair the Arduino-Bluetooth-module with this remote-control? Is it possible at all?

Best regards

For a project I need to connect a Bluetooth Remote control with an Arduino Nano.

On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify that the connection is ok, because I can send and receive Strings with an Android smartphone.

In the minimal example I send values from a sensor which is connected to my Arduino via bluetooth to the smartphone, which is working nice. So I guess the wiring is correct:

void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}

Instead of sending sensor values, I need to connect said remote with the Arduino.

Picture of the remote

(Picture shows the basic model of said remote control.)

The remote control has the Bluetooth class 20258C which means:

  • Major Device Class: Peripheral
  • Limited Discoverable Mode
  • Audio
  • Pointing device
  • Remote control

Remote Control Bluetooth Specifications:

  • BT Device Name: YL-BTM3-xxxxxx
  • Supplier ID and Product ID: 0x0A5C / 0x4503
  • Class of Device: 0x20258C

My Question is: How can I pair those two devices? I can get the remote control into "Pairing mode", by pressing 2 Buttons. But how do I pair the Arduino-Bluetooth-module with this remote-control? Is it possible at all?

Best regards

2 added 159 characters in body
source | link

For a project I need to connect a Bluetooth Remote control with an Arduino Nano.

On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify that the connection is ok, because I can send and receive Strings with an Android smartphone.

In the minimal example I send values from a sensor which is connected to my Arduino via bluetooth to the smartphone, which is working nice. So I guess the wiring is correct:

void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}

Instead of sending sensor values, I need to connect said remote with the Arduino.

Picture of the remote

(Picture shows the basic model of said remote control.)

The remote control has the Bluetooth class 20258C which means:

  • Major Device Class: Peripheral
  • Limited Discoverable Mode
  • Audio
  • Pointing device
  • Remote control

Remote Control Bluetooth Specifications:

  • BT Device Name: YL-BTM3-xxxxxx
  • Supplier ID and Product ID: 0x0A5C / 0x4503
  • Class of Device: 0x20258C

My Question is: How can I pair those two devices? I can get the remote control into "Pairing mode", by pressing 2 Buttons. But how do I pair the Arduino-Bluetooth-module with this remote-control? Is it possible at all?

Best regards

For a project I need to connect a Bluetooth Remote control with an Arduino Nano.

On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify that the connection is ok, because I can send and receive Strings with an Android smartphone.

In the minimal example I send values from a sensor which is connected to my Arduino via bluetooth to the smartphone, which is working nice. So I guess the wiring is correct:

void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}

Instead of sending sensor values, I need to connect said remote with the Arduino.

Picture of the remote

(Picture shows the basic model of said remote control.)

The remote control has the Bluetooth class 20258C which means:

  • Major Device Class: Peripheral
  • Limited Discoverable Mode
  • Audio
  • Pointing device
  • Remote control

My Question is: How can I pair those two devices? I can get the remote control into "Pairing mode", by pressing 2 Buttons. But how do I pair the Arduino-Bluetooth-module with this remote-control? Is it possible at all?

Best regards

For a project I need to connect a Bluetooth Remote control with an Arduino Nano.

On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify that the connection is ok, because I can send and receive Strings with an Android smartphone.

In the minimal example I send values from a sensor which is connected to my Arduino via bluetooth to the smartphone, which is working nice. So I guess the wiring is correct:

void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}

Instead of sending sensor values, I need to connect said remote with the Arduino.

Picture of the remote

(Picture shows the basic model of said remote control.)

The remote control has the Bluetooth class 20258C which means:

  • Major Device Class: Peripheral
  • Limited Discoverable Mode
  • Audio
  • Pointing device
  • Remote control

Remote Control Bluetooth Specifications:

  • BT Device Name: YL-BTM3-xxxxxx
  • Supplier ID and Product ID: 0x0A5C / 0x4503
  • Class of Device: 0x20258C

My Question is: How can I pair those two devices? I can get the remote control into "Pairing mode", by pressing 2 Buttons. But how do I pair the Arduino-Bluetooth-module with this remote-control? Is it possible at all?

Best regards

1
source | link

Connect Bluetooth remote control with Arduino

For a project I need to connect a Bluetooth Remote control with an Arduino Nano.

On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify that the connection is ok, because I can send and receive Strings with an Android smartphone.

In the minimal example I send values from a sensor which is connected to my Arduino via bluetooth to the smartphone, which is working nice. So I guess the wiring is correct:

void loop() {
  sensorValue = analogRead( sensorPin );
  cm = 10650.08 * pow( sensorValue, -0.935 ) - 10;
  Serial.println( cm );
  softSerial.println(cm);
  delay( 500 );
}

Instead of sending sensor values, I need to connect said remote with the Arduino.

Picture of the remote

(Picture shows the basic model of said remote control.)

The remote control has the Bluetooth class 20258C which means:

  • Major Device Class: Peripheral
  • Limited Discoverable Mode
  • Audio
  • Pointing device
  • Remote control

My Question is: How can I pair those two devices? I can get the remote control into "Pairing mode", by pressing 2 Buttons. But how do I pair the Arduino-Bluetooth-module with this remote-control? Is it possible at all?

Best regards