From c61bb84a98a86825d0867464667afaf82fcaaeea Mon Sep 17 00:00:00 2001 From: bobemoe Date: Thu, 18 Apr 2024 11:53:34 +0100 Subject: [PATCH 1/2] add comment to example for 90A version --- .../Example1_ReadVoltageCurrentPower.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino b/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino index c8ffe7c..472282d 100644 --- a/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino +++ b/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino @@ -39,6 +39,10 @@ void setup() // Sample rate is 32kHz. Maximum number of samples is 1023 (0x3FF) (10-bit) mySensor.setNumberOfSamples(1023, true); // Set the number of samples in shadow memory and eeprom mySensor.setBypassNenable(true, true); // Enable bypass_n in shadow memory and eeprom + + // By default current range is set for the 30A version of the ACS37800 + // Uncomment if you are using the 90A version + // mySensor->setCurrentRange(90); } void loop() From ec0e36d652e02fc13e9c53de0972042b97ba7bbd Mon Sep 17 00:00:00 2001 From: PaulZC Date: Thu, 18 Apr 2024 07:43:15 -0600 Subject: [PATCH 2/2] v1.0.6 --- .../Example1_ReadVoltageCurrentPower.ino | 6 +++--- library.properties | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino b/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino index 472282d..c2ac07e 100644 --- a/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino +++ b/examples/Example1_ReadVoltageCurrentPower/Example1_ReadVoltageCurrentPower.ino @@ -40,9 +40,9 @@ void setup() mySensor.setNumberOfSamples(1023, true); // Set the number of samples in shadow memory and eeprom mySensor.setBypassNenable(true, true); // Enable bypass_n in shadow memory and eeprom - // By default current range is set for the 30A version of the ACS37800 - // Uncomment if you are using the 90A version - // mySensor->setCurrentRange(90); + // By default, the current range is set for the 30A version of the ACS37800 + // Uncomment the next line if you are using the 90A version: + //mySensor.setCurrentRange(90); } void loop() diff --git a/library.properties b/library.properties index 322a517..044556b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=SparkFun ACS37800 Power Monitor Arduino Library -version=1.0.5 +version=1.0.6 author=SparkFun Electronics maintainer=SparkFun Electronics sentence=Library for the Allegro MicroSystems ACS37800 power monitor IC