#accelerometer #embedded-hal-driver #seeed #grove #mma7660

nightly mma7660fc

A platform agnostic driver to interface with the MMA7660FC 3-Axis Accelerometer via I2C

3 releases

Uses old Rust 2015

0.1.2 Apr 23, 2018
0.1.1 Apr 6, 2018
0.1.0 Apr 6, 2018

#6 in #seeed

MIT/Apache

8KB
102 lines

mma7660fc

A platform agnostic driver to interface with the MMA7660FC 3-Axis Accelerometer via I2C

This chip can be found on Seeed's Grove 3-Axis Digital Accelerometer(±1.5g)

This driver was built using embedded-hal traits.

Documentation

Read the detailed documentation here

What works

  • Read the XOUT register for value of x
  • Read registers XOUT, YOUT and ZOUT to get 6-bits output value for x, y and z
  • Set mode to active or standby
  • Get acceleration within range ±1.5g

TODO

  • Allow to modify sampling rate, currently initialised to 4 samples per second active
  • Get other data such as orientation, tilt, etc
  • Test with stm32f30x-hal, currently only testing with linux-embedded-hal

License

Licensed under either of

at your option.

Resources

The following resources were consulted when making this driver:

Dependencies

~110KB