Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • The cabling is maybe 2m long. Baude Rate is 115200... what would be the benefit of a lower baude rate? And how do I know how much I need? Commented Jun 24, 2014 at 11:00
  • Since I thought the error is in my matlab code, I already opend a SE question for that, since this is now more concerning the delay, rathen than the swaps in bits, let's continue there. Your suggestion works! 1/3s sample time gives valid/current time values! Pls help me to fully understand where this could have come from: stackoverflow.com/questions/24368670/… Commented Jun 24, 2014 at 21:08
  • @mike it's not a problem of the Matlab code, it's the Arduino then. You're sending more data than the serial chip can handle at the baud rate you specified. I know I said lower it (I thought info was getting corrupted), but you need to raise the baud rate and lower the sample rate. Commented Jun 24, 2014 at 21:33
  • 25 Hz is possible. That's as high, as possible. However I wanted to debug a quadcopter filtering,... which doesn't quite make that much sense if I run 1/2 or even 1/4 of the planned sampling rate. (I try to get my 100Hz, or at least 50). Also if I add more numbers this phenomenon gets occurs more often I guess? Because it's overflow, right? I'll try to get a shorter cabling, thanks for the advice! Commented Jun 25, 2014 at 7:19
  • @mike Glad I could help! Edited my question and I cleaned up the comments here. Commented Jun 25, 2014 at 20:16