To digitize a 1500W analog AC load using an analog to digital converter circuit on a standard 120V single-phase system, the ADC must be scaled to read 12.5A RMS (assuming a Power Factor of 1.0). The foundational power conversion formula is P = V × I × PF. Substituting our target values: 1500W = 120V × I × 1.0, which yields an analog current I = 12.5A. Your ADC (such as a 16-bit TI ADS1115) must then map this 12.5A analog signal—stepped down via a current transformer like the YHDC SCT-013-000—into a digital count between 0 and 32767. This direct conversion allows your microcontroller to log real-world energy consumption accurately.

The Core ADC Scaling Formula and Assumptions

When designing an energy monitoring frontend, the digital output is only as reliable as the analog assumptions fixing your baseline. Three variables lock in your conversion accuracy: nominal RMS voltage, phase topology, and Power Factor (PF).

The most critical assumption is the Power Factor. If you are measuring a purely resistive load (like a space heater or incandescent bulb), PF is 1.0, and Apparent Power (VA) equals Real Power (Watts). However, if the load is highly inductive and the PF is unknown, converting analog V and I directly to real Watts is meaningless. You will only be able to calculate Apparent Power. For example, an unloaded AC compressor motor might draw 10A at 120V (1200VA), but with a PF of 0.4, it only consumes 480W of real power. Without a dedicated phase-shift measurement circuit or a specialized metrology IC, your digital output will drastically overstate actual consumed energy.

Furthermore, the analog frontend must condition the mains signal to fit the ADC's input range. A standard SCT-013-000 current transformer outputs 50mA at its 100A rating. For a 20A maximum measurement range, the secondary current is 10mA RMS. To map this to the ±4.096V full-scale range of an ADS1115, you need a burden resistor calculated via Ohm's law: R = V / I = 4.096V / 0.010A = 409.6Ω. In practice, you would install a standard 390Ω or 430Ω 1% tolerance resistor, as detailed in the OpenEnergyMonitor CT sensor guide.

How the Conversion Shifts: 120V, 230V, and 3-Phase Systems

Treating a single-voltage conversion as universal is a common bench mistake. The analog current required to produce 1500W shifts dramatically depending on your regional mains supply and phase configuration.

120V vs 230V Single-Phase:
At 230V (the standard in the UK, EU, and Australia), the same 1500W load draws only 6.52A (1500W / 230V). If you use the same 430Ω burden resistor designed for a 120V/20A system, your ADC will only utilize about 30% of its dynamic range, severely degrading your Least Significant Bit (LSB) resolution. You must swap to a higher value burden resistor or adjust the ADC's internal Programmable Gain Amplifier (PGA) to a ±2.048V or ±1.024V full-scale setting to maintain precision.

3-Phase Systems:
I = P / (V_LL × √3 × PF). Substituting the values: I = 1500 / (208 × 1.732 × 1.0) = 4.16A. A single-channel ADC is no longer sufficient here. You must either multiplex three separate ADC channels (sampling sequentially, which introduces phase-angle errors) or upgrade to a dedicated 3-phase metering IC like the Microchip ATM90E36, which handles simultaneous sampling and hardware-based PF calculations.

ADC Resolution Table: Neighboring Power Values

The table below maps the ±20% power range around our 1500W baseline. This helps verify if your chosen ADC bit-depth provides enough granularity for your target application. The digital counts assume a 16-bit signed ADC (max positive value 32767) scaled to a 20A maximum current limit, meaning 1A equals approximately 1638 digital counts.

Real Power (W) Analog Current @ 120V (A) Analog Current @ 230V (A) 16-Bit ADC Count (20A Max Scale)
1200W (-20%) 10.00A 5.22A 16384
1350W (-10%) 11.25A 5.87A 18432
1500W (Baseline) 12.50A 6.52A 20480
1650W (+10%) 13.75A 7.17A 22528
1800W (+20%) 15.00A 7.83A 24576

Notice the ADC count for the 230V system at 1200W is only 8552 (calculated as 5.22A × 1638). If you need to detect 10W changes at 230V, a 16-bit ADC is mandatory; a standard 10-bit or 12-bit ADC will suffer from quantization noise that masks small load variations.

Frequently Asked Questions

How do I choose the right bit-resolution for my analog to digital converter circuit?

Bit-resolution dictates your voltage step size (LSB). A 12-bit ADC has 4096 steps, while a 16-bit ADC like the TI ADS1115 offers 65536 steps. For mains power monitoring where you need to resolve small standby loads (e.g., a 5W phone charger drawing ~0.04A at 120V), a 16-bit external ADC is required. If you only need to trigger a relay when a heavy load (like a 2000W heater) turns on, a 12-bit ADC is sufficient and much cheaper.

Why does my ADC circuit read noisy values when measuring AC mains voltage?

Mains environments are electrically hostile, filled with EMI from switching power supplies and motor brushes. If your ADC counts are jumping erratically, check your analog frontend. First, ensure your voltage divider and CT burden resistors are physically placed as close to the ADC pins as possible to minimize antenna loops. Second, implement a hardware low-pass RC filter (e.g., a 100Ω resistor and 100nF ceramic capacitor) on the ADC input to strip high-frequency switching noise before it hits the sampling capacitor. Finally, use twisted-pair wiring for your sensor leads.

Can I use a standard microcontroller internal ADC for accurate mains power conversion?

Generally, no. While the ESP32 features an internal 12-bit SAR ADC, it is notorious for non-linearity, particularly above 2.5V, and suffers from significant noise when the WiFi radio is transmitting. Its effective resolution often drops to 9 or 10 bits in real-world RF environments. For reliable AC power conversion, bypass the internal ADC entirely and use an external I2C/SPI ADC with a dedicated voltage reference and PGA, or step up to a dedicated energy metrology chip that handles RMS and PF calculations in silicon.