I'm commissioning a little test rig with a newly purchased Arduino Uno R4 Minima and an HC-05 on it.
I'm having problems with high levels of noise on the transmission through the HC-05.
I'm using the schematic from this tutorial Arduino and HC-05 Bluetooth Module Tutorial | Arduino Project Hub
and this script:
//
// Test sketch to check HC-05/HC-06 is trnsmitting correctly
//
//
#include <SoftwareSerial.h>
//
// Define which Arduino digital pins are used for Bluetooth receive from the HC-05/06 board and to transmit to it.
//
#define BT_SERIAL_RX 2
#define BT_SERIAL_TX 3
SoftwareSerial BTSerial (BT_SERIAL_RX, BT_SERIAL_TX);
void setup() {
//
// Can't use the USB Serial at the same time as Board Pins 0 (RX) and 1 because the USB is connected to the same pins.
//
Serial.begin(9600);
BTSerial.begin(9600);
pinMode(BT_SERIAL_RX, INPUT);
pinMode(BT_SERIAL_TX, OUTPUT);
Serial.println("Bluetooth Remote Control Transmit Tester Running");
}
void loop() {
BTSerial.println("Hello");
Serial.println("hello");
delay(1000);
}
I get a high level of errors on the Blue Tooth monitor. "Hello" occasionally, but lots of error characters.
It works fine on a similar set up with a Nano.
Has anyone got any ideas what's wrong or experienced similar problems?
Thanks.