Skip to content

Default I2C Address changed? #46

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
FoamyGuy opened this issue Dec 30, 2024 · 3 comments · Fixed by #49
Closed

Default I2C Address changed? #46

FoamyGuy opened this issue Dec 30, 2024 · 3 comments · Fixed by #49

Comments

@FoamyGuy
Copy link
Contributor

@ladyada

The default I2C address used by this library is 0x0C

The new MLX9093 that I received recently has the address 0x18. I was able to successfully test the example code in the repo and changes for PRs by using address=0x18, in the initialization. A0 and A1 jumpers are in default out of box state.

In the datasheet here: https://cdn-learn.adafruit.com/assets/assets/000/069/600/original/MLX90393-Datasheet-Melexis.pdf?1547824268 It contains a table that shows a range of possible addresses which does include one variation that would have address 0x18 if I understand correctly.

image

@brian-eng
Copy link
Contributor

Yes, all the sensors I've gotten use 0x18 as the base address, which matches what the product page says.

https://www.adafruit.com/product/4022

As of May 1, 2023 - Please note that based on chip shortages we are now shipping with default 'base' address of 0x18 not 0x0C

So to use this library with any of the recent chips you need to include address = 0x18 as part of the settings you pass when initializing.

I'm not sure what the default should be, but there probably should at least be something in the README about using a different address as the usage example won't work on any newer chips.

@caternuson
Copy link
Contributor

Agree, probably would help to update some of the info to provide better awareness of this change. Maybe even update the example program. Shouldn't require any code changes to the library itself since it's just a matter of passing in the alt address. But currently, this is only documented as a footnote on the product page. (thanks for pointing that out @brian-eng)

@ladyada
Copy link
Member

ladyada commented Jan 31, 2025

@FoamyGuy please update the examples
https://github.com/adafruit/Adafruit_CircuitPython_MLX90393/blob/main/examples/mlx90393_simpletest.py
to have it check both I2C addresses

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

Successfully merging a pull request may close this issue.

4 participants