Skip to content

alan16R/SparkFun_TMAG5273_Arduino_Library

 
 

Repository files navigation

SparkFun TMAG5273 Arduino Library

This is the SparkFun library for the Texas Instruments TMAG5273 low-power linear 3D Hall-effect sensor with I2C interface as used on the SparkFun IoT Motor Driver (ESP32 WROOM, TMC6300).

Version 1.1.0

Added support for the "Trigger Mode". This doesn't seem to be supported in the original version and requires that bit 7 of the address register is set to 1 to trigger a conversion. I've done this by adding an extra call to 'arm' the trigger condition, and the next write to an address register ORs this bit in with the address and then the latch is cleared.

TODO: Add example with 'Trigger Mode".

TODO: Produce a working interrupt example.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • /Documentation - Datasheet for the TMAG5273.
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.
  • CONTRIBUTING.md - guidance on how to contribute to this library.

Documentation

License Information

This product is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact technical support on our SparkFun forums.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

About

Communicates with the TMAG5273 over I2C to quickly integrate a Hall-effect sensor into your project.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.1%
  • C 7.9%