CJMCU-758 ACS758 50A / 100A Current Sensor – Arduino Wiring, Calibration & AC/DC Guide
The CJMCU-758 is an analogue Hall-effect current sensor module based on the Allegro ACS758. It is connected in series with the circuit being measured and produces an output voltage proportional to the current flowing through its high-current path.
This guide covers the common bidirectional ACS758LCB-050B ±50A and ACS758LCB-100B ±100A variants, including Arduino UNO wiring, zero-current calibration, DC measurement, AC RMS measurement, 3.3V controller considerations and troubleshooting.
ACS758 Overview
The high-current conductor and low-voltage signal electronics are galvanically isolated inside the ACS758 IC. This means the circuit being measured does not normally need to share a ground connection with the Arduino.
Continuous current capability depends on the sensor package, PCB copper, solder joints, connected conductors, ambient temperature and cooling. Use appropriately rated wire, terminals and circuit protection, and monitor temperature during initial high-current testing.
Identify the 50A or 100A Variant
Read the full marking on the ACS758 package before using the conversion values in your code. The two common bidirectional versions use different sensitivities.
| IC Marking | Nominal Range | Sensitivity at 5V | Zero-Current Output |
|---|---|---|---|
| ACS758LCB-050B | ±50A | 40mV/A | VCC / 2 |
| ACS758LCB-100B | ±100A | 20mV/A | VCC / 2 |
The B versions are bidirectional. With a 5V supply, zero current is nominally 2.5V. Current flowing from IP+ towards IP− raises the output above the midpoint; current in the opposite direction lowers it.
For the bidirectional versions:
VOUT = (VCC / 2) + (Sensitivity × Current)
The sensitivity is ratiometric with the sensor supply. At a nominal 3.3V supply, the corresponding sensitivity is approximately 26.4mV/A for the 050B and 13.2mV/A for the 100B.
Unidirectional ACS758 versions ending in U have a different zero-current output and different sensitivity. Do not use the 050B or 100B sensitivity values for a U version.
Module Connections
Follow the labels printed on the module. CJMCU-758 boards normally provide three low-voltage signal connections and two large high-current connections.
| Module Label | Function | Notes |
|---|---|---|
| VCC | Sensor power | 3.0–5.5V DC; 5V is recommended for the Arduino UNO example |
| GND | Signal ground | Connect to controller ground |
| OUT | Analogue output | Connect to an ADC input |
| IP+ | High-current path | Positive-current entry direction |
| IP− | High-current path | Positive-current exit direction |
Do not connect IP+ and IP− directly across a power supply. The ACS758 contains a very low-resistance current conductor, so connecting the current path across a source would effectively create a short circuit.
Arduino UNO Wiring
No external Arduino library is required. The module produces an analogue voltage that can be read directly with analogRead().
| CJMCU-758 | Arduino UNO | Function |
|---|---|---|
| VCC | 5V | Sensor power |
| GND | GND | Signal-side ground |
| OUT | A0 | Analogue current signal |
Connect the Current Path
For a simple low-voltage DC test, connect the sensor in series on the positive side of the load:
Power supply + → IP+ → IP− → Load → Power supply −
The load supply does not need to share its ground with the Arduino simply for the ACS758 measurement. Keep the high-current wiring completely separate from the small VCC, GND and OUT signal connections.
The small header pins are only for VCC, GND and OUT. Never route the measured load current through the signal header. Use adequately sized cable and secure connections at the large IP+ and IP− terminals.
Arduino DC Current Test
This example automatically measures the zero-current offset at startup and then displays signed DC current in the Serial Monitor. There must be no current flowing through IP+ and IP− during the startup calibration.
Set SENSITIVITY_MV_PER_A to 40.0 for an ACS758LCB-050B or 20.0 for an ACS758LCB-100B.
const int SENSOR_PIN = A0;
// ACS758LCB-050B: 40.0 mV/A
// ACS758LCB-100B: 20.0 mV/A
const float SENSITIVITY_MV_PER_A = 40.0;
// Arduino UNO uses a 10-bit ADC: 0 to 1023.
// Sensor VCC and the ADC reference are both taken from the UNO 5V rail.
const float ADC_COUNTS = 1023.0;
const float NOMINAL_REFERENCE_MV = 5000.0;
float zeroAdc = 512.0;
float readAverageAdc(int samples) {
unsigned long total = 0;
for (int i = 0; i < samples; i++) {
total += analogRead(SENSOR_PIN);
}
return (float)total / samples;
}
void setup() {
Serial.begin(9600);
Serial.println("ACS758 current sensor");
Serial.println("Keep the measured circuit at 0 A during calibration...");
delay(2000);
zeroAdc = readAverageAdc(500);
Serial.print("Zero ADC value: ");
Serial.println(zeroAdc, 2);
}
void loop() {
const float countsPerAmp =
(SENSITIVITY_MV_PER_A / NOMINAL_REFERENCE_MV) * ADC_COUNTS;
float adcValue = readAverageAdc(64);
float currentA = (adcValue - zeroAdc) / countsPerAmp;
Serial.print("Current: ");
Serial.print(currentA, 2);
Serial.println(" A");
delay(250);
}
Expected Result
With no current flowing, the displayed value should remain close to 0A. A small fluctuating value is normal because of sensor and ADC noise.
When current flows from IP+ to IP−, a bidirectional B version should report a positive value. Reversing the current direction should produce a negative value.
The real zero-current output has device offset, temperature drift, ADC error and supply tolerances. Measuring the actual zero point at startup usually gives much better practical results than simply assuming an ADC value of 512.
Measuring AC Current and RMS
The ACS758 can sense AC because the output moves above and below the zero-current midpoint. Simply averaging the signal from a symmetrical AC waveform will produce approximately 0A, so AC measurement normally requires an RMS calculation.
The following example samples for 500ms and calculates RMS current. Keep the measured circuit at 0A during the initial zero calibration.
#include <math.h>
const int SENSOR_PIN = A0;
// ACS758LCB-050B: 40.0 mV/A
// ACS758LCB-100B: 20.0 mV/A
const float SENSITIVITY_MV_PER_A = 40.0;
const float ADC_COUNTS = 1023.0;
const float NOMINAL_REFERENCE_MV = 5000.0;
const unsigned long SAMPLE_WINDOW_MS = 500;
float zeroAdc = 512.0;
float readAverageAdc(int samples) {
unsigned long total = 0;
for (int i = 0; i < samples; i++) {
total += analogRead(SENSOR_PIN);
}
return (float)total / samples;
}
void setup() {
Serial.begin(9600);
Serial.println("ACS758 RMS current measurement");
Serial.println("Keep the measured circuit at 0 A during calibration...");
delay(2000);
zeroAdc = readAverageAdc(500);
Serial.print("Zero ADC value: ");
Serial.println(zeroAdc, 2);
}
void loop() {
const float countsPerAmp =
(SENSITIVITY_MV_PER_A / NOMINAL_REFERENCE_MV) * ADC_COUNTS;
float sumSquares = 0.0;
unsigned long sampleCount = 0;
unsigned long startTime = millis();
while (millis() - startTime < SAMPLE_WINDOW_MS) {
float adcValue = analogRead(SENSOR_PIN);
float instantaneousCurrent =
(adcValue - zeroAdc) / countsPerAmp;
sumSquares += instantaneousCurrent * instantaneousCurrent;
sampleCount++;
}
float rmsCurrent = 0.0;
if (sampleCount > 0) {
rmsCurrent = sqrt(sumSquares / sampleCount);
}
Serial.print("RMS current: ");
Serial.print(rmsCurrent, 2);
Serial.println(" A");
delay(250);
}
Expected Result
With no load current, the result should be near 0A but may show a small RMS value because noise is also squared by the calculation. When an AC load is operating, the displayed value should increase to approximately the RMS current through the sensor.
The ACS758 IC itself provides galvanic isolation, but the isolation rating of the complete CJMCU-758 PCB, mounting arrangement, soldering, wiring and enclosure has not been established here. Use low-voltage circuits for learning and bench testing. Mains and other hazardous-voltage installations require appropriately rated equipment and qualified design practices.
ADC Resolution, Calibration & Accuracy
The classic Arduino UNO uses a 10-bit ADC, giving values from 0 to 1023. With a nominal 5V reference, one ADC count represents approximately 4.89mV.
| Variant | 5V Sensitivity | Approx. UNO Counts per Amp | Ideal Current per ADC Count |
|---|---|---|---|
| ACS758LCB-050B | 40mV/A | 8.18 counts/A | 0.122A/count |
| ACS758LCB-100B | 20mV/A | 4.09 counts/A | 0.244A/count |
These figures describe the ideal ADC step size, not guaranteed measurement accuracy. Sensor noise, zero-current offset, temperature, ADC noise, supply quality, wiring and magnetic interference can all affect the practical result.
Improving Low-Current Measurements
- Calibrate the zero-current offset with no current flowing.
- Average multiple ADC readings for slowly changing DC loads.
- Keep OUT wiring short and away from motors, switching nodes and high-current conductors.
- Use a clean sensor supply and good local supply decoupling.
- If the module does not already provide suitable bypassing, a 100nF capacitor close to VCC and GND follows the ACS758 datasheet application guidance.
- For substantially better low-current resolution, consider an external higher-resolution ADC or a current sensor with a lower full-scale range.
The ACS758 is factory trimmed for operation at 5V. It can operate from 3.0V to 5.5V and its output is ratiometric, but additional error can occur when operating away from 5V.
Using 3.3V Controllers
The ACS758 sensor IC can operate from a 3.3V supply. This is useful with controllers whose ADC inputs must not exceed approximately 3.3V.
| Variant | Nominal Zero at 3.3V | Approx. Sensitivity at 3.3V |
|---|---|---|
| ACS758LCB-050B | 1.65V | 26.4mV/A |
| ACS758LCB-100B | 1.65V | 13.2mV/A |
A bidirectional ACS758 operated from 5V can produce an output well above 3.3V at positive current. Powering the sensor from the controller's 3.3V rail keeps the ratiometric output in the corresponding 3.3V range, provided the controller supply can meet the sensor requirements.
ADC resolution, reference voltage and analogue-input behaviour differ between ESP32, STM32 and other controllers. Recalculate the conversion for that controller rather than copying the Arduino UNO ADC constants unchanged.
Standard Raspberry Pi boards do not provide a general-purpose analogue input for reading OUT directly. Use a suitable external analogue-to-digital converter between the sensor and Raspberry Pi.
Troubleshooting
Reading is not close to zero with no current
- Make sure no current is flowing during startup calibration.
- Check VCC, GND and OUT wiring.
- Allow the sensor supply to settle before calibration.
- Keep the module away from strong magnets and high-current conductors that are not part of the measured path.
- Average additional samples if the reading is fluctuating.
Current has the correct size but the wrong sign
- Check the IP+ and IP− direction.
- For the bidirectional B versions, current from IP+ towards IP− produces the positive output direction.
- If your installation requires the opposite physical direction, either reverse the primary connections or reverse the sign in software.
Reading is approximately half or double the expected current
- Read the complete IC marking.
- Use 40mV/A for the ACS758LCB-050B at 5V.
- Use 20mV/A for the ACS758LCB-100B at 5V.
- Do not use these values for unidirectional U variants.
DC code shows about zero when measuring AC
- This is expected for a symmetrical AC waveform because positive and negative current average towards zero.
- Use the RMS example in this guide instead of averaging signed current.
Output is noisy
- Check that VCC and GND are stable.
- Keep the analogue signal wiring short.
- Keep OUT away from motor wiring, switching power supplies and other high dV/dt or high-current conductors.
- Average multiple readings for DC measurements.
- Check for suitable supply bypassing close to the sensor module.
Reading stops increasing at high current
- Confirm that the correct 50A or 100A sensor variant is fitted.
- Check whether the analogue output is approaching the ADC input limits.
- Confirm that the sensor supply remains stable under load.
- Do not exceed the measurement range simply because the physical current conductor can survive a larger short-duration current.
Module or connections become hot
- Disconnect power and inspect the high-current connections.
- Use conductors and joints appropriately sized for the actual current.
- Do not assume a ±50A or ±100A measurement range guarantees that the complete breakout can carry that current continuously.
- Check the load for excessive or fault current and provide appropriate circuit protection.
CJMCU-758 modules may be supplied with different ACS758 current ranges, and breakout-board construction can vary. Verify the full IC marking before selecting the sensitivity in software. The high-current path must be connected in series using appropriately rated wiring and protection. Although the ACS758 IC contains galvanic isolation, do not assume the complete breakout board is certified or suitably constructed for hazardous or mains voltages.