Timeline for Arduino: Reliable and practical way to connect an I²C device (1 m away)
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 18, 2019 at 2:31 | comment | added | Julian F. Weinert | @FiddyOhm thanks, that really helps! I have two boards that are powered separately, but share a common ground. To avoid ground loops I was to connect the shield on one side only. I also wanted to twist signals together with ground to further mitigate crosstalk and similar issues. Would you leave the twisted ground unconnected on one side as well? Or would I loose their benefit? | |
Oct 27, 2016 at 12:02 | comment | added | SpaceCadet | Absolutely agree with point C. Never put the clock and data on the same pair - this will cause excessive crosstalk. I have seen causing data significant errors on a 0.5m cable. | |
Oct 6, 2016 at 18:18 | comment | added | FiddyOhm | Keep us posted on your progress and ultimate solution. What is your primary source of DC voltage for the Arduino and slave board? E.g. battery, USB adapter, bench supply, etc. | |
Oct 6, 2016 at 8:23 | comment | added | AnoE | Whelp, the problem happened again with the other device, after many hours of running stable, without any noticeable change in the environment or code. I guess I have more work set out for me (most of all to find where the problem really lies), but the question as is has been answered nicely. Thanks @FiddyOhm. | |
Oct 6, 2016 at 8:20 | vote | accept | AnoE | ||
Oct 5, 2016 at 8:32 | comment | added | AnoE | While pondering your hint about the capacitors, I stumbled across forum.arduino.cc/index.php?topic=394691.0 . According to that, some batch(es?) of that breakout board seem to have been produced with a wrong cap. I have replaced the slave with a known good one, and - voilá - now it works. It is running a burn-in-test today while I'm at work, but it just seems to be a faulty device. I guess I'll try the bad one a final time this evening just to make sure it was not just a cold solder joint or something like that, but the question at hand is done, if the "burn-in" succeeds. | |
Oct 4, 2016 at 23:24 | comment | added | AnoE | B: yes, there is only one VCC source. C+D: done, see EDIT of the question. F: Tried down to 10kHz, no change. G: the slave is this breakout board haoyuelectronics.com/Attachment/GY-521/GY-521-SCH.jpg . Plenty of caps around there, hope they're fine. | |
Oct 4, 2016 at 19:57 | comment | added | thermite | Years ago I was connecting an mpu6050 to a microcontroller in a very similar scenario. The thing that worked the best (And was also the easiest) was to make sure to use only 1 of each twisted pair and ground the other. | |
Oct 4, 2016 at 14:22 | comment | added | Nick Alexeev | +1. I concur. The original question and your answer remind me of this guy. | |
Oct 4, 2016 at 11:33 | history | answered | FiddyOhm | CC BY-SA 3.0 |