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.

Interfacing Bluetooth USB Dongle with Microcontroller

Status
Not open for further replies.

niket_304

Member level 4
Joined
Dec 21, 2005
Messages
73
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,002
bluetooth microcontroller

Do anyone know How to interface Bluetooth USB Dongle(which is easily available for PC) with Microcontrollers?
coz these Dongles r easily available n cheaper than Bluetooth module so if its possible to interface with ucs than it becomes cheaper Bluetooth embedded solution.
 

togarha

Member level 4
Joined
Sep 4, 2006
Messages
69
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Activity points
1,755
microcontroller bluetooth

Anyone has use a Bluecore module (as the modules from blueexpert? )...


regards,
 

DDS

Member level 2
Joined
May 12, 2006
Messages
42
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
Ukraine
Activity points
1,541
bluetooth module microcontroller

Hello,

This is really very interesting, provocative topic and worths to further readings instead of so boring and tiresome "Which is better PIC or AVR ?".
Let's guy.. Post some ideas, experiences and links if you already have...

Thanks...
 

penrico

Full Member level 5
Joined
Aug 28, 2001
Messages
286
Helped
27
Reputation
54
Reaction score
8
Trophy points
1,298
Location
Argentina
Activity points
2,393
bluetooth microcontroller interface

why don't you find for a bluetooth module that makes communication throught a uart? like WRAP THOR WT12 bluetooth module. www.bluegiga.com
 

Buriedcode

Full Member level 6
Joined
May 6, 2004
Messages
357
Helped
43
Reputation
86
Reaction score
7
Trophy points
1,298
Location
London
Activity points
8,887
microcontroller with bluetooth

Hi,

I guess it is an interesting subject, but I'm unsure what exactly youa re asking for. A 'UBluetooth' USB dongle requires a 'host' USB interface, and as far as I'm aware, the USB peripheral in the 18F USB compliant series is incapable of 'hosting'. I believe cypress have USB host chips relatively cheap, and would be easy to interface with a micro.

Saying that, there are plenty of cheap bluetooth modules, that do NOT have a USB interface, but use a UART or SPI instead, this would negate the need for a USB interface, bypass it completely and would be a whole lot easier to interface to any micro, PIC, AVR or otherwise. They are even cheaper than existing USB bluetooth modules.

More specific question = more specific answer.

BuriedCode.
 

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
881
Helped
122
Reputation
244
Reaction score
86
Trophy points
1,308
Activity points
7,372
bluetooth interfacing with microcontroller

You can use one of the following PIC's to communicate with the BLuetooth module via USB:
PIC18F2550,PIC18F2455,PIC18F4550,PIC18F4455

Or, You can build a converter from RS232 to USB.

Hope this helps.
 

dainis

Advanced Member level 4
Joined
May 15, 2001
Messages
1,126
Helped
53
Reputation
106
Reaction score
9
Trophy points
1,318
Activity points
9,268
bluetooth interface with microcontroller

seadolphine2000 said:
You can use one of the following PIC's to communicate with the BLuetooth module via USB:
PIC18F2550,PIC18F2455,PIC18F4550,PIC18F4455

Or, You can build a converter from RS232 to USB.

Hope this helps.

These PICs have USB Host controller ???
 

DDS

Member level 2
Joined
May 12, 2006
Messages
42
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
Ukraine
Activity points
1,541
pic bluetooth usb

Hi,

USB is a "master-slave" bus with exactly one master and multiple slaves.
The slaves are called peripherals. The master is called a host. Only the
host can initiate USB transfers; the peripherals always respond, never
initiate. A PC is the most common host.

Unfortunately, Microchip's microcontollers which are equipped either low speed or
high speed USB are all peripherals. (Not host)

At the other hand, It is a truth that Bluetooth USB dongles which is easily
available in market need a host USB for proper operation. They are developed
to bringing Bluetooth ability to the PCs which is not having it.

If we want to have an USB Host with equipped bluetooth within our embedded system,
Cypress is offering some embedded USB hosts.
Another alternative is to use Maxim's MAX3421E stand-alone USB Host/Peripheral ICs.

Regards.
 

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
881
Helped
122
Reputation
244
Reaction score
86
Trophy points
1,308
Activity points
7,372
bluetooth dongle microcontroller

DDS,..
Unfortunately, Microchip's microcontollers which are equipped either low speed or
high speed USB are all peripherals. (Not host)

I want to connect one of the microcontrollers mentioned above to a USB Bluetooth module so I can communicate with the cell phone.
Do you mean that I can't use this connection?
i.e: I can't connect the Bluetooth module to the MCU to communicate with the cell phone.

Please, Help as it's very important to me.

Thanks in advance.
 

DDS

Member level 2
Joined
May 12, 2006
Messages
42
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
Ukraine
Activity points
1,541
bluetooth dongle spi

No, you can. But using of a Microchip microcontroller which is having
embedded USB peripheral subsystem is useless.

You can use any Microchip's 18F.. series microcontroller with or without
embedded USB subsystem. Just you have to change your USB subsystem with
Maxim's MAX3421E USB Host Controller or similar IC from different vendor.

Visit the following link..
https://www.maxim-ic.com/products/interface/usb/controllers.cfm

Regards.
 

MathGeek

Member level 3
Joined
Aug 16, 2005
Messages
67
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,806
microchip pic bluetooth

Ok....so am I understanding this discussion correctly?

The reason that the existing Bluetooth modules are not desired for this case is that it is too expensive. (>50 dollars)

So, we want to use USB dongle (which is less than 10 USD) to enable uC to communicate through.

So, in order to do that, we need to "host" USB, so we need MAX3421E.


But all in all, is the second method with an extra IC still cheaper (in terms of design, labor, material, etec) than existing Bluetooth modules?
 

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
881
Helped
122
Reputation
244
Reaction score
86
Trophy points
1,308
Activity points
7,372
microcontroller and bluetooth

Hi,..

Attached here is a photo that is taken from the MAX3421E datasheet shows the connection between the MAX3421E and the uC.

Should the uC uesd in the photo have a USB interface? or I can use a regular PIC like PIC16F877 and the MAX3421E will interface between the uC and Bluetooth module.?

Thanks very much guys for all your help.
 

devura

Full Member level 1
Joined
Dec 19, 2006
Messages
96
Helped
14
Reputation
28
Reaction score
7
Trophy points
1,288
Location
India
Activity points
1,936
bluetooth with microcontroller

Hi

For MAX 3421E to work with uC, you need to have a uc-USB interface within the UC
 

Beowolf

Full Member level 2
Joined
Jun 19, 2006
Messages
130
Helped
11
Reputation
22
Reaction score
3
Trophy points
1,298
Activity points
2,071
bluetooth microcontrollers

No, you just need SPI, hardware or software..
 

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,350
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,450
microcontroller for bluetooth

Host is not a problem as it can be attached to micro . But driver has to be written for particular dongle and dongle programming mapping between usb and bluetooth chip registers must be available . I suppose it is not standardized.
 

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
881
Helped
122
Reputation
244
Reaction score
86
Trophy points
1,308
Activity points
7,372
bluetooth and microcontroller

artem,...

Host is not a problem as it can be attached to micro . But driver has to be written for particular dongle and dongle programming mapping between usb and bluetooth chip registers must be available . I suppose it is not standardized.

Do you mean that the Bluetooth dongle driver need to be included to the PIC code?
If yes, Can I convert the driver existed on the cd to a hex file and then download it to the MCU? Or, Should I write it by myself.?

Thanks guys very much for all your help. I really appreciate that.
 

DDS

Member level 2
Joined
May 12, 2006
Messages
42
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
Ukraine
Activity points
1,541
vinculum bluetooth

Hi MathGeek,

As for me, the main reason is not cost price of embedded bluetooth
modules. The main reason is availability.. You can easlily find and buy an
USB bluetooth dongle in nearest computer shop withal great choices.

Secondly, regularity.. I think they will be permanent in the market
because of generality of portable equipments like mobile phones, PDAs,
Notebooks, cameras etc.

Thirdly, they have universal interface port. It is USB. If you have
an already designed a reliable USB host in your embedded system, either
use it as bare USB port or equip with that dongle and provide cable-free
possibility to communicate other bluetooth devices.. Instead of a lot
of pin allocation of embedded bluetooth modules, dongles need an USB
port that aready you have.

You are right for extra cost of time and money at first desing and
evaluation period.. But it is only one time bother. For a bulk
production MAX3421E or similar IC costs less than $4-5 and does not
cause over cost price.


Regards.
 

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,350
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,450
bluetooth+microcontroller

seadolphine2000 said:
Do you mean that the Bluetooth dongle driver need to be included to the PIC code?
If yes, Can I convert the driver existed on the cd to a hex file and then download it to the MCU? Or, Should I write it by myself.?

you cant make hex of intel binary and load it into pic - machine opcodes are completely different. Yet not only hardware driver but protocol related part must be added as well. There is list of bluetooth modules :
https://zuff.info/Bluetooth.html .

There are few books on EDA book section . Also iar has IAR_makeap containing ready to use sources for bluetooth.
my advice wont be much helpful as i have never worked with bluetooth , so it would be nice to have some pointers from people with bluetooth implementation experience.
 
  • Like
Reactions: Holger

    Holger

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top