Skip to content

mechatronod/ACS712Simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACS712Simple Library

An easy-to-use Arduino library for ACS712 current sensors.
Supports 5A, 20A, and 30A versions with automatic calibration and both DC and AC (RMS) current reading.

ACS712 connection

📦 Installation

  1. Download this repo as .zip
  2. In Arduino IDE → Sketch → Include Library → Add .ZIP Library

📘 Usage

#include "ACS712Simple.h"

ACS712_30A sensor(A0);

void setup() {
  Serial.begin(9600);
  sensor.calibrate(); // run with no load
}

void loop() {
  float current = sensor.readAC();
  Serial.println(current);
}

About

Arduino library for ACS712 current sensor (5A, 20A, 30A) with AC/DC support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages