×

SparkFun Electronics will be closed on July 3rd, 2015 in observance of Independence Day. Any orders placed after 2:00pm MT on July 2nd will be shipped out after the weekend. Thanks!

Member #304608

Member Since: February 25, 2012

Country: United States

  • just wondering how to change the measurement up to +/-16g? the datasheet for the accelerometer ADXL345 says the measurement range is “user selectable” to ±2, ±4, ±8, ±16g!

    The c code in the firmware v2.0 for the adxl345 has a line of code as follows:

    adxl345_write(DATA_FORMAT, RANGE_1); //Configure the Accelerometer for +/-8g

    this is the only code i can find to change but dont know what to change in it as im new to programming.

    Thanks for the help

No public wish lists :(