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

INA219 not working/recognized #3

Open
Martius108 opened this issue May 6, 2024 · 3 comments
Open

INA219 not working/recognized #3

Martius108 opened this issue May 6, 2024 · 3 comments

Comments

@Martius108
Copy link

Martius108 commented May 6, 2024

Hello,

I built up everything on a breadboard and run all components on 3.3 V. The display shows the initial values as long as only the ATtiny85 is attached to it. As soon as I connect the INA219 the display shows nothing. I have the pins A0 and A1 connected to ground so I had a look into your sketch and found out that you set the I2C address to 0x80, but in my case it should be 0x40, right? But that wasn’t the solution unfortunately. Any idea what else could be the issue here?

When I wrote my first issue here I had a ready made INA219 module attached without any problem. Everything was running on 5V. But now I use the INA chip just with the shunt and a 100 nF capacitor attached.

@wagiminator
Copy link
Owner

The firmware uses the address with the write bit, so 0x80 = (0x40 << 1) | 0 is correct. You must have made something wrong in the wiring, maybe on the I2C bus because the OLED stopped to work.

@Martius108
Copy link
Author

Thank you. The wiring was ok, but under the magnifying glass I found a little shortcut at the INA chip. It’s not so easy to hand solder a SOT-23 :)

@wagiminator
Copy link
Owner

You're right, I also have my difficulties with that!

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