Electronics > Microcontrollers

Measuring current with a microcontroller

<< < (5/5)

I don't understand why anyone would use those single sourced and expensive Hall current probes, unless they want galvanic isolation, or don't care about costs or long term manufacturing.

But in this case we have so little information on the OP's criteria.

Avelino Sampaio:
The ACS712, 30A version, seems to serve its purpose very well. Its cost is 2$ at LCSC.


Thanks everyone, i decided to bought 2 resistor SMD, one is 4 terminal and the other 2. I will check how much this changes and if its convinient to buy a 4 terminal resistor. Then i bought 3 dedicated op amps, TSC210 ( 200 Gain ), ACS712ELCTR-30A-T ( 30A version ) and INA199C3 ( 200 gain ). With them and some LM358 that i have i will be testing the reliability and precision in all of them. I will be back after checking all of this. Thank you for you help!

You can't derive precision or reliability from just a few parts. For determining the resulting precision of your design, you'll need to work with the worst case specs (spread and temperature coefficients) in the datasheet and do the math.

A problem with the ACS712ELCTR and related devices is that the output depends on the supply voltage so you'll need to power it using a voltage reference chip in order to achieve the specs from the datasheet. Normal regulators are 1% at best (typically 2% to 3%). Alternatively you can use the same supply as the reference for de ADC; the error will cancel in that case.

Why not just use a digital current/voltage sensing chip like the INA219 or INA226. They’re better than the ADCs in a MCU.

Or, if this is for lithium batteries, please just use a lithium charging chip with appropriate protection ICs.


[0] Message Index

[*] Previous page

There was an error while thanking
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod