The ZMCT103C current sensor is a compact, high-precision device designed for measuring AC current up to a specified range. This sensor is widely used in power monitoring systems, energy management applications, and for current monitoring in various electronic projects. Its small form factor and ease of use make it a popular choice for hobbyists and professionals alike.
Pin Number | Name | Description |
---|---|---|
1 | OUT | Analog output voltage |
2 | GND | Ground connection |
3 | +V | Supply voltage input |
// ZMCT103C Current Sensor Example Code for Arduino UNO
const int sensorPin = A0; // Analog input pin connected to ZMCT103C OUT pin
float sensorValue = 0; // Variable to store sensor value
void setup() {
Serial.begin(9600); // Start serial communication at 9600 baud rate
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the sensor output
float current = sensorValue * (5.0 / 1023.0) / 0.185; // Convert to current (A)
Serial.print("Current: ");
Serial.print(current, 3); // Print the current with 3 decimal places
Serial.println(" A");
delay(1000); // Wait for 1 second before reading again
}
Note: The conversion factor 0.185
is based on the sensor's typical output of 1V at 5A. This value may need to be adjusted for calibration.
Q: Can the ZMCT103C measure DC current? A: No, the ZMCT103C is designed to measure AC current only.
Q: What is the sensitivity of the sensor? A: The sensor has a sensitivity of approximately 0.185V/A, meaning for every ampere of current, the output voltage increases by 0.185V.
Q: How can I improve the accuracy of my measurements? A: For improved accuracy, calibrate the sensor with a known current source and ensure that the analog-to-digital conversion in your microcontroller is accurate.
Q: Is it necessary to use a burden resistor with this sensor? A: No, the ZMCT103C has a built-in burden resistor, so an external one is not required.
Q: Can I use this sensor with a 3.3V microcontroller? A: Yes, but you will need to scale the output voltage accordingly, as the sensor's output is designed for a 5V ADC reference.