Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max current #2

Open
dzid26 opened this issue Jun 10, 2023 · 5 comments
Open

Max current #2

dzid26 opened this issue Jun 10, 2023 · 5 comments

Comments

@dzid26
Copy link

dzid26 commented Jun 10, 2023

If the design uses CC6920BSO-5A, shouldn't the range be -/+5A?
The readme says +/-2.5A per phase

@zapta
Copy link
Owner

zapta commented Jun 11, 2023 via email

@dzid26
Copy link
Author

dzid26 commented Jun 11, 2023

It needs 5v supply to have the +/-5A range with 400mv/A sensitivity but in this design we run it on 3.3V only.

Are you saying that the real sensitivity of CC6920BSO-5A is 400mV/A ?
But as someone also pointed out (https://forum.duet3d.com/post/292525) the datasheet says 264mV/A. Which makes sense because this chip is designed for 3.3V.
And you mentioned in the forum that impedance maybe is not an issue..

@zapta
Copy link
Owner

zapta commented Jun 19, 2023

Yes, you are right, I may mixed it with another sensor.

BTW, I see that digikey carries now some Allegro GMR sensors, they have higher bandwidth and significantly lower noise. Ideally the +/-2.5A with 400mv/A, but the +/-5A with 200mv/A can still be more quieter than the one from JLCPCB.

file:///C:/Users/user/Downloads/ACS70331-Datasheet.pdf

(Having all the components available from JLCPCB was a key design goal here, hence the selection of the inferior current sensor. In previous designs which I soldered myself I used the Alegro ones, e.g. https://github.com/zapta/simple_stepper_motor_analyzer/blob/main/kicad/stepper_analyzer.pdf )

@dzid26
Copy link
Author

dzid26 commented Jun 20, 2023

Today I designed a voltage-measuring circuit that filters scales down, and offsets the phase voltage. It is using a differential opamp configuration - so the ground doesn't have to be connected.
image
https://everycircuit.com/circuit/5156012797198336/biased-differential-amplifier-

I don't know how noisy it will be and what can be done with it, but power calculation should be possible.

But now I am thinking - it would be interesting to use the same structure (but with different gain and less filtering) to also measure current across 0.1ohm shunt resistors. I think I will put it in parallel with CC6920BSO to compare the noise of both solutions.

I wonder if the noise you mention is also related to flawed ADC from ESP32 and additionally lack of filtering of analog VDD3p3 in Wroom module. Would be cool to replace it with a custom design, but I have enough of Kicad.

@zapta
Copy link
Owner

zapta commented Jun 20, 2023

I believe that the noise is dominated by the JLCPCB current sensor because when I hooked the ESP32 to a ACS70331 +/-2.5A the noise reduction was very visible.

As for your circuit, one thing that the magnetic current sensors provide is galvanic isolation which the opamp circuit doesn't provide, so make sure to get the connections and voltages right so you don't damage anything or experiment with an ESP32 that runs on a battery.

There are also isolated amplifiers if you want to get fancy ;-). Never used them but they seem interesting. E.g. https://www.ti.com/product/AMC3311-Q1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants