User:Sarah Labianca/Notebook/Smyth Lab/2012/04/05: Difference between revisions
Line 6: | Line 6: | ||
| colspan="2"| | | colspan="2"| | ||
<!-- ##### DO NOT edit above this line unless you know what you are doing. ##### --> | <!-- ##### DO NOT edit above this line unless you know what you are doing. ##### --> | ||
==Downloads== | |||
to be filled in with libraries, code, etc, later | |||
==Building a force gauge== | ==Building a force gauge== | ||
=== | ====About the ADXL345 and Arduino==== | ||
to | [http://en.wikipedia.org/wiki/Accelerometer Background reading on accelerometers.] Our accelerometer of choice was the [http://www.sparkfun.com/products/9836 ADXL 345] from SparkFun Electronics. There are a bunch of code examples for the ADXL345, and the [http://www.sparkfun.com/datasheets/Sensors/Accelerometer/ADXL345.pdf datasheet] and [http://www.sparkfun.com/datasheets/Sensors/Accelerometer/ADXL345.pdf quickstart guide] were very helpful. | ||
The board we used to control and process data from the ADXL345 was an [http://www.sparkfun.com/products/11021 Arduino Uno R3]. | |||
====Circuit==== | |||
I connected the ADXL to the Arduino using a relatively simple circuit. I used the circuit setup from a [http://bildr.org/2011/03/adxl345-arduino/ bildr tutorial]. The accelerometer came mounted on a breakout board, with holes where pins could go. I had to solder pins onto the breakout board | |||
*Arduino 3.3 v is connected to ADXL VCC and CS | |||
*Arduino ground is connected to ADXL ground | |||
*Arduino Analog In 4 (A4) is connected to ADXL SDA | |||
*Arduino Analog In 5 (A5) is connected to ADXL SCL | |||
====Development Environment==== | |||
I wrote and uploaded my code to the Arduino and accelerometer using the [http://arduino.cc/hu/Main/Software Arduino 1.0 IDE] on Ubuntu 11.04. Help for getting the integrated development environment running on Ubuntu can be found [http://arduino.cc/playground/Linux/Ubuntu here]. | |||
====ADXL345 and Arduino 1.0 IDE==== | |||
Revision as of 01:36, 6 April 2012
Project name | <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page <html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html> </html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html> |
Downloadsto be filled in with libraries, code, etc, later Building a force gaugeAbout the ADXL345 and ArduinoBackground reading on accelerometers. Our accelerometer of choice was the ADXL 345 from SparkFun Electronics. There are a bunch of code examples for the ADXL345, and the datasheet and quickstart guide were very helpful. The board we used to control and process data from the ADXL345 was an Arduino Uno R3. CircuitI connected the ADXL to the Arduino using a relatively simple circuit. I used the circuit setup from a bildr tutorial. The accelerometer came mounted on a breakout board, with holes where pins could go. I had to solder pins onto the breakout board
Development EnvironmentI wrote and uploaded my code to the Arduino and accelerometer using the Arduino 1.0 IDE on Ubuntu 11.04. Help for getting the integrated development environment running on Ubuntu can be found here. ADXL345 and Arduino 1.0 IDE<source lang ="c"> init.h </source>
|