Skip to content

UNO R4 access to DS1307 only works if board is used as a master exclusively #180

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
Pascal2739 opened this issue Nov 8, 2023 · 5 comments · Fixed by #191
Closed

UNO R4 access to DS1307 only works if board is used as a master exclusively #180

Pascal2739 opened this issue Nov 8, 2023 · 5 comments · Fixed by #191
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Pascal2739
Copy link

Pascal2739 commented Nov 8, 2023

Hello, for several years, I have been working with UNO R3 cards linked together by an I2C bus. Each of these cards are used alternately as a “Master” component and a “Slave” component. In my sketch, the Wire library is declared "slave" by the Wire.begin(address) instruction and everything works without a hitch. Recently, I purchased a UNO R4 card and it too will be integrated into my I2C network. On the I2C bus, a DS1307 real-time clock is installed which works perfectly with UNO R3 or MEGA cards. However, on the R4, access to the DS1307 only works if the card is declared as a master component exclusively (Wire.begin()). I tried using the Wire.end() function, but it had no effect. Does anyone have an idea to resolve this problem? THANKS

@aentinger
Copy link
Contributor

Hi @maidnl ☕ 👋

Can you please take a look at this?

@per1234 per1234 changed the title Arduino UNO R4 and Wire library UNO R4 access to DS1307 only works if board is used as a master exclusively Nov 9, 2023
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Nov 9, 2023
@maidnl
Copy link
Contributor

maidnl commented Nov 10, 2023

@Pascal2739 @aentinger
The PR #182 should solve this problem (it was not possible to switch role on I2C bus). Please let give a try and let me know. Thanks.

@Pascal2739
Copy link
Author

Thank you, however, having no skills in using GITHUB (this is my first time using it), what should I do with the pieces of code? Do they replace lines of code in the library?. I'm really sorry I don't understand, but usually I never modify libraries. Thank you again for your attention.

@maidnl
Copy link
Contributor

maidnl commented Nov 10, 2023

@Pascal2739 no problem at all. Just wait then... the fix will be evaluated by my colleagues and if it works as expected it will be integrated (this however will take some times, so be patient). At the end you will see in the IDE you are using that an update is available, at this point if you install the update your R4 will (hopefully) work as the R3.

@per1234 per1234 linked a pull request Nov 10, 2023 that will close this issue
@Pascal2739
Copy link
Author

Thank you, I will wait, my software is under development and can wait. Thank you for everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
4 participants