Interface of HC05 Bluetooth module and RF 433Mhz Module

Off topic discussions that do not fit into any of the above can go here. Please keep it clean and respectful.
Post Reply
quchu
Newbie
Posts: 1
Joined: Mon Nov 27, 2017 10:20 am

Interface of HC05 Bluetooth module and RF 433Mhz Module

Post by quchu »

Hi to all, I am recently trying to make an Android controlled toy car. The situation is following, Now the range of the bluetooth module is around 10 meters. However, to increase the range, I decided to interface the RF module with the Bluetooth (HC-05) Module. I have a TX and Rx pair of 433 Mhz. Basically, the app sends an integer value to the Bluetooth module. The Tx pin of the bluetooth module is connected to the Data pin of the transmitter.

On the Receiver side, I have connected the data pin of the receiver to the Rx pin (PIN 0) on the Arduino. This is the overall setup. I have attached an Image of the connections. It's my first time using Fritzing, so please dont mind the nasty connections.
Image
I power the HC-05 and Tx pair using a separate 5V and the Rx using the Arduino. For the sake of the image, I have shown all of the components being powered from the Arduino. I am first testing the whole thing on an LED http://www.kynix.com/Detail/738157/LED.html, so the code attached is that for an LED. Below is my code:

int LED= 13;
char input;

void setup()
{
Serial.begin(9600);
pinMode(LED, OUTPUT);
Serial.println(">> START<<");
}

void loop()
{
if(Serial.available()>0)
{
input= Serial.read();
if(input=='1')
{
Serial.println("ON");
digitalWrite(LED, HIGH);
delay(2000);
}
else if(input=='0')
{
Serial.println("OFF");
digitalWrite(LED, LOW);
delay(2000);
}
else
{
Serial.println("NO INPUT");
Serial.println(input);
}
}

}
Now, without the RF module, that is, when I connect the Tx of the HC-05 to the Rx of the Arduino (PIN 0), the above code works perfectly. However, when I connect the Tx pin of the HC-05 to the Data pin of the Transmitter module and the Data pin of the Receiver module to the Rx pin (PIN 0) of the Arduino, everything goes awry. Any suggestions on why this might be happening?
Thanks all advice.


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

http://www.instructables.com/id/RF-3154 ... -and-Ardu/
Can we use Serial communication with ? answer is No

ASK receivers require a burst of training pulses to synchronize the transmitter and receiver, and also requires good balance between 0s and 1s in the message stream in order to maintain the DC balance of the message, UARTs do not provide these. They work a bit with ASK wireless, but not as well as this code.
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

Could the OP explain why this is on xcore? it seems to me like an Arduino thing. Anyway what you have to do is use the Arduino to translate between the serial interface of the bluetooth module (which you had working with Arduino serial) and the interface of the 433MHz module (using the instructables mon2 provided). You can't connect the 433MHz module directly to the bluetooth module. that will solve your problem
Post Reply