Parallax Easy Bluetooth Manual page 3

Table of Contents

Advertisement

b. Click "Add".
c. Check "My Device is set up and ready to be found" in the "Add Bluetooth Device Wizard"
and click "Next".
d. Select "EasyBT" from the displayed Bluetooth devices and click "Next".
e. Select "Use the passkey found in the documentation" and enter the Passkey Code 0000
(zero four times) and click "Next".
f.
Bluetooth Manager should display and designate an Outgoing and Incoming COM port for
the Easy Bluetooth device: make a note of the COM ports because these are the ports
you will use to communicate with the Easy Bluetooth.
g. Select "Finish" to complete the Bluetooth device configuration.
2. To close the "Bluetooth Devices" window click "OK".
A test for the BASIC Stamp 2 microcontroller
1. The Easy Bluetooth can communicate at numerous baud rates, and with many different
microcontrollers. This example uses the AppMod Header on the Board of Education, the BASIC
Stamp 2, at 9600 baud.
2. The easiest way to see in your code if a Bluetooth connection has been established is to wait for
a byte to be received. You can copy the program below into the BASIC Stamp Editor to ensure a
proper connection.
' {$STAMP BS2}
' {$PBASIC 2.5}
RX
TX
Baud
combyte
DEBUG "Use This Screen for Display",CR
DO
'Wait for a first byte indicating an active Bluetooth connection
SERIN RX, Baud, [combyte]
DEBUG combyte
LOOP
3. Download the program using Run => Run (ctrl + r) from the BASIC Stamp Editor
4. Keep Current DEBUG Screen open, and open another DEBUG Screen (ctrl +d) from the BASIC
Stamp Editor, and select TX COM that the Bluetooth module (refer to COM ports during Bluetooth
installation) is using; you should now have 2 DEBUG Terminal windows open. Click in the white
area of the DEBUG window of DEBUG Terminal 2 and press any key; if all the steps were
correctly done, the same key will be sent back to the DEBUG Terminal 1 window.
Copyright © Parallax Inc.
CON
2
'Receive Pin
CON
0
'Transmit Pin
CON
84
'9600 Baud
VAR Byte
'Communication Byte
Easy Bluetooth (#30085)
v1.3 4/14/2010 Page 3 of 9

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Easy Bluetooth and is the answer not in the manual?

This manual is also suitable for:

30085

Table of Contents