Reference

This article details the API functions for measuring DC and AC currents using the Gravity Analog 20A current sensor, based on Hall current sensing principle.

API Description

float readDCCurrent(int Pin) , this function is used to measure the DC current.
float readACCurrent(int Pin) , this function is used to measure the AC current, and it returns the RMS of AC current.
You could only use one of them according to the measured current. Do not use both of them at the same time.

Principle

This Gravity Analog 20A current sensor is based on the Hall current sensing principle.

Other Supplementary Information

Was this article helpful?

TOP