10 years ago.

Freedom K64F Accelerometer

Is there a class defined to interface with the Acceleration Sensors on the Freedom K64F platform?

3 Answers

7 years, 1 month ago.

can the built in accelerometer on the k64f be used to record the acceleration due to gravity in a free fall experiment?

10 years ago.

I found this library for the onboard sensor. https://mbed.org/users/JimCarver/code/FXOS8700Q/ I made a few changes to the lib so look at the pull request here. http://mbed.org/users/JimCarver/code/FXOS8700Q/pull-request/1

+1 Sam!

posted by Martin Kojtal 17 Apr 2014
10 years ago.

Please use the version I just published today. It adds features which allow it to be used with this tilt compensated eCompass: http://mbed.org/users/JimCarver/code/eCompass_FPU_Lib/

I almost forgot, here is an example of the eCompass running on a KL64F Freedom board: http://mbed.org/users/JimCarver/code/K64F_eCompass/

posted by Jim Carver 17 Apr 2014

Is that 'hidden' .ar file only used because that lib seems to be closed source? Or is it required to make use of the FPU? Am I correct that for a normal library the FPU will be used by the mbed online compiler, and no special tricks are required?

posted by Erik - 17 Apr 2014

Eric, The .ar file is the compiled eCompass library which I have to compile offline to comply with Freescale's licensing terms. The mbed compiler requires no special tricks to use floating point on a FPU enabled device.

posted by Jim Carver 17 Apr 2014