A Bluetooth technology is a high-speed low-powered wireless module link that is designed to connect phones or other portable equipment together. It is a specification (IEEE 802.15.1) for the use of low power radio communications to link phones, computers and other network devices over short distance without wires. The wireless signals transmitted with Bluetooth module cover short distances, typically up to 30 feet (10 meters). It is achieved by embedded-low-cost transceivers into the devices. It supports on the frequency band of 2.45GHz and can support up to 721kbps along with three voice channels. This frequency band has been set aside by international agreement for the use of industrial, scientific and medical devices (ISM).rd-compatible with 1.0 devices.
Bluetooth module can connect up to “eight devices” simultaneously, and each device offers a unique 48 bit address from the IEEE 802 standard with the connections being made point to point or multipoint.
Interfacing a Bluetooth Module to the Microcontroller
The Bluetooth module is a transceiver module constructed with a transmitter and receiver. The Bluetooth module is directly interfaced to the microcontroller of Rx and Tx pins as it doesn’t need any external middle ware devices. The Bluetooth is a half-duplex protocol transmitting and receiving the data, but not at the same time.
Circuit Connections
The Bluetooth module is connected to the microcontroller with the Rx and Tx pins as transmitting and receiving the information from the designation.
Working Procedure of Bluetooth
A typical Bluetooth network consists of a Personal Area Network (PAN) or a Piconet containing a minimum of 2 and a maximum of 8 Bluetooth peer devices–usually a single master and up to 7 slaves. A master is the device that initiates communication with other devices. The master device governs the communications link and traffic between itself and the slave devices associated with it. A slave device is the device that responds to the master device. Slave devices are required to synchronize their transmitting and receiving timing with that of the masters. In addition, transmissions by slave devices are governed by the master device (i.e., the master device dictates when a slave device may transmit). Specifically, a slave may only begin its transmissions in a time slot immediately following the time slot in which it was addressed by the master, or in a time slot explicitly reserved for use by the slave device.
The frequency hopping sequence is defined by the Bluetooth device address (BD_ADDR) of the master device. The master device first sends a radio signal asking for response from the particular slave devices within the range of addresses. The slaves respond and synchronize their hop frequency as well as clock with that of the master device.
Scatter nets are created when a device becomes an active member of more than one piconet. Essentially, the adjoining device shares its time slots among the different piconets.
Programming
For a Bluetooth transmitting and receiving the data programs are given below.
- Transmitting word
- Receiving char
#include<reg51.h> voidinit_RS 232();
voidTx_String(unsigned char *str); voidRx_Char();
voidinit_RS 232() { TMOD|=0x20; //Timer 1 in mode 2 (Auto Reload mode) TH1=0XFD; //0xFD for 9600bps SCON=0x50; //Enable TI and RI pins using Serial control Register TR1=1; //Start Timer 1; } voidTx_String(unsigned char *str) { while(*str) Tx_Char(str++); } voidRx_Char() { while(RI==1); //wait for RI flag to receive any character Ch=SBUF; // capture the character from SBUF into Ch variable RI=0; //clear RI flag for further reception
Thus, this is all about hoe to interface a bluetooth module with the microcontroller is briefly discussed in the above article.Furthermore, any doubts regarding this article or various wireless communication modules you can approach us by commenting in the comment section below.
Utterly written content material, Really enjoyed looking at.
Hi Dion
Thanks for your compliment
And once again please visit our international website http://www.efxkits.com/
For more details please contact to Mr. Niranjan on +91 9908518885 or you can email us on info@edgefxkits.in