Page 4
Disclaimer For physical injuries and possessions loss caused by those reasons which are not related to product quality, such as operating without following manual guide, natural disasters or force majeure, we take no responsibility for that. Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification.
1. Introduction The Electricity sensor module is a member of Grove. It is based on the TA12-200 current transformer which can transform the large AC into small amplitude. You can use it to test large alternating current up to 5A.
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; //amplitude current float effective_value;...
Page 10
int sensor_max; sensor_max = getMaxValue(); Serial.print("sensor_max = "); Serial.println(sensor_max); //the VCC on the Grove interface of the sensor is 5v amplitude_current=(float)sensor_max/1024*5/800*2000000; effective_value=amplitude_current/1.414;//minimum_current=1/1024*5/800*2000000/1.414=8.6(mA) //Only for sinusoidal alternating current Serial.println("The amplitude of the current is(in mA)"); Serial.println(amplitude_current,1);//Only one number after the decimal point Serial.println("The effective value of the current is(in mA)");...
With Raspberry Pi 1. You should have got a raspberry pi and a grovepi or grovepi+. here 2. You should have completed configuring the development enviroment, otherwise follow 3. Connection Plug the sensor to grovepi socket A0 by using a grove cable. 4.
Page 12
# Calculate amplitude current (mA) amplitude_current = (float)(sensor_value / 1024 * grove_vcc / 800 * 2000000) # Calculate effective value (mA) effective_value = amplitude_current / 1.414 # minimum_current = 1 / 1024 * grove_vcc / 800 * 2000000 / 1.414 = 8.6(mA) # Only for sinusoidal alternating current print "sensor_value", sensor_value print "The amplitude of the current is", amplitude_current, "mA"...
Need help?
Do you have a question about the Grove TA12-200 and is the answer not in the manual?
Questions and answers