Dear Arduino fellows,
I am trying to get this Bluetooth Low Energy Module working to send sensor data to my smartphone:
HC-06:
https://www.reichelt.de/arduino-4duino-wireless-modul-hc-06-arduino-hc-06-p170171.html
I have followed this tutorial:
And I used SoftwareSerial connection on Pin 2/3 as well as 10/11 and this code:
/*Developer: Frederik Hauke
Important Notices:
This Arduino-Code is written for Visualizating measurement data from a microcontroller via Bluetooth.
Before starting this application, the Bluetooth-Modul (HC-05) has to be coupled to the Smartphone.In the special case of the HC-05 the default PinCode for initiating the Coupling-Process is "1234".
Wiring: GND of HC-05 to GND Arduino, VCC of HC-05 to VCC Arduino, TX HC-05 to Arduino Pin 10 (RX) RX HC-05 to Arduino Pin 11 (TX) */
#include <SoftwareSerial.h>
SoftwareSerial BTserial(10, 11); // RX | TX
int sensorPin = A0;
int sensorValue = 0;
void setup() {
BTserial.begin(9600); }
void loop() {
sensorValue = analogRead(sensorPin);
//IMPORTANT: The complete String has to be of the Form: 1234,1234,1234,1234;
//(every Value has to be seperated through a comma (',') and the message has to
//end with a semikolon (';'))
BTserial.print("1234");
BTserial.print(",");
BTserial.print("1234.0");
BTserial.print(",");
BTserial.print("1234 hPa");
BTserial.print(",");
BTserial.print("500 ml/s");
BTserial.print(",");
BTserial.print(sensorValue);
BTserial.print(";");
//message to the receiving device
delay(20);
}
I have also tried just normal Serial.begin(9600); with the Tx, Rx pins from the ArduinoUNO, as shown in the attached images.
I have used a votage divider with 3kOhm and 1.8kOhm, which outputs a voltage of 3.4V (the device may only be operated at 3.3V).
I can connect via bluetooth to the module but it is not sending data to this app:
I am quite puzzled now :). Maybe you can help!
Best, thank you!


