How to connect PIC18LF4550 to BTM411 Bluetooth module

Posted on 2012-03-16
Medium Priority
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.

Question by:adkry
  • 2
  • 2
LVL 27

Expert Comment

ID: 37742338
I assume you have the data sheet for the BTM411:


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.

Author Comment

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.

Author Comment

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 ?

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 ?
LVL 27

Accepted Solution

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


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.

Featured Post

Managed Security Services Webinar - March 15

Selecting the right managed security services platform to grow your business can be a huge undertaking. Join WatchGuard and Frost & Sullivan in an upcoming webinar as we dive into the key elements of selecting a vendor platform and partnership to fuel a successful MSSP business.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Want to create a VM?  Here's how you do it.
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.
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Suggested Courses

607 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