Mar 16, 2012

BTM-222 Bluetooth Module. Overview, Schematics, PCB

Btm-222 is a product of Rayson Technology Co. It is class1 module. This module was designed to replace the wire UART connection between two dev ices. It allows to organize wireless data receiving and transmition in a distance up to 100m (depends on connected antenna). Btm-222 is ready to use with the factory settings of UART which are as follows:
  • Baud rate: 19200 bps
  • Data bit: 8
  • Parity: none
  • Stop bit: 1
To organize the data exchange at least 2 devices are needed, one of these devices will function as Master and others as Slave. By defaults the role of module is set as Slave. It can be changed using AT commands. So, two the same BTM-222 modules can be used in pair Master-Slave. When two modules are in the signal area, the connection between them appears automatically (in case they have the same PIN, which can be changed using AT commands). If two modules are connected, the data sent to the UART interface of 1st module will appear on the UART interface of another module.
Fig.1.1. Bluetooth module top view (uncovered/covered)
Short list of features:
  • Bluetooth Ver. 2.0+EDR certification
  • Transmit Power up to +18dBm(class1)
  • Low current consumption: Hold, Sniff, Park, Deep sleep mode
  • 3.0V to 3.6V operation
  • Full Bluetooth Data rate over UART and USB
  • § Support up to 7 ACL links and 3 SCO links
  • Enhanced Data Rate(EDR) compliant for both 2Mbps and 3Mbps modulation modes
  • Interface: USB, UART&PCM(for voice codec)
  • SPP firmware with AT commands
  • RoHS Compliant
  • Small outline: 28.2 X 15.0 X 2.8 mm
To send AT commands or data to the module a simple terminal can be used – standart windows terminal or, for example, “Terminal v 1.9 by Bray” (see Fig.2.1). All AT commands are described in the BTM-222 datasheet. You can change PIN, name of your device, baud rate , etc.

Fig.2.1. Terminal v.1.9b by Bray 

3. Schematics
Fig.3.1. BTM-222 schematics (connection to uC)

Fig.3.1 illustrates typical schematics of connection BTM-222 bluetooth module to microcontroller. As we know from BTM-222 datasheet, its operating voltage is 3.0V-3.6V. Most of microcontrollers need +5V to operate, this is why logic level converters (from 5V to 3.3V for BTM-222 and from 3.3V to 5V for uC) are used . If you use, for example, Atmega8L which can be supplied from 2.7V-5.5V then you can connect RX and TX directly.

4. PCB



On Fig.4.1 is demonstrated finished bluetooth module BTM-222 PCB. It was designed by me and I have to tell that it could be done much better, but it's tested and 100% working, so you can use PCB PRINT posted here to make one for yourself. The bill of materials is on Fig.4.2.

Download BILL of Materials

Fig.4.1. PCB top viewFig.4. Bill of materials

TO BE CONTINUED...




8 comments:

  1. Hello, I can't open the 'pcb print', so could you please re-post it.

    ReplyDelete
    Replies
    1. Hi, sorry for the late answer, I'll do it now. There was a problem with a server, I should have used another one.

      Delete
    2. Now it seems to be OK, check it.

      Delete
  2. Hello, the pcb print is there. Thank you.

    ReplyDelete
  3. Hello,

    I am trying to do a connection between two BTM-222 using an AT Command sequence.

    To the one that will be the master I write ATR0, ATO1, ATD=Slave Bluetooth number, ATA and I receive a message saying “Connected”.
    For the slave I write ATR1, wait 5s, and then I am always sending the character A.

    The problem is that the characters do not appear in the master. Have you tried to do something similar? What would be the AT command sequence that you would use to the slave?

    Sincerely,
    James

    ReplyDelete
    Replies
    1. Hi,

      I haven't tried to do that since I had only one device. The commands you use seem to be right. May be switching to data mode is needed. Try to use the link below to find a solution. If you find out what's wrong, please, post some words about it here.

      http://elektorembedded.blogspot.com/2010/08/rayson-btm222-btm112-bluetooth-modules.html

      Delete
  4. thx for ur posting, it's helpful for me
    but i couldn't download pcb print cz maybe it has been deleted frm server. may u send it to my email? juvemail@yahoo.com
    thx before

    ReplyDelete

  5. Altium Designer Crack I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me

    ReplyDelete