0% found this document useful (0 votes)
141 views5 pages

I2C2PC Bluetooth

This document describes how to add a Bluetooth module to an I2C2PC adaptor to create a wireless I2C adapter. It involves soldering pin headers to connect a Sparkfun BlueSMiRF Extended Bluetooth module. Once connected, the Bluetooth module can be configured and the adapter can communicate wirelessly with a PC up to 100m away, maintaining the same I2C interface over Bluetooth rather than a physical connection.

Uploaded by

Son Vu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views5 pages

I2C2PC Bluetooth

This document describes how to add a Bluetooth module to an I2C2PC adaptor to create a wireless I2C adapter. It involves soldering pin headers to connect a Sparkfun BlueSMiRF Extended Bluetooth module. Once connected, the Bluetooth module can be configured and the adapter can communicate wirelessly with a PC up to 100m away, maintaining the same I2C interface over Bluetooth rather than a physical connection.

Uploaded by

Son Vu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Bluetooth I2C

ADDING BLUETOOTH TO THE I2C2PC ADAPTOR


Summary
It is very easy to add a Bluetooth module to the I2C2PC adaptor to make a wireless I2C adaptor that can datalog and control up to 100m from a PC. With the parts and tools to hand it is a 1 min !o". #o software the interface remains the same as $%2&2 and '%B( It is still a comport interface. We used the Blue%)i$* +,tended module from www.sparkfun.com. #his is a simple module "ased on the Blueradios "luetooth module. -s it has a . pin header and regulator "uilt in it is very easy to use. #his module has a "uilt/in antenna.

Figu e !."

1 You will need:


Blue%)i$* +,tended module from www.sparkfun.com 2pin and & pin 0.10 headers and & shunts. )icromatch . female1 same as used for I2C. . way ri""on ca"le and micromatch . way male. - Bluetooth capa"le PC or '%B "luetooth stick.

2 How

-dd micromatch C23 to the I2C2PC adaptor. -dd pin headers 41 and 42 to the I2C2PC1 and !umper as shown.

Figu e 2.2."

Figu e 2.!."

)ake up a ca"le with micromatch male one end and 0.10 socket for the Blue%)i$* the other end. If you use two & way housing it will "e easy to separate the power from the $56#5 to do a loop"ack test with a !umper later.
I2C2PC:Bluetooth.odt r11 page 1 of

7 2002/. Broadcast +8uipment 9td ph ;.< 21 .2&/<02

www.i2cchip.com

sales=i2cchip.com

Bluetooth I2C
ADDING BLUETOOTH TO THE I2C2PC ADAPTOR
# 1 2 & < . >CC ?; @ C#% ?out@ $5A ?out@ #5A ?in@ $#% ?in@ C2A I2C2PC CN9 # 2 PW$ 1 C#%/I $5/I < #5/B . $#%/B & C2A Sparkfun Blue SmiRF Extended

Figu e 2.#."

Before powering up the adaptor1 using a continuity meter to check that the ; and C2A pins go to the correct positions on the Blue%)i$* Power up the I2C2PC adaptor with the Bluetooth module plugged in. 2ow you should "e a"le to detect it and connect to it from your PC. *it a shunt as shown "elow so you can do a loop"ack test.

Figu e 2.$."

+ither using the Blueradios config utility1 or "y using the -# command set from $ealterm1 you need to change the Bluetooth modules "aud rate to D.00. $ealterm has controls for this on the Emisc0 ta". 2ow it should "e workingF #ype ? and the adaptor should reply eg with E1G0 %tick the module inside the lid of I2C2PC case with dou"le sided foam tape1 and reassem"le once it is all working.

Warning: D n t a!!identall" plug t#e m dule int an I2C p rt$ #he


-'5 interface C23 has totally different pinout. If someone else might do this unintentionally1 glue the connector down or attach a note in the unit.
7 2002/. Broadcast +8uipment 9td ph ;.< 21 .2&/<02
I2C2PC:Bluetooth.odt r11 page 2 of

www.i2cchip.com

sales=i2cchip.com

Bluetooth I2C
ADDING BLUETOOTH TO THE I2C2PC ADAPTOR
3 Software
2o software changes are needed as the Bluetooth is still another comport as far as software is concerned. 4ust "e aware of the potential for an $* connection to vanish. 3.1 Latency: Bne draw"ack of the Bluetooth is increased latency. %o it is important.to write your code so that this is not going to "e an issue. 9atency is only a pro"lem if you write "locking code that re8uires a return value "efore it will issue the ne,t command. If your code sends a series of commands1 and processes the results as they return1 there will "e no pro"lem. *or e,ample a data logging program can simply issue a command to read data every second1 and capture all returning data to a file. #his arrangement works regardless of the latency. #o test the latency1 you can turn on 9og files from $ealterms capture ta". #he log file ?realterm.log@ has timing information in it.

4 Selecting Interfaces
Make sure the jumper by the DB9 is not fitted

Figu e $.!." With the !umper fitted as shown in the picture the -'5 "luetooth interface is selected. #he !umper only selects the source of signals from the PC. Aata returning from the adaptor always comes out all three ports ?$%2&21'%B1Bluetooth@. #his is useful for de"ugging.

%& none none none fitted fitted none

%2'%(

) de -utoselect '%B6$%2&2 %elects '%B when it is enumerated '%B only $%2&2 only invalid -'5 ?Bluetooth@ Bnly
I2C2PC:Bluetooth.odt r11 page & of

'%B ?left@ $%2&2 ?right@ none '%B ?left@

7 2002/. Broadcast +8uipment 9td ph ;.< 21 .2&/<02

www.i2cchip.com

sales=i2cchip.com

Bluetooth I2C
ADDING BLUETOOTH TO THE I2C2PC ADAPTOR
%& fitted %2'%( $%2&2 invalid ) de

5 Baud Rate
-t the PC end the "aud rate setting does not matter as it is going to a virtual comport anyway. #he Baud rate at the Bluetooth module can "e set "y using the Blueradios utility1 or sending the -# commands from a terminal.

7 2002/. Broadcast +8uipment 9td ph ;.< 21 .2&/<02

I2C2PC:Bluetooth.odt r11 page < of

www.i2cchip.com

sales=i2cchip.com

Bluetooth I2C
ADDING BLUETOOTH TO THE I2C2PC ADAPTOR

7 2002/. Broadcast +8uipment 9td ph ;.< 21 .2&/<02

I2C2PC:Bluetooth.odt r11 page

of

www.i2cchip.com

sales=i2cchip.com

You might also like