Usage; With Arduino - SeeedStudio Grove TA12-200 Manual

Electricity sensor
Table of Contents

Advertisement

5. Usage

5.1

With Arduino

The following sketch demonstrates a simple application of measuring the amplitude of the
alternating voltage.The SIG pin will output a alternating voltage based on the alternating current
being measured. You can measure the value using ADC.
Connect the module to the analog A0 of
Put the alternating current wire through the hole of the current transformer.
Copy and paste code below to a new Arduino sketch.
/****************************************************************************/
//
Function: Measure the amplitude current of the alternating current and
//
the effective current of the sinusoidal alternating current.
//
Hardware: Grove - Electricity Sensor
//
Date:
Jan 19,2013
//
by www.seeedstudio.com
#define ELECTRICITY_SENSOR A0 // Analog input pin that sensor is attached to
float amplitude_current;
float effective_value;
void setup()
{
Serial.begin(9600);
pins_init();
}
void loop()
{
Grove - Base board
//amplitude current
//effective current
6

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Grove TA12-200 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents