Whadda WPSE323 Current Sensor ACS712 Module - 20A
USER MANUAL
Introduction
This product is from Whadda. Important environmental information regarding disposal is provided. Do not dispose of the device as unsorted municipal waste; it should be taken to a specialized recycling company. Return the device to your distributor or a local recycling service, respecting local environmental rules.
Thank you for choosing Whadda. Please read this manual thoroughly before use. If the device was damaged in transit, do not install or use it and contact your dealer.
Safety Instructions
Read and understand this manual and all safety signs before using this appliance.
- For indoor use only.
- This device can be used by children aged 8 years and above, and persons with reduced physical, sensory or mental capabilities or lack of experience and knowledge if they have been given supervision or instruction concerning the use of the device in a safe way and understand the hazards involved. Children shall not play with the device. Cleaning and user maintenance shall not be made by children without supervision.
General Guidelines
- Refer to the Velleman® Service and Quality Warranty.
- All modifications of the device are forbidden for safety reasons. Damage caused by user modifications is not covered by the warranty.
- Only use the device for its intended purpose. Unauthorized use will void the warranty.
- Damage caused by disregard of guidelines in this manual is not covered by the warranty.
- Velleman Group nv and its dealers are not responsible for any damage (extraordinary, incidental or indirect) of any nature (financial, physical...) arising from the possession, use or failure of this product.
- Keep this manual for future reference.
What is Arduino®
Arduino® is an open-source prototyping platform based on easy-to-use hardware and software. Arduino® boards can read inputs (e.g., a light sensor, a button press, or a Twitter message) and turn them into outputs (e.g., activating a motor, turning on an LED, publishing something online). You program the board using the Arduino programming language (based on Wiring) and the Arduino® software IDE (based on Processing). Additional shields/modules/components are required for advanced functionalities like reading Twitter messages or publishing online. More information is available at www.arduino.cc.
Product Overview
The Allegro® ACS712 provides economical and precise solutions for AC or DC current sensing in industrial, commercial, and communications systems. The device package allows for easy implementation. Typical applications include motor control, load detection and management, switched-mode power supplies, and overcurrent fault protection.
Specifications
- Supply voltage: 5 VDC
- Measurement range: -20 to +20 A
- Output voltage: VCC/2 at no load
- Scale factor: 100 mV per A
- Dimensions: 31 x 13 x 12 mm
Pin Layout
- Load positive
- VCC - 5 V
- Load negative
- Ground
- Analogue output
Example
This example demonstrates measuring current using the ACS712 module with an Arduino UNO.
Components:
- 1 Computer
- 2 Arduino® UNO
- 3 10 kΩ potentiometer rated for 3.16 A
- 4 DC power supply
- 5 ACS712 module
Arduino Code:
/* Measuring Current Using ACS712 */
const int analogIn = A0;
int mVperAmp = 100; // use 100 for 20A Module and 66 for 30A Module
int RawValue= 0;
int ACSoffset = 2500;
double Voltage = 0;
double Amps = 0;
void setup(){
Serial.begin(9600);
}
void loop(){
RawValue = analogRead(analogIn);
Voltage = (RawValue / 1024.0) * 5000; // Gets you mV
Amps = ((Voltage - ACSoffset) / mVperAmp);
Serial.print("Raw Value = "); // shows pre-scaled value
Serial.print(RawValue);
Serial.print("\t mV = "); // shows the voltage measured
Serial.print(Voltage,3); // the '3' after voltage allows you to display 3 digits after decimal point
Serial.print("\t Amps = "); // shows the voltage measured
Serial.println(Amps,3); // the '3' after voltage allows you to display 3 digits after decimal point
delay(2500);
}