4
\$\begingroup\$

I am currently trying to make a game console out of a Raspberry Pi 4 and a hard drive, with an Arduino to control boot, shutdown or reset, plus temperature.

I got a degree in engineering in electronics and embedded systems, however I could not practice my skills for a while (world is governed by code today) and would like to implement some features, such as current monitoring. As far as I know the best way to do that in my case is through a shunt on the 5V line, measure the voltage difference at the sides with an ADC and estimate it.

Would a resistor of 0.1Ω be ok for this? Such as one like this:

Resistor 2W

I found some limited to 2W, if we consider a current of 3A maximum, that's a voltage drop of 0.3V and power dissipated of 0.9W, I can compensate for the voltage drop so this is fine.

My calculation gives me a step of 5mV with the 10 bits ADC of Arduino, which would mean I can measure current with a 50mA resolution; not very precise but I just need to know if I am in the 200mA or 2A range while using it.

This project is just for fun and practicing, not something serious, so precision or safety is not a big concern.

\$\endgroup\$

1 Answer 1

4
\$\begingroup\$

You sure can. Normally you amplify the voltage before measuring it though. The easiest location to measure is to put the resistor in the ground path so you can process the voltage across the resistor easily, but then this disrupts the ground connection which is bad. Putting it on the high-side means you need a diff-amp to produce a ground referenced signal.

\$\endgroup\$
8
  • \$\begingroup\$ Would you recommand a particular opamp for that ? \$\endgroup\$
    – Varech
    Dec 19, 2019 at 18:23
  • 3
    \$\begingroup\$ Best read up around four-terminal sensing, too, if you want to do a proper job. \$\endgroup\$ Dec 19, 2019 at 19:25
  • 3
    \$\begingroup\$ @Varech It's a specialized task that is common enough that there are ICs specially made for the task so you don't need to use op-amps. The application requires high common mode voltages and good CMR which can be difficult to find in regular op-amps. The ICs are called things "high-side current sense diff amps" or something along those lines. \$\endgroup\$
    – DKNguyen
    Dec 19, 2019 at 19:32
  • 3
    \$\begingroup\$ There are chips especially for this, such as uk.rs-online.com/mobile/p/current-sensing-amplifiers/1784576 ncs215r \$\endgroup\$ Dec 19, 2019 at 19:53
  • 2
    \$\begingroup\$ Sinking 0.9watts into a 15watt load just for current measurement is not really necessary. Either get a lower value shunt or use 3 of them in parallel to get 0.03ohm... \$\endgroup\$ Dec 21, 2019 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.