gold12star
Junior Member level 3
BT Module Pic16F877a
hello
I reach the end steps in my project and I face problem which is I conneced the BT module (Wireless Bluetooth TTL Transceiver Module [RF-BT0417C] - $9.95 : MDFLY electronics, Your electronics supplier!) with uController (tx to rx and vie versa) then I can found the BT on my mobile but I cannot connect to it.I think I should connect CTS and RTS to something but I don't know what (see the code that I think the connection should be for CTS and RTS but I'm not sure about that ).
So Any one can recommended me to how can I send data from mobile to uController through BT module ?? ( MikroC code what I want to help me in and not the mobile program until now I check the connection by sending photo from my phone)
the MikroC code is the following:
I am waitting for help
replay to me as soon as possible
thank you
hello
I reach the end steps in my project and I face problem which is I conneced the BT module (Wireless Bluetooth TTL Transceiver Module [RF-BT0417C] - $9.95 : MDFLY electronics, Your electronics supplier!) with uController (tx to rx and vie versa) then I can found the BT on my mobile but I cannot connect to it.I think I should connect CTS and RTS to something but I don't know what (see the code that I think the connection should be for CTS and RTS but I'm not sure about that ).
So Any one can recommended me to how can I send data from mobile to uController through BT module ?? ( MikroC code what I want to help me in and not the mobile program until now I check the connection by sending photo from my phone)
the MikroC code is the following:
Code:
unsigned short i;
void main() {
TRISD = 0b00000100; // CTS as input & RTS as output
PORTD = 0b00001000;
UART1_Init(115200); // Initialize UART module at 115200 bps
Delay_ms(100);
while (1){
if (UART1_Data_Ready()) { // If data is received
i = UART1_Read(); // Read the received data
//UART1_Write(i); // Send data via USART
TRISB = 0b00000000;
PORTB = 0b10000000; // led
}
}
}
replay to me as soon as possible
thank you
Last edited: