

A current sensor is an electronic component that detects and measures the electric current flowing through a circuit. The output of the sensor is typically a voltage or digital signal proportional to the current being measured. Current sensors are widely used in various applications such as power supply monitoring, battery management, overcurrent protection, and energy metering.








| Pin Number | Name | Description |
|---|---|---|
| 1 | Vcc | Power supply input, typically +5V or +3.3V |
| 2 | GND | Ground connection |
| 3 | OUT | Output signal (analog or digital) |
| 4 | NC | No connection (if applicable) |
Powering the Sensor: Connect the Vcc pin to a power source matching the sensor's supply voltage rating, and connect the GND pin to the system ground.
Reading the Output: Connect the OUT pin to an analog input of a microcontroller to read the analog voltage output. For digital output sensors, connect to the appropriate digital or communication pins.
Calibration: If necessary, calibrate the sensor using a known current source to ensure accurate readings.
// Example code for interfacing a current sensor with an Arduino UNO
const int currentSensorPin = A0; // Analog input pin connected to the sensor
void setup() {
Serial.begin(9600); // Start serial communication at 9600 baud rate
}
void loop() {
int sensorValue = analogRead(currentSensorPin); // Read the sensor output
float current = sensorValue * (5.0 / 1023.0); // Convert to current value
Serial.println(current); // Print the current reading to the serial monitor
delay(1000); // Wait for 1 second before reading again
}
Q: Can I use this sensor to measure AC current? A: It depends on the sensor model. Some current sensors are designed for AC measurements, while others are for DC only. Check the datasheet for your specific sensor.
Q: What is the maximum current I can measure with this sensor? A: The maximum measurable current is determined by the sensor's specifications. Exceeding this value can damage the sensor.
Q: How do I convert the sensor's output to actual current units? A: Use the sensor's sensitivity rating to convert the output voltage to current. For example, if the sensitivity is 100 mV/A, a 1V output corresponds to 10A.
Q: How often should I calibrate the sensor? A: Calibration frequency depends on the sensor's stability and the precision required for your application. Regular calibration is recommended for critical measurements.