Hello everyone!
I am trying to hook up an HC-05 to an Arduino Nano Every, but the Nano does not see the Serial input.
This is my test code:
char Incoming_value = 0; //Variable for storing Incoming_value
void setup(){
Serial.begin(9600); //Sets the data rate in bits per second (baud) for serial data transmission
}
void loop(){
if (Serial.available() > 0)
{
Incoming_value = Serial.read(); //Read the incoming data and store it into variable Incoming_value
Serial.print(Incoming_value); //Print Value of Incoming_value in Serial monitor
Serial.print("\n"); //New line
}
}
And my pins are hooked up as followed:
HC-05 - Nano
RXD TX1
TXD RX0
GND GND
Vcc 5V
Some background information:
I am making a Bluetooth controlled LED strip. I tested everything on my Uno and everything worked fine. I built an app in MIT App Inventor and this worked also fine in combination with the HC-05 and Uno. Because it is a permanent LED strip, I am replacing the Uno with the Nano (because it would be a wast of the Uno).
The problem now is that the Nano does not respond to the HC-05, the code for my LED does not see the Serial from the HC-5 and the test code never prints the Incoming_value or \n.
I already looked at other forums where the same problem is mentioned, but I could not find any solutions there.
Thanks for reading!