Code Monkey home page Code Monkey logo

ch552-power-monitor's Introduction

CH552 Power Monitor

A tiny low-cost voltmeter and ammeter by CH552 & INA219. The meter uses INA219 to measure voltage, current, and power. 3 current sensing shunt resistors are used to measure current from 1 mA to 3.2 A.

CH552-Power-Monitor

Current Sensing Shunt Resistors

To increase measurement accuracy in different ranges, 3 current sensing shunt resistors are used, the VCC voltage drop and the shunt resistor power consumption are also controlled.

# Resistor Power Rating Tolerance Package Current Sensing Range Voltage Drop
0 0.1 Ω 2W ±1% 2512 (80 mA, 3.2 A) (0.008 V, 0.32 V)
1 1 Ω 1/4W ±1% 1206 (8 mA, 100 mA) (0.008 V, 0.10 V)
2 10 Ω 1/8W ±0.1% 0805 [1 mA, 10 mA) (0.010 V, 0.10 V)

Switching Shunt Resistors

P-channel MOSFETs are used to switch the shunt resistors on the high-side, the voltage sampling point is placed between the shunt resistor and the the MOSFET to eliminate the voltage drop on the MOSFET, this is important especially for small shunt resistor like 0.1 Ω.

Equivalent Shunt Resistor Switching Schematic

Equivalent Shunt Resistor Switching Schematic

Shunt Resistor Switching Strategy

  • When powers up, the smallest shunt resistor is switched on to avoid the risk of high current through the circuit.
  • If the measured current is out of the range of the current shunt resistor, turn on the shunt resistor next to it first and then turn off the current shunt resistor, by doing this the load will not be interrupted.
  • To avoid the shunts switching back and force on a swing current, keep a 20% transition hysteresis.

Shunt Resistor Transition Hysteresis

P-channel MOSFET Selection

  • Vds should be higher than the maximum voltage to measure.
  • Id should be higher than the maximum current to measure.
  • Vgs(th) should be as small as possible, so the MOSFET can saturate in a low supply voltage.
  • Rds(on) should be small enough to reduce voltage drop to the load.

CJ3401 is selected consider it satisfied the conditions above and its low cost.

Schematic

schematic

PCB

PCB Top

PCB Bottom

PCB Botton 3D

References

ch552-power-monitor's People

Contributors

limingjie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.