Solved

How to connect PIC18LF4550 to BTM411 Bluetooth module

Posted on 2012-03-16
5
1,365 Views
Last Modified: 2013-12-14
Hello Everyone,

I'm working on a project where I'm using the PIC18LF4550 to send and receive information to the PC via bluetooth. I am using the BTM411 module on my circuit and I will be using the BT211 bluetooth Adaptor on the PC.

I need to know how to connect the pins of the BTM411 module to the PIC18LF4550, as in what pin should be connected to the PIC18LF4550 and what pin should be connected to other things etc.

Please note, I will be connecting BTM411 in my own circuit not in a development kit or anything, so please tell me if I need any additional components or devices.

Please don't hesistate to ask if you need me to provide any more details.

Thanks
0
Comment
Question by:adkry
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:d-glitch
ID: 37742338
I assume you have the data sheet for the BTM411:

     http://www.lairdtech.com/WorkArea/linkit.aspx?LinkIdentifier=id&ItemID=4293

The schematic on page 63 shows how the BTM411 is wired on the development board.  You can copy the the power and ground connections.  You have a choice of UART of SPI for the data interface.  The PIC can accommodate either one.

SPI is probably the better choice.  If the BTM411 is the only SPI device, you can tie the Chip Select HIGH and deal with the 3-wire interface.

 

The data sheet should tell you how to terminate unused pins.
0
 

Author Comment

by:adkry
ID: 37742464
Hello d-glitch, and thanks so much for your great feedback. A friend of mine had a look and told me that SPI is used for audio codec thing, i.e. UART is the only interface that can be used to interface with the bluetooth module.

I did read the manual thoroughly, but I'm using this module on my board so I believe there would be difference than from the case of the development board.
0
 

Author Comment

by:adkry
ID: 37783310
ok I connected it in that way

The connections I need between the BTM411 and the PIC18LF4550 are as follows:

UART_CTS - Tells the bluetooth module that the PIC is ready - connected to any input/output pin in the microcontroller.
UART_RXD - Bluetooth module data input - connected to microcontroller UART TX pin.
UART_RTS - Bluetooth module uses this to indicate if it's ready or not - connected to any input/output pin in the microcontroller.
UART_TXD - Bluetooth module data output - connected to microcontroller UART RX pin
VDD_USB - connected to VCC = 3.3V
VDD_IO - connected to VCC = 3.3V
VDD_IN -  connected to VCC = 3.3V
RESET - Used to reset the bluetooth module - connected to any input/output pin in the microcontroller.

any comments/suggestions on that ?

Also,
Does RTS indicate the status of the modem, and is the RTS/CTS logic active-high?

Which handshake mechanism has to be used: RTS/CTS or DTR/DSR?

How do I code the microcontroller (using C language) to send/receive data through the BTM411 ?
0
 
LVL 27

Accepted Solution

by:
d-glitch earned 500 total points
ID: 37783539
Go back to the BTM411 Manual and digest the AT commands section.

    http://www.lairdtech.com/WorkArea/linkit.aspx?LinkIdentifier=id&ItemID=4293

You have to find a C library that lets you configure the PIC UART as an output device, and then send the AT commands to configure the BTM4111.  

Presumably you will have to do this for both ends of your Bluetooth link.  Not sure how may commands are required to configure and link the two BT modules.  Once they are linked, you should be able to send character data through.

To start up, it might be easier to connect the BTM411's to a serial port and send commands by typing in a DOS window.  

Once you have the BT configured properly, you can save the configuration so it will power up properly next time.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question