I'm working on transmitting data from Arduino to Mac for sensor logging by HC-05 Bluetooth module. I've succeeded in transmitting data, but received data is bit weird and unstable.
This is a log of received data on a serial monitor.
This is an Arduino program for communicating with my Mac using Bluetooth via Hardware Serial.
void setup(){
Serial.begin(115200);
}
void loop() {
Serial.println("1024");
delay(100);
}
I also tried to use software serial.
#include <SoftwareSerial.h>
SoftwareSerial sSerial(10, 11); // New RX, TX pins
void setup(){
sSerial.begin(115200);
}
void loop(){
sSerial.println("1024");
delay(100);
}
The data ("1024") should be shown on the serial monitor every 100ms. But, serial monitor shows many of received data at one time or not separated in both case. video
I want to know the reason and its solution.