

A current sensor is a device that measures the flow of electric current in a circuit, typically providing an output signal proportional to the current level. These sensors are widely used in various applications, including power monitoring, motor control, battery management systems, and renewable energy systems. Current sensors are essential for ensuring the safe and efficient operation of electrical and electronic systems.
Common applications and use cases:








The technical specifications of a current sensor can vary depending on the specific model and type. Below is an example of a typical Hall-effect-based current sensor:
| Parameter | Value |
|---|---|
| Measurement Range | ±30 A |
| Supply Voltage (Vcc) | 5 V DC |
| Output Voltage Range | 0.5 V to 4.5 V |
| Sensitivity | 66 mV/A |
| Accuracy | ±1% of full-scale reading |
| Response Time | < 5 µs |
| Operating Temperature | -40°C to +85°C |
| Isolation Voltage | 2.1 kV RMS |
Below is the pin configuration for a typical 5-pin current sensor module:
| Pin | Name | Description |
|---|---|---|
| 1 | Vcc | Power supply input (typically 5 V DC) |
| 2 | GND | Ground connection |
| 3 | Vout | Analog output voltage proportional to the current |
| 4 | NC (Not Connected) | No connection (reserved for future use) |
| 5 | Filter | Optional pin for connecting a capacitor to filter noise |
Vcc pin to a 5 V DC power supply and the GND pin to the ground of your circuit.Vout pin to an analog input pin of a microcontroller or an ADC (Analog-to-Digital Converter) to read the voltage proportional to the current.Filter pin and GND to smooth the signal.Below is an example of how to use a current sensor with an Arduino UNO to measure current and display the value on the Serial Monitor.
// Example code for interfacing a current sensor with Arduino UNO
// Assumes a sensor with 66 mV/A sensitivity and 2.5 V zero-current offset
const int sensorPin = A0; // Analog pin connected to the sensor's Vout
const float sensitivity = 0.066; // Sensor sensitivity in V/A (66 mV/A)
const float zeroCurrentOffset = 2.5; // Zero-current output voltage in volts
void setup() {
Serial.begin(9600); // Initialize Serial Monitor at 9600 baud
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog value (0-1023)
float voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage (0-5 V)
float current = (voltage - zeroCurrentOffset) / sensitivity;
// Calculate current in amps
Serial.print("Current: ");
Serial.print(current, 2); // Print current with 2 decimal places
Serial.println(" A"); // Append unit (Amps)
delay(1000); // Wait 1 second before next reading
}
No Output Signal:
Vcc and GND connections).Inaccurate Readings:
Output Voltage Stuck at Zero:
By following these guidelines and best practices, you can effectively use a current sensor in your projects and ensure accurate and reliable current measurements.