Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me connect a BT module to Pic16F877a and use it for sending data

Status
Not open for further replies.

gold12star

Junior Member level 3
Joined
Sep 27, 2010
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,451
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:
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
      
      
    }
  }
}
I am waitting for help
replay to me as soon as possible
thank you
 
Last edited:

Re: BT Module Pic16F877a

60 view and no one reply. whyyyyyyyyy???:cry:
 

Re: BT Module Pic16F877a

Do you expect to receive every bluetooth module n the World?

You have to write configuration to the Bluetooth module and negotiate the connection before you can transfer data.

Brian.
 

Re: BT Module Pic16F877a

thank you
but how can I write the configuration to the Bluetooth module in MikroC??
please help me
 

Re: BT Module Pic16F877a

The data sheet from the web site you gave is useless!
I suggest you look at the part number on the CSR IC and contact the manufacturer for more information they are at **broken link removed**

Use "UARTx_Write_Text()" to send AT commands to the module in MikroC and "UARTx_Read_Text()" to read the response.

Brian.
 

Re: BT Module Pic16F877a

thank you i will try what you suggest
 

Re: BT Module Pic16F877a

Let me know if you are able to get any support from CSR.
I did a consulting job for a company where we used a CSR chip. They refused to give me any support without me purchasing a kit for 3000 USD!
 

Re: BT Module Pic16F877a

I try to search the same bluetooth module but I don't found in CSR
so I don't contact with CSR
 

Re: BT Module Pic16F877a

CSR Didn't make the module, they made the bluetooth chip on the module.
 

Re: BT Module Pic16F877a

ok
thank you
I wiil try to contact
 

Re: BT Module Pic16F877a

I think I can connect with bluetooth but there is very long delay between sending date and recieving action from Pic16f877a
any one know the cause of that??
 

Re: BT Module Pic16F877a

I need some help that may support me
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top