-
Notifications
You must be signed in to change notification settings - Fork 16
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
sampling frecuency #7
Comments
You are using and Arduino Uno with an LSM9DS0? Which board are you using? I hope you have a 5 V tolerant sensor board as this sensor is 3V6 V or less. One problem might be your integer types. The Teensy is a 32-bit processor Are you using my code for the LSM9DS0? Which one. One thing that might help Kris -----Original Message----- First of all, thank for your work. Really inspiring Please excuse if it is so basic what i'm asking: I read in your papers that the filtering rate is well over 100hz for every � |
thanks Kris for quick answer. The hardware is Arduino 1 with LSM9DS0 using a logic converter 3v-5v. would like to know what part of the code can i delete/comment to improve speed due that i just need roll leveling also...I did with those lines about lcd already. thanks again¡ |
Even with a 16 MHz Arduino you should be able to get fusion rates well above 100 Hz. My recommendation is to start with a stripped down code and check how fast you can just get the data out. You can start with this code since it is easier to modify: https://github.com/kriswiner/LSM9DS0/tree/master/Teensy3.1/LSM9DS0-MS5637 You will have to modify the wire.xxxx calls and you can eliminate all the MS5637 stuff. If you start with just the basics you can add more and see how the speed is affected. |
Hi Kris, followed your advice and began from striped version so I could isolate the problem. The thing is that changing serial print/display rate I solved the problem. // Serial print and/or display at 0.5 s rate independent of data rates |
That's pretty odd but I have seen this kind of thing before. It has to do with the integer type of the variables delt_t and count. There is a difference between AVR and ARM machines at work here but i don't claim to understand it. |
First of all, thank for your work. Really inspiring
Please excuse if it is so basic what i'm asking:
I read in your papers that the filtering rate is well over 100hz for every controller. I uploaded your code to an arduino uno and i get data updated far below that fecuency (serial readings also) , could say it refresh more or less 2-3hz¡
I'm just trying to stabilize the roll angle of a device and it is so so so slow, 2 or 3 movements per second. (maybe i could avoid any other calculations, don't know exactly where but could try and error for ever if needed)
I must be missing something.
if you think this question is too basic to be attended i'll understand and continue reading about this theme, but any help would be really appreciated.
Thanks in advance
The text was updated successfully, but these errors were encountered: