Deprecated: Assigning the return value of new by reference is deprecated in /home/mitchell/public_html/research/wp-settings.php on line 512

Deprecated: Assigning the return value of new by reference is deprecated in /home/mitchell/public_html/research/wp-settings.php on line 527

Deprecated: Assigning the return value of new by reference is deprecated in /home/mitchell/public_html/research/wp-settings.php on line 534

Deprecated: Assigning the return value of new by reference is deprecated in /home/mitchell/public_html/research/wp-settings.php on line 570

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/mitchell/public_html/research/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /home/mitchell/public_html/research/wp-includes/wp-db.php on line 306

Deprecated: Assigning the return value of new by reference is deprecated in /home/mitchell/public_html/research/wp-includes/cache.php on line 103

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/mitchell/public_html/research/wp-includes/cache.php on line 431

Deprecated: Assigning the return value of new by reference is deprecated in /home/mitchell/public_html/research/wp-includes/query.php on line 61

Deprecated: Assigning the return value of new by reference is deprecated in /home/mitchell/public_html/research/wp-includes/theme.php on line 1109

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/mitchell/public_html/research/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/mitchell/public_html/research/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /home/mitchell/public_html/research/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /home/mitchell/public_html/research/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /home/mitchell/public_html/research/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /home/mitchell/public_html/research/wp-includes/http.php on line 61
A Wearable Display for Team Sports » Bluetooth Problems Solved!

Bluetooth Problems Solved!

September 29th, 2006

Although I have had Bluetooth working with my project for sometime, recently some new Bluetooth modules I ordered have not been working. This meant, that only 2 of the 4 jerseys I have would have worked - not good. So for the past 2 weeks I have been trying to figure out a way to get these new modules working.
After many hours spent tonight I have managed to get Bluetooth up and running again. I am now posting this at 4am so I do not forget the process. Here is a brief description of how to get connected to BlueSmirf Bluetooth Modules using a computer. This process works for both old and new BlueSmirfs:

  1. Connect your Bluesmirf module to the Ground/Power/Rx/Tx pins of Arduino microcontroller. Connect the Arduino to AC power or battery power.
    [please note: your Arduino board will need to be pre-programmed to receive data and do some action based on this. I suggest a simple program which turns and LED on/off. You can use pin 13 of Arduino for this, just plug a LED into pin 13 and into the GND pin next to it (you will not need a resistor)]
  2. Plug in USB Bluetooth adaptor into your computer or laptop (I use cadmus micro model)
  3. Install the Toshiba Bluetooth Software or here (under GUBTCR41A-BT Win 2K/XP). Reboot after install
  4. Open up newly installed Bluetooth Settings. Click ‘New Connection’. Select ‘Custom Mode Setup’ and click next. It will search for devices, and it should detect BlueRadios (which is the BlueSmirf), select this then click next. I did not need to enter a passkey, but if it asks you, the passkey for BlueSmirf is ‘default’. It will then register a COM port. NOW, uncheck the tick box at the bottom, and then next to the drop down menu displaying the COM ports, uncheck the box which says ‘auto connect’. Then click next. The BlueSmirf is now added.
  5. Now it should appear in your Bluetooth Settings window. Right click on it and click connect - nothing will happen to the BlueSmirf but the computer will establish a link. If you highlight it and click the ‘detail’ button, it will remind you which COM port its using under the settings. In my case its COM40.
  6. Now open up Processing (I use processing to talk to BlueSmirf/Arduino wirelessly). I have attached a zip file to this post containing the processing program I use to send data. You will need the MyGUI class to run this, because I have created buttons using this. You can download MyGUI here. This program simply sends numbers when the buttons are clicked. And as mentioned above, I have preprogrammed my Arduino to turn pin 13 ON and OFF based on this data.
    [please note: the reason there is two sets of buttons is because I use this program to connect to TWO seperate BlueSmirfs. This is also why there is two Serial port connections.]
  7. The line println(Serial.list()); will print all the COM ports on your computer. You will need to change the line port1 = new Serial(this, Serial.list()[9], 9600); where [9] represents the COM port in the list that corresponds to your BlueSmirfs COM port. COM40 was 9th in the array (remember array starts at 0, so its actually the 10th in the list). You can alternatively use something like this: port1 = new Serial(this, “COM4″);
  8. Then run the processing program, and a red LED should now light up on the BlueSmirf - you are now connected! And if you have programmed the Arduino right, when you click the buttons to send data, the LED should turn on and off.

These instructions are more for my benefit than anyone elses, but I have noticed that other people are having similar Bluetooth problems. Thanks go to Pavel in Norway who has been helping me out. Toshiba Bluetooth Software + Four Hours + Help from Norway = Bluetooth Problems Solved!

working_bluesmirf.jpg

Two LED’s switched on after receiving data from PC - the one on the left is the ‘new’ BlueSmirf which previously didnt work.

Prelim_Prototype_v2.zip

Attached Processing File

3 Comments »

  1. The Photo Forest » Blog Archive » Dougy loses the leash says

    [...] http://www.arduino.cc/playground/Learning/Tutorial01 http://www.mitchellpage.com.au/research/?p=263 [...]

    November 17th, 2006 | #

  2. Miguel says

    Thanks a lot for your development!!!

    :razz:

    June 16th, 2009 | #

  3. Georgi Bakalski says

    Looks nice. I have a terminal app for cell phone which removes the need of using PC to connect to the bluetooth module. With BTTerm app you can control your project from a cell phone.:neutral:

    February 21st, 2010 | #

Leave a comment

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad:

RSS feed for these comments. | TrackBack URI

A Wearable Display for Team Sports - contact me