Hello, I am currently trying to use the HC-06 with arduino mega. But when I try to send data to my arduino Mega this comes up on my serial monitor:
can someone help me?
the code:
void setup() {
Serial.begin(38400);
Serial1.begin(38400);
Serial.println("ATcommand"); //ATcommand Start
}
void loop() {
if (Serial1.available())
Serial.write(Serial1.read());
if (Serial.available())
Serial1.write(Serial.read());
}
RX to TX1
TX to RX1
GND to GND
VCC to VCC