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

Add I2C tutorial #4

Open
fhunleth opened this issue Apr 18, 2021 · 2 comments
Open

Add I2C tutorial #4

fhunleth opened this issue Apr 18, 2021 · 2 comments

Comments

@fhunleth
Copy link
Contributor

I'm not sure what device to use, but it would be cool to get a simple tutorial that shows how to detect a device and doing doing something simple with it.

@takasehideki
Copy link
Contributor

I have a suggestion to the I2C device. How do you feel about Seeed Grove device?
We (NervesJP) have used the AHT20 I2C module at the hands-on tutorial for Nerves.
https://www.seeedstudio.com/Grove-AHT20-I2C-Industrial-grade-temperature-and-humidity-sensor-p-4497.html

It can obtain temperature and humidity at the same time though I2C communication. It is very inexpensive and enables highly accurate measurement. However, an additional shield such as Grove Base HAT is required to connect to the Raspberry Pi.

The code for the driver we developed can be found here (comment line is Japanese :)
https://github.com/NervesJP/nervesjp_basis/blob/main/lib/sensor/aht20.ex

If you like my idea, please give me a time to integrate this sample into Livebook. I wanna enjoy the development experience of Nerves Livebook.

@fhunleth
Copy link
Contributor Author

fhunleth commented May 6, 2021

I think that's a great device for a tutorial since it is both inexpensive and has a simple I2C interface. Thank you for the suggestion.

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