RobTillaart / A1301

Arduino library for the A1301, A1302 and compatible magnetometers.
MIT License
4 stars 0 forks source link

PlatformIO CI Arduino CI Arduino-lint JSON check GitHub issues

License: MIT GitHub release PlatformIO Registry

Commits since latest

A1301

Arduino library for A1301 and A1302 magnetometer.

Description

The A1301 and A1302 are continuous-time, Ratio-metric, linear Hall-effect sensors. They are optimized to accurately provide a voltage output that is proportional to an applied magnetic field. These devices have a quiescent output voltage that is 50% of the supply voltage. This voltage level is a.k.a. the midPoint.

Two output sensitivity options are provided: 2.5 mV/G typical for the A1301, and 1.3 mV/G typical for the A1302. (from datasheet)

The following 5 classes are supported:

sensor sensitivity support
A1301 2.5 mV/Gauss Y
A1302 1.3 mV/Gauss Y
A1324 5.000 mV/Gauss Y
A1325 3.125 mV/Gauss Y
A1326 2.500 mV/Gauss Y

Other, more or less, compatible sensors are welcome. (see future below.)

The library is experimental and need more testing. Feedback, issues and improvements are welcome, Please open an issue on GitHub.

Connection

//  always check datasheet.
//
//    PIN    A1301
//    ===============
//     1     GND
//     2     DATA
//     3     VDD +5V

Interface

#include "A1301.h"

Constructor

Configuration

Read

Analyse

Experimental.

Saturation.

Experimental saturation level.

Tesla

Future

Must

Should

Could

Ideas

(thinking out loud section)

Won't

Support

If you appreciate my libraries, you can support the development and maintenance. Improve the quality of the libraries by providing issues and Pull Requests, or donate through PayPal or GitHub sponsors.

Thank you,