Author Topic: Measuring current with a microcontroller  (Read 1357 times)

0 Members and 1 Guest are viewing this topic.

Offline samu1214Topic starter

  • Contributor
  • Posts: 10
  • Country: ar
Measuring current with a microcontroller
« on: May 24, 2023, 03:36:27 pm »
Hi!

I'm doing a project that involves sensing current. I'm charging a battery and I need to control how much current and voltage I'm giving out.

I thought that it would be okay to use an SCR like a 40tps controlled by an MOC3021 optocoupler.

The part I have doubts about: I know because of common-mode voltage that current with a shunt and a simple operational amplifier has to be measured at the low side of the battery ( - ).

I saw a lot of circuits that are especially made for sensing the current with a external shunt, but do I need this if I'm okay with an error of about 3%? I want to measure around 30 A max and 1 A min. I saw some shunts of 0.5 mΩ and 9 W; that will be fine.

I have a lot of trouble to find and understand the dedicated amplifiers for that. Could you suggest a circuit with an LM358 for instance that will be good for my requirements or do I need a dedicated one?

Edit: I saw that the LM358 has an input offset of 2mV, and if i have 1Amp trough the SHUNT it will be 1mV, so its not enough... I saw something about the ACS711, what do you think about?

Thanks! ;D
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 10094
  • Country: us
Re: Measuring current with a microcontroller
« Reply #1 on: May 24, 2023, 04:23:26 pm »
I would be looking into High Side Current Sense Amplifiers.  There are many...

Here is a sample returned by Google:
https://www.mouser.com/new/stmicroelectronics/stm-tsc101-amplifier
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18929
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->