Module Cảm Biến Dòng AC 5A TA12-100

Mô Tả Sản Phẩm

Module cảm biến dòng AC 5A TA12-100 là một module được thiết kế để đo dòng điện xoay chiều (AC) tới 5A. Module này có thể được sử dụng để đo dòng điện trong các ứng dụng điện tử, như đo lưu lượng điện năng, điều khiển tốc độ động cơ và các ứng dụng khác. Module TA12-100 sử dụng cảm biến hiệu điện từ để đo dòng điện AC. Cảm biến này được gắn vào dòng điện cần đo và tạo ra một tín hiệu điện áp tương ứng với dòng điện. Tín hiệu điện áp này được đưa vào một mạch điện tử để xử lý và hiển thị giá trị đo trên một màn hình LED.

Module Cảm Biến Dòng AC 5A TA12-100

Module Cảm Biến Dòng AC 5A TA12-100

Module Cảm Biến Dòng AC 5A TA12-100

Thông Số Kỹ Thuật

- Dòng định mức: 5A - Tín hiệu ra: 1V/5A - Độ chính xác: ±1% - Điện áp hoạt động: 12VDC - Kích thước: 31mm x 13mm x 12mm

Sơ Đồ Đấu Nối

Module Cảm Biến Dòng AC 5A TA12-100

Code Mẫu Với Arduino

int sensorTA12 = A0; // Analog input pin that sensor is attached to float nVPP; // Voltage measured across resistor float nCurrThruResistorPP; // Peak Current Measured Through Resistor float nCurrThruResistorRMS; // RMS current through Resistor float nCurrentThruWire; // Actual RMS current in Wire void setup() { Serial.begin(9600); pinMode(sensorTA12, INPUT); } void loop() { nVPP = getVPP(); /* Use Ohms law to calculate current across resistor and express in mA */ nCurrThruResistorPP = (nVPP/200.0) * 1000.0; /* Use Formula for SINE wave to convert to RMS */ nCurrThruResistorRMS = nCurrThruResistorPP * 0.707; /* Current Transformer Ratio is 1000:1... Therefore current through 200 ohm resistor is multiplied by 1000 to get input current */ nCurrentThruWire = nCurrThruResistorRMS * 1000; Serial.print("Volts Peak : "); Serial.println(nVPP,3); Serial.print("Current Through Resistor (Peak) : "); Serial.print(nCurrThruResistorPP,3); Serial.println(" mA Peak to Peak"); Serial.print("Current Through Resistor (RMS) : "); Serial.print(nCurrThruResistorRMS,3); Serial.println(" mA RMS"); Serial.print("Current Through Wire : "); Serial.print(nCurrentThruWire,3); Serial.println(" mA RMS"); Serial.println(); } /************************************ In order to calculate RMS current, we need to know the peak to peak voltage measured at the output across the 200 Ohm Resistor The following function takes one second worth of samples and returns the peak value that is measured *************************************/ float getVPP() { float result; int readValue; //value read from the sensor int maxValue = 0; // store max value here uint32_t start_time = millis(); while((millis()-start_time) < 1000) //sample for 1 Sec { readValue = analogRead(sensorTA12); // see if you have a new maxValue if (readValue > maxValue) { /*record the maximum sensor value*/ maxValue = readValue; } } // Convert the digital data to a voltage result = (maxValue * 5.0)/1024.0; return result; }

Video Hướng Dẫn

Tag

#TA12100 #ACcurrentsensor #electronics #electricalengineering #powermeasurement

Từ khóa » Cảm Biến Dòng điện Ac