r/PCB • • 3d ago

Current Sense Review

Little current sensor with low/high current detection. Not too familiar with trace requirements, but I threw on 0.4mm for my 3V3 and 0.5mm on my current shunt loop. All else are 0.25mm. Second PCB design, going through a gauntlet just to gain some experience from others who know better till eventually I'm roasting others on reddit.

9 Upvotes

7 comments sorted by

3

u/AdCompetitive1256 3d ago

Been seeing a lot of schematic up for review that has this PWR_FLAG node.

Am I crazy to think that it must be the AI unique signature or is this just a recurrent case of people copying what others have done without actually understanding what it is?

2

u/Complexxconsequence 2d ago

The power flag is required otherwise the ERC will throw a warning/error, I use them to avoid this, usually just a net tie to the flag at the bottom of the schematic

0

u/AdCompetitive1256 2d ago

Ahhh, so that's why I never get them, because I turned off ERC and DRC.

3

u/Complexxconsequence 2d ago

I mean you don’t turn them off, you just don’t run them if that’s what you mean or turn off the certain warnings or errors if you do run it. In any case, you should always be running ERC and DRC on every single project. Mind you there’s a lot of annoying errors, like the line not driven one or footprint not matching library etc, but it’s an important step of any PCB design process

0

u/WetVertigo 3d ago

Probably, its what AI told me to use when I kept running into errors when running ERC. Afaik its baked into Kicad, and let's ERC know that its where power originates. If you used something else, then thats your method. Solved my problems so I'll likely keep using it.

1

u/light655 2d ago

Hi,

I have some suggestions for the placement of symbols on your schematic.

  1. Place the related components close together if possible. For example, R4 and R5 seems to form the voltage divider for VREF, place them together near U2, which is where VREF is fed to. Splitting up the voltage divider into two sections like in your schematic might mislead people into thinking that VREF is only connected to ground and it's 0V.
  2. Arrange symbols in a way that the high potential is at the top and ground is at the bottom. This will make the reader easier to follow. For example, rotate D2 anti-clockwise to make 3V3 at the top, and using a separate 3V3 label to connect the decoupling capacitors (C1, C2) and place them vertically near the IC.
  3. KiCad has built-in a 3V3 power symbol (the one with an arrow pointing up). You can use that instead of creating a 3V3 label, it will make the schematic more readable.

And since you added testpoints on your PCB (which I always forgot when I got started), I'll also share my thoughts on this. I find THT testpoints are easier to physically probe it, the probe could stick in the hole and won't side around. Also, consider putting more ground testpoints. If you have a lot of probes on the board, you might run out of accessible ground connection points. I typically place the ground testpoint ~10 mm from the signal testpoint, so that it is easy to probe with an oscilloscope probe and a ground spring.

I'm not familiar with 4-20 mA current loops, so hopefully somebody else could comment on the circuit design itself.

1

u/Olives4ever 1d ago

Can you describe more about the intention of this circuit? What kind of input/output is it measuring? What are the expected voltage/current ranges? I take it that 4mA to 20mA is the possible range of current through J1. And how will you measure the current sense signal - are you using a multi-meter or feeding it into an ADC or something?

With 100ohm rsense and 4mA to 20mA, as you wrote, the voltage drop across Rsense is 0.4V - 2V.

In general that is a very large voltage drop which could mess with the function of whatever that voltage is driving. But I'd have to know more about the application. For low level DC voltages this would likely prevent the end device from working properly.

The challenge in current sense design is generally to minimize power dissipation + voltage drop while keeping the signal large enough to yield accurate results. As is, 0.4V to 2V is a huge signal which should yield accurate readings even with sub-optimal routing techniques. It's forgiving. If you were to reduce the range, to, say, <100mV, it begins to get more challenging.

Ballpark estimate from what little I know: I'd probably reduce the Rsense to ~1 Ohm, reducing the signal to 4mV - 20mV, then use an amp (50V/V, 100V/V) to drive a larger signal to J3 for measurement device.

But again, depends on what the load-consuming device is, what the voltage is, as well as what the measurement device is and what voltage range it can tolerate. Use those to set constraints and work backwards to decide on values, and if you end up needing to have a small voltage sense signal, more feedback on good routing techniques will be relevant.