Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.48 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.48 KB

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: