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.

Designing of Bluetooth based Web server using Micro-Controller

Status
Not open for further replies.

tahertinu

Member level 4
Joined
Jun 11, 2011
Messages
74
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Ahmedabad
Activity points
1,752
im doing one project using ATMEGA16 micro controller, to transmit the data to pc from micro controller via Bluetooth. im using ATBUM-20 Bluetooth IC. plz give me the code for this project............
 

Can you post a link or upload the datasheet for the ATBUM-20 Bluetooth IC?

I want to help you, but I'll need that information.
 

I've downloaded the AUBTM-20 datasheet and I'm looking it over. There appears to be a couple of possible ways to interface the AUBTM-20 and the ATMEGA16.

However, let me bring your attention to the fact that the AUBTM-20 is a 3.3v device and the ATMEGA16 is essentially a 5v device, with an operating voltage range of 4.5V - 5.5V. Therefore you cannot directly connect the two devices together, you'll need a level shifter or level translator between the two.

Another possibility is to use the ATMEGA16L which has an operating voltage range of 2.7V - 5.5V, which would allow the two to be directly connected.

Can you get an ATMEGA16L? Do so would simplify your design.

After looking over the AUBTM-20 datasheet, it looks like an interface via UART or SPI maybe the simplest route.

I see if I can find a few example projects with ATMEGAs

If you have a 3.3v voltage source you may want to power the unit up and see if your phone or another Bluetooth device can "see" the AUBTM-20. Just make sure you connect the voltage source correctly and ground all recommend pins according to the datasheet.

I'll get back with you in a day or so.
 
Here's an AUBTM module interfaced to 8051 variant with code:

**broken link removed**

Device control through Bluetooth from Symbian OS Mobiles

You may want to pickup a 3.3v to RS-232 breakout board and hookup your AUBTM module to it and configure it using the AT Command Set in the guide I posted above. Before attaching it to your ATMEGA16.

Hope the info and links help you in your project.
 

thank you sir....
voltage supply for ATMEGA16 and AUBTM-20 is not a problem for me i can manage..
but i want to under stand that how to program the controller for AUBTM-20.
ill use UART.
 

Programming/Configuring the model is done by issuing AT commands, just like an old Hayes Modem. The commands and procedures are contain it the AUBTM-20 bluetooth module external commands PDF which I posted the link previously.

Study the code, you may have to join the 8051 Forum, it should give you some insight on how to configure the Bluetooth Module.

Device control through Bluetooth from Symbian OS Mobile Phones



Due to the fact, I have not had any actual experience with the AUBTM-20, this is all the advice I can give you.

Ciao
 

is there any other Bluetooth module which is similar to AUBTM-20 and easily available ?

---------- Post added at 11:15 ---------- Previous post was at 10:43 ----------

i am a student of Electronics and communication i haven't worked with ATMEGA16 would you please tell me from where i can learn this AVR controller easily.
 

Sure, but availability is very location dependent. I thought you already had an AUBTM-20 module? Or are you in the component selection phase?

I've heard good things about, BlueGiga, Roving Networks and BlueSMiRF. You may want to see if any of these Bluetooth modules are available in your area.

---------- Post added at 07:03 ---------- Previous post was at 06:50 ----------

AVR Tutorials?

If it was a PIC tutorial you were looking I'd highly recommend **broken link removed**

I haven't see any outstanding AVR tutorials, you might try:

AVR Freaks - Good resource for AVR code, etc. Check their forum as well, I think I saw several tutorials post there.

A Quickstart Tutorial for ATMEL AVR Microcontrollers

Tutorial for learning assembly language for the AVR-Single-Chip-Processors

You may want to google "AVR Tutorial" and see what looks good.
 

thank you sir..
ill see and then after i will come back to you. thank you once again.

---------- Post added at 13:29 ---------- Previous post was at 11:38 ----------

sir would you please tell me how to interface bluetooth with ATMEGA16?
would you please give me the circuit diagram?
 

please sir tell me how to interface AUBTM-20 with AVR ATMEGA16 using UART?
 

hello sir would you please tell me how to program bluetooth using at commands??
 

The projects I posted previously should help you write the correct AT strings for your project.

Also have you took a look in the group:

**broken link removed** Embedded Wireless Networks - WiFi, ZigBee, MiWi, 802.15.4, Bluetooth & RF

I've been posting several bluetooth examples and guides, and will continue to post new items as I come across them.


BigDog
 
Last edited by a moderator:

'-----------------------------------------------
' (c) 2006 AVR projects
'--------------------------------------------------------------
' file: Bluetooth.bas
' comport settings: COM1,9600,N,8,1
' device AT M8
' Xtal freq: 4096000 Hz
' Hardware req.: ATmega8 board, RS232 connection with AUBTM-20
' Software: Hyperterminal
'--------------------------------------------------------------
$regfile = "m8def.dat"
$sim

Config Lcd = 16 * 2
Cls
Cursor Off

Dim Name_s As String * 60
Dim X As Integer
Dim Store As String * 60
Dim Name1 As String * 60
Dim Addr1 As String * 60
Dim Name2 As String * 60
Dim Addr2 As String * 60

Dim K As Byte
Dim L As Byte

K = 13
L = 10

Dim S As String * 80

Dim Ar(5) As String * 30

Dim Bcount As Byte
Dim J As Byte

$crystal = 11059200 'change this value into the value of the Xtal you use.

$baud = 19200

Print Chr(k)
Print Chr(l)
Print "LLL"
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Print Chr(k)
Print Chr(l)
Print "AT+NAME=?"
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Print Chr(k)
Print Chr(l)
Print "<cr><lf>AT+F<cr><lf>"
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Print Chr(k)
Print Chr(l)
Print "<cr><lf>AT+MODE=2<cr><lf>"
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Print Chr(k)
Print Chr(l)
Print "AT+BAUD="9600 ","0 ","0 ""
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Print Chr(k)
Print Chr(l)
Print "AT+BPROFILE=1"
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Print Chr(k)
Print Chr(l)
Print "AT+BSERVICEATTR=1,0,1"
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Cls
Print Chr(k)
Print Chr(l)
Print "<cr><lf>AT+INQ<cr><lf>"
Print Chr(k)
Print Chr(l)
Input Name_s
Store = Name_s
Bcount = Split(store , Ar(1) , ",")
For J = 1 To Bcount
Addr1 = Ar(1)
Name1 = Ar(2)
Print Ar(j)
Lcd Addr1
Wait 5
Next


Bcount = Split(addr1 , Ar(1) , "+INQ")
For J = 1 To Bcount
Addr2 = Ar(1)
Print Addr2
Next

Print Chr(k)
Print Chr(l)
Print "AT+BDISCMODE=1,180"
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s

Print Chr(k)
Print Chr(l)
Print "AT+OPPCON=" ; Addr1 ; ","8 ""
Print Chr(k)
Print Chr(l)
Input Name_s
Print Name_s
Lcd Name_s
End

sir i have prepared this code.
is it the way to write a code using at commands???
 

bigdogguru... u have shared a schematics of a circuit i just need to know which software it is and weather is it a simulater....
 

i am using BascomAVR to program ATmega8. i am using AUBTM-20 bluetooth module. i am transmitting data through UART.
 

i am using BascomAVR to program ATmega8. i am using AUBTM-20 bluetooth module. i am transmitting data through UART.

Does this mean success?

It has been quite a while since our last communication, if you would like, please share your project and code in the **broken link removed** Embedded Wireless Networks Group as well.

BigDog
 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top