ACS712 Current Sensor Arduino Library 1.0.0
This is a library for the ACS712 current sensor.
Loading...
Searching...
No Matches
_ACS712 Class Reference

#include <ACS712.h>

Inherited by ACS712.

Public Member Functions

 _ACS712 (uint8_t analogPin, float volts=5.0, uint16_t maxADC=1023, uint8_t mVperA=100)
 
int mA_AC (uint8_t freq=50)
 
int mA_DC ()
 
void setMidPoint (uint16_t mp)
 
uint16_t getMidPoint ()
 
void incMidPoint ()
 
void decMidPoint ()
 
void autoMidPoint (uint8_t freq=50)
 
void setFormFactor (float ff=ACS712_FF_SINUS)
 
float getFormFactor ()
 
void setNoisemV (uint8_t noisemV=21)
 
uint8_t getNoisemV ()
 
void setmVperAmp (uint8_t mva)
 
uint8_t getmVperAmp ()
 

Private Attributes

uint8_t _pin
 
float _mVpstep
 
float _formFactor
 
uint8_t _mVperAmpere
 
uint16_t _midPoint
 
uint8_t _noisemV
 

Constructor & Destructor Documentation

◆ _ACS712()

_ACS712::_ACS712 ( uint8_t  analogPin,
float  volts = 5.0,
uint16_t  maxADC = 1023,
uint8_t  mVperA = 100 
)

Member Function Documentation

◆ autoMidPoint()

void _ACS712::autoMidPoint ( uint8_t  freq = 50)

◆ decMidPoint()

void _ACS712::decMidPoint ( )
inline

◆ getFormFactor()

float _ACS712::getFormFactor ( )
inline

◆ getMidPoint()

uint16_t _ACS712::getMidPoint ( )
inline

◆ getmVperAmp()

uint8_t _ACS712::getmVperAmp ( )
inline

◆ getNoisemV()

uint8_t _ACS712::getNoisemV ( )
inline

◆ incMidPoint()

void _ACS712::incMidPoint ( )
inline

◆ mA_AC()

int _ACS712::mA_AC ( uint8_t  freq = 50)

◆ mA_DC()

int _ACS712::mA_DC ( )

◆ setFormFactor()

void _ACS712::setFormFactor ( float  ff = ACS712_FF_SINUS)
inline

◆ setMidPoint()

void _ACS712::setMidPoint ( uint16_t  mp)
inline

◆ setmVperAmp()

void _ACS712::setmVperAmp ( uint8_t  mva)
inline

◆ setNoisemV()

void _ACS712::setNoisemV ( uint8_t  noisemV = 21)
inline

Member Data Documentation

◆ _formFactor

float _ACS712::_formFactor
private

◆ _midPoint

uint16_t _ACS712::_midPoint
private

◆ _mVperAmpere

uint8_t _ACS712::_mVperAmpere
private

◆ _mVpstep

float _ACS712::_mVpstep
private

◆ _noisemV

uint8_t _ACS712::_noisemV
private

◆ _pin

uint8_t _ACS712::_pin
private

The documentation for this class was generated from the following files: