Skip to content

Commit 37954b5

Browse files
committed
update readme.md
1 parent 7cebbd9 commit 37954b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/ACS712/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ See Form factor below.
3737
#### Base
3838

3939
- **ACS712(uint8_t analogPin, float volts = 5.0, uint16_t maxADC = 1023, uint8_t mVperA = 100)** constructor.
40-
It defaults a 20 A type sensor, which is defined by the default value of mVperA. See below.
40+
It defaults a 20 A type sensor, which is defined by the default value of mVperA. See table below.
41+
Volts is the voltage used by the (Arduino) internal ADC. maxADC is the maximum output of the internal ADC.
42+
The defaults are based upon an Arduino UNO.
43+
These two ADC parameters are needed to calculate the voltage output of the ACS712 sensor.
4144
- **int mA_AC(float freq = 50)** blocks ~21 ms (depending on the freq) to sample a whole 50 or 60 Hz period.
4245
Since version 0.2.2 frequencies other integer values than 50 and 60 are supported, the lower the frequency,
4346
the longer the blocking period.

0 commit comments

Comments
 (0)