ACS37800 library for Arduino
|
This is a library for the Arduino IDE that helps interface with the ACS37800 power monitoring IC from Allegro Microsystems using I²C.
This library supports the ACS37800 Isolated Power Monitor Carriers from Pololu.
This library should support any Arduino-compatible board, including the [Pololu A-Star controllers][a-star].
An ACS37800 carrier can be purchased from Pololu's website.
The GND pin of your Arduino must be connected to the GND pin of the ACS37800 board.
You must connect logic power to the ACS37800 board. If you have a Pololu board, connect its VCC pin to the logic power supply of your Arduino, which should be between 3 V and 5.5 V. If your Arduino has an IOREF pin, we recommend using that. Otherwise, use either the 3V3 or 5V pin (whichever matches the logic voltage that your Arduino's I/O pins use).
The SCL pin of your Arduino must be connected to the SCL pin of the ACS37800 board and the SDA pin of your Arduino must be connected to the SDA pin of the ACS37800 board.
You can use the Library Manager to install this library:
If this does not work, you can manually install the library:
Several example sketches are available that show how to use the library. You can access them from the Arduino IDE by opening the "File" menu, selecting "Examples", and then selecting "ACS37800". If you cannot find these examples, the library was probably installed incorrectly and you should retry the installation instructions above.
For complete documentation of this library, see the acs37800-arduino documentation. If you are already on that page, then see the documentation for the ACS37800 class.