Editing BlueTooth Accelerometer (SparkFun)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
'''Purchase'''<BR>
 
[http://www.sparkfun.com/commerce/product_info.php?products_id=254 Sparkfun WiTilt v2]
 
  
[[Category:Modules]]
 
 
'''Specs:'''<BR>
 
Requires 4 AAA's (or other battery configurations).  Seems to be sensitive to 20-30 ft.  You can log in to the accelerometer and adjust its properties, such as timing, axis, output format, (includes binary) and calibration.
 
 
 
'''How to use it (Mac OS X):'''<BR>
 
To interface with the object on Mac OS X, go to System Preferences, then Bluetooth, and Set up a New Device.  Turn on power to the accelerometer and hit the hardware reset button.  Follow the set up wizard, name the device (remember the name) but don't do the key-pair exchange, just leave it unsecured.  Specify it as a serial device in the wizard.  Once the device is added (shows up as BlueRadios in the menu), open a terminal window.  cd to /dev/ and you should see a device with the name of the bluetooth device you just created.  Then do 'cat /dev/MyBTAccelerometer' and turn the hardware switch to on (if not already on).  Now hit the reset button.  You should see a menu spit out to the console.  To talk to the device, just open another terminal window and do something like 'cat 1 > /dev/MyBTAcceleromter' if 1 is the option from the menu you're choosing. 
 
 
 
'''How to use it (Java):'''<BR>
 
You can just open a buffered reader/writer to the device and treat it like any other input/output object.   
 
 
 
'''Notes:'''<BR>
 
* You can hit the hardware 'reset' any time to have the menu return.  Your previously saved settings are not affected.
 
* If your software program does not read from the device at a rate that is equal to or higher than the rate the device is outputting, it will get backed up.  Basically you'll get readings from time that has already past, as you need keep up with the output frequency.
 
* If your device gets backed up: hit reset, then cat the device.  You will see previous readings output for a bit then the new menu will show up. 
 
* If you interface with the device using cat, be careful to turn off the accelerometer before hitting ^C to end the 'cat /dev/MyBTAccelerometer' as it can lock up access to device.
 

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)