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

tcn75a nerves rpi2 #1

Open
alpa669 opened this issue Jan 2, 2023 · 4 comments
Open

tcn75a nerves rpi2 #1

alpa669 opened this issue Jan 2, 2023 · 4 comments

Comments

@alpa669
Copy link

alpa669 commented Jan 2, 2023

Hi,
i have a system with raspberry 2, nerves and tcn75a but Circuits.I2C.detect_devices() command not return nothing device on i2c bus.
The sensor tcn75a is supported?

Thanks

@fhunleth
Copy link
Collaborator

fhunleth commented Jan 2, 2023

Hi @alpa669,

I haven't used the TCN75A, but I'd expect it to work fine with Nerves. The Circuits.I2C.detect_devices/0 function can't detect all devices so this might be one that doesn't work with it. I looked at the datasheet and didn't see any of the hints that it might not detect, though. Could you double check the wiring and try again? If it still doesn't detect, I'd try reading and writing to it. If it's like the other stealth devices that Circuits.I2C.detect_devices/0 doesn't detect, it will work.

@alpa669
Copy link
Author

alpa669 commented Jan 2, 2023

Hi fhunleth,
thanks for reply. I checked the wiring and the sensor is powered and connected at SCL and SDA of rpi2.
tcn75a
If it's a stealth device how to do discover proper address?
Thanks

@fhunleth
Copy link
Collaborator

fhunleth commented Jan 2, 2023

It would be in the documentation for the board that you have. I'd assume you'd get that from www.microbot.it.

Looking at the TCN75A datasheet, my guess is that it's 0b1001000 (binary), so 0x48 in hex. That's on page 11. The address is settable, though, so www.microbot.it should have the best answer. If it's not 0x48, it will be one of the addresses between 0x49 and 0x4f inclusive.

@alpa669
Copy link
Author

alpa669 commented Jan 3, 2023

I'll try the [0x48..0x4f] address as you suggest.
Thanks

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