f32ef096a85beb7d4c8e73ab27fafa1dce47b3bc
fab-tools-dat/fab-tools-electronic-dat/meter-dat/meter-current-dat/meter-current-dat.md
| ... | ... | @@ -39,6 +39,56 @@ Shared power |
| 39 | 39 |  |
| 40 | 40 | |
| 41 | 41 | |
| 42 | +## selection |
|
| 43 | + |
|
| 44 | +- [[ADC-dat]] - [[ACS712-dat]] |
|
| 45 | + |
|
| 46 | +When measuring current in embedded electronics and microcontrollers, you generally choose between a dedicated **isolated Hall-effect sensor (like the ACS712)** and a **shunt resistor paired with an Analog-to-Digital Converter (ADC)**. |
|
| 47 | + |
|
| 48 | +Here is a breakdown of why you would choose the ACS712 over a standard ADC-based shunt measurement setup. |
|
| 49 | + |
|
| 50 | +--- |
|
| 51 | + |
|
| 52 | +## 1. Electrical Isolation (The Biggest Advantage) |
|
| 53 | +* **ACS712:** It uses a Hall-effect sensor, meaning the high-current path being measured is **physically and electrically isolated** from the low-voltage microcontroller side (up to 2.1 kV RMS isolation). If your high-voltage side spikes or shorts, your microcontroller remains completely safe. |
|
| 54 | +* **Normal ADC Reader:** A standard ADC measures current by reading the voltage drop across a shunt resistor ($\Delta V = I \times R$). Because the ADC pins must connect directly across this resistor, your sensitive microcontroller shares a common ground or electrical path with the high-current load. A massive surge can easily fry your chip. |
|
| 55 | + |
|
| 56 | +--- |
|
| 57 | + |
|
| 58 | +## 2. Low High-Side Insertion Loss |
|
| 59 | +* **ACS712:** The internal copper conduction path has an extremely low typical resistance of only **$1.2\text{ m}\Omega$**. This means it introduces negligible voltage drop into your target circuit and generates very little heat, even when running close to its maximum rated current (e.g., 5A, 20A, or 30A). |
|
| 60 | +* **Normal ADC Reader:** To get a clean, readable voltage signal for a standard ADC without a massive amplifier, you often need a larger shunt resistor value. A larger resistance increases the voltage drop (burden voltage) across the sensor, robbing power from your load and generating unwanted heat ($I^2R$ losses). |
|
| 61 | + |
|
| 62 | +--- |
|
| 63 | + |
|
| 64 | +## 3. High-Side and Low-Side Versatility |
|
| 65 | +* **ACS712:** Because the sensing mechanism is based on magnetic fields rather than direct voltage reference, you can place the ACS712 anywhere in the loop—either on the **high-side** (before the load) or the **low-side** (after the load/before ground)—without changing your code or hardware topology. |
|
| 66 | +* **Normal ADC Reader:** Standard microcontrollers have single-ended ADCs referenced to ground, making them naturally suited only for *low-side* sensing. Doing *high-side* sensing with a normal ADC requires specialized, expensive differential operational amplifiers (Op-Amps) that can handle high common-mode voltages. |
|
| 67 | + |
|
| 68 | +--- |
|
| 69 | + |
|
| 70 | +## 4. Simplified Design (All-in-One Solution) |
|
| 71 | +* **ACS712:** It is a fully integrated IC. It combines the internal current conductor, Hall-effect element, filter circuitry, and a precise internal amplifier into a single SOIC-8 package. You get a clean, linearized analog voltage output proportional to the current ($V_{out} = \text{Offset} \pm (\text{Sensitivity} \times I)$). |
|
| 72 | +* **Normal ADC Reader:** Building a reliable shunt-based reader requires calculating precise resistor wattages, managing thermal drift of the shunt resistor, adding external operational amplifiers to scale the tiny millivolt drop up to the ADC’s dynamic range ($0\text{V} - 3.3\text{V}$ or $5\text{V}$), and implementing external filtering to kill high-frequency noise. |
|
| 73 | + |
|
| 74 | +--- |
|
| 75 | + |
|
| 76 | +## Comparison Summary |
|
| 77 | + |
|
| 78 | +| Feature | ACS712 (Hall-Effect IC) | Normal ADC + Shunt Resistor | |
|
| 79 | +| :----------------------- | :------------------------------------------------- | :------------------------------------------------------------------ | |
|
| 80 | +| **Electrical Isolation** | **Yes** (Galvanic isolation up to 2.1 kV) | **No** (Direct electrical connection) | |
|
| 81 | +| **Measurement Position** | High-side or Low-side seamlessly | Primarily Low-side (High-side requires extra components) | |
|
| 82 | +| **Component Count** | Extremely Low (IC + 1 or 2 bypass caps) | High (Shunt resistor + Op-Amp + Filter network) | |
|
| 83 | +| **Circuit Power Loss** | Extremely Low ($1.2\text{ m}\Omega$ internal path) | Higher (Depends on shunt resistor value) | |
|
| 84 | +| **AC/DC Capability** | Measures both AC and DC natively | Measures both, but AC requires complex software rectifying/sampling | |
|
| 85 | + |
|
| 86 | +--- |
|
| 87 | + |
|
| 88 | +### When should you *not* use the ACS712? |
|
| 89 | +While the ACS712 wins on isolation and simplicity, a standard ADC+Shunt setup is superior if you need **extreme precision at very low currents** (milliamps or microamps), or if your project is operating in an environment with high external magnetic interference (like right next to a massive brushless motor), which can throw off the Hall-effect sensor inside the ACS712. |
|
| 90 | + |
|
| 91 | + |
|
| 42 | 92 | ## ref |
| 43 | 93 | |
| 44 | 94 | - [[meter-current-dat]] - [[meter-voltage-dat]] |
| ... | ... | \ No newline at end of file |