Skip to content

Low current reading #8

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

Closed
bobemoe opened this issue Apr 18, 2024 · 1 comment
Closed

Low current reading #8

bobemoe opened this issue Apr 18, 2024 · 1 comment

Comments

@bobemoe
Copy link
Contributor

bobemoe commented Apr 18, 2024

Using this lib on STM32F411 blackpill to read current from a ACS37800KMACTR-090B3-I2C and am getting reading approx one third of what it should be reading!

We are looking to replace an ACS758 with this on an existing project so we know the main project is working and what epected results should be.

I've tried 2 different projects with distinct STM/ACS etc, one is reading from a 24V DC 200W current, and the other from a 5V 3W current. Both projects show the same issue of reading approx 1/3 lower than actual.

I'm only reading current and haven't set up the voltage divider yet but cant see how that would matter?

I've not tried any other libs yet or ruled out much but am posting here to see if there are any known issues.

I'm using the code from example1 in this repo.

Chip is powered from same 3.3v as the STM.

I thought the chips were factory calibrated and ready to go! Not sure what I could be doing wrong?

Any ideas? Thanks.

@bobemoe
Copy link
Contributor Author

bobemoe commented Apr 18, 2024

Ahha, found it! I needed to add mySensor->setCurrentRange(90); to set the current range for my chip!

May be nice to add this (commented out) to the example?

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

1 participant