Hi everyone. I have a problem I recently sodered an anntena to my hc-05 bluetooth module from an old radio, what seems to happen is that the anntena does not affect anything it seems as it does not work I took the module 18 meters with some obstacles and it disconected.
That is all the informatiuon I have here are some links to the radio that I used and some pictures with the code.
The Radio: https://uniden.com/collections/marine-radio-fixed-mount-handheld/products/atlantis-155-handheld-two-way-floating-vhf-marine-radio
The pictures:
The code:
#include <SoftwareSerial.h>
char value;
int Tx = 2; // connect BT module TX to 2
int Rx = 3; // connect BT module RX to 3
int redLED = 13;
int blueLED = 9;
// creates a "virtual" serial port/UART
SoftwareSerial bluetooth(Tx, Rx);
void setup() {
pinMode(redLED, OUTPUT);
pinMode(blueLED, OUTPUT);
// start serial communication at default baud rate 9600bps
Serial.begin(9600);
bluetooth.begin(9600);
}
void loop() {
if (bluetooth.available()) {
value = bluetooth.read();
if (value =='1') {
digitalWrite(blueLED, HIGH);
bluetooth.println("Blue LED on");
}
if (value =='2') {
digitalWrite(blueLED, LOW);
bluetooth.println("Blue LED off");
}
if (value =='3') {
digitalWrite(redLED, HIGH);
bluetooth.println("Red LED on");
}
if (value =='4') {
digitalWrite(redLED, LOW);
bluetooth.println("Red LED off");
}
}
}



