Page 1 of 1

how do i go about connecting usb bluetooth to PIC ?

Posted: Tue Jan 02, 2007 2:13 pm
by phatali
hi
my primary goal is to be able to connect my mobile phone with a PIC via bluetooth inorder to get rid of cables and that any phone can connect to the PIC. i wanted to use a bluetooth dongle usb. but iv heard that these need a host, so how do i go about making a PIC have a host ? :shock:

any replies will be greatful
cheers
:wink:

Posted: Tue Jan 02, 2007 3:52 pm
by Benj
Hi Phatali

Thats a tricky one!

I guess what you need to do is to try to emulate what the PC host is doing on the PIC. This will probably include:

Initializing the Bluetooth dongle
setting up the Address
Looking for the remote address
Pairing with the remote address
Starting a service with the remote Bloutooth device
Passing data through the service protocall

Unfortunatley this is something I have never attempted so if you have any progress then let us know.

Posted: Tue Jan 02, 2007 4:05 pm
by Steve
If you look in our E-Blocks range, we sell a Bluetooth E-Block board which will work with most PICmicros (those with a USART). This will allow a mobile phone to communicate with a PICmicro.

Posted: Tue Jan 02, 2007 4:23 pm
by phatali
hi
thanks for both of your quick replies :D
i will look into what you have said ben about what the pc host is doing.
steve i shall look at the E-block range you were talking about.
the thing is its a uni project sooo the cost has to be kept to a min :cry:
thanks for the help il let you guys know for sure if i make any progress with this .
:D

Re: how do i go about connecting usb bluetooth to PIC ?

Posted: Fri Feb 01, 2008 8:05 pm
by tian
i don't know how to use it to but friend of mine use serial bluetooth modul for his final project.
so he can communicate between cellphone and AT89S51.

Is it easy?

Re: how do i go about connecting usb bluetooth to PIC ?

Posted: Mon Feb 04, 2008 10:50 am
by Benj
Hello Tian

Our Bluetooth E-Block has a serial Bluetooth module. There are also functions to drive this hardware built into Flowcode.

Re: how do i go about connecting usb bluetooth to PIC ?

Posted: Sun Mar 09, 2008 7:28 pm
by nils
Hi

even if I hijack this thread a bit, but is there a description of how to set up the bluetooth E-block module for an AVR device ?
and if not, is there a short description of which port it has to be connected to. my best guess is Port D at an Atmega32 because of the USART connection.

the purpose is setting up a bluetooth communication to a PC with a bluetooth dongle on the PC side. then a terminal via USART will send commands to the microcontroller. I know how to set up an USART connection, but not the bluetooth pairing part that needs to be done before that, if I understood it right.
hope you can help, and if not in a Flowcode style, then maybe with C.

cheers,
nils

Re: how do i go about connecting usb bluetooth to PIC ?

Posted: Tue Mar 11, 2008 12:27 pm
by Benj
Hello NIls

Yes the Bluetooth E-Block is compatible with the AVR boards. I think that there is a forum post that details the AVR connections for things like the UART. However if this is unavilable then you can contact sean@matrixmultimedia.co.uk who will be able to detail the connections for you.

Also our Bluetooth example files should be import straight into Flowcode AVR so you will be able to use these to get started with the programming. If you do not have these example files then Sean should be able to provide them for you.

I would do this myself but im not in work this week.

Hope this helps.