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

Support for SAM D21 based microcontrollers (Arduino Zero) #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

floriaanpost
Copy link

This pull request adds support for SAM D21 based microcontrollers. It was tested with a Sodaq Sara 412 AFF board, but it should work with an Arduino Zero as well, but I don't have one around. A voltage divider is needed to make incoming communication from the thermostat work. The only change in the code is interrupt code specific for SAM D21.

@jpraus
Copy link
Owner

jpraus commented Feb 22, 2021

Thank you! Will merge it into the library. What voltage divider is needed and where?

@floriaanpost
Copy link
Author

The issue was that the voltage at MASTER-IN was about 1.2V for a low bit (if I remember correctely) which is not low enough for the SAMD21 processor to be seen as a logical low. I used a voltage divider from that pin to ground, with resistors of equal size to scale it down to half that voltage. But maybe you have a better solution?

@IgorYbema
Copy link

The issue was that the voltage at MASTER-IN was about 1.2V for a low bit (if I remember correctely) which is not low enough for the SAMD21 processor to be seen as a logical low. I used a voltage divider from that pin to ground, with resistors of equal size to scale it down to half that voltage. But maybe you have a better solution?

I believe this #20 (comment) fixes this also

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 this pull request may close these issues.

None yet

3 participants