Jump to content
Terenceang

Stellaris LaunchPad IMU.

Recommended Posts

Some really useful stuff. I started playing around with the same (or very similar) IMU but didn't get as far before getting sidetracked on other stuff. When I get back to it I'll definitely take a look at your code as a starting point. Unless I decide that the STM32F3 discovery kit (with onboard IMU components and ridiculously low price) is a better fit.

Share this post


Link to post
Share on other sites

Some really useful stuff. I started playing around with the same (or very similar) IMU but didn't get as far before getting sidetracked on other stuff. When I get back to it I'll definitely take a look at your code as a starting point. Unless I decide that the STM32F3 discovery kit (with onboard IMU components and ridiculously low price) is a better fit.

 

Well, don't be surprised when you'll find out that the ACC on the STM32F3 kit isn't the best one out there in the market. 

 

You should have a look at 'baseflight' when you want to stay with the STM part. 

Share this post


Link to post
Share on other sites

I tot of STMF32F3, similar setup as the PX4, maybe easier to port..

 

@Fred, if you have time to look at the code, I am getting running error on the Roll axis, and after fixing the update rate to 100Hz. I am getting some scaling error.

I will look at it again this week end.

Share this post


Link to post
Share on other sites

https://code.google.com/p/stellaris-lp-imu/source/browse/#svn%2Ftrunk%2Fstellaris-lp-imu

 

the code is for UART1. not updated to use the UI.

 

Please update us with you mocap experiment, thanks.

 

just cloned the repository, thank you.

 

I'm waiting for the sensor modules, when they will arrive I will try your code and start the developement

Share this post


Link to post
Share on other sites
@Fred, if you have time to look at the code, I am getting running error on the Roll axis, and after fixing the update rate to 100Hz. I am getting some scaling error.

I will look at it again this week end.

Is it stable before the Euler conversion?

 

http://www.diydrones.com/forum/topics/madgwick-imu-ahrs-and-fast-inverse-square-root

http://stackoverflow.com/questions/5577334/strange-behavior-with-android-orientation-sensor/5578867#5578867

Share this post


Link to post
Share on other sites

Hi Tim,

 

add an event counter in the breakpoint window and set breakpoint between the instructions you want to count, enable and disable the counter to reset.

you can find the instructions in the FPU lab segment in the Stellaris tutorial,

 

Cheers,

Terence.

Share this post


Link to post
Share on other sites

the IMU is working and pretty stable.

 

but the motion seem to have some dampening effect at the end, if you bank 45 degrees, it will go to 40 degree then slowly go to 45... have to study more to figure out why.. maybe the sampleing rate or some time related maths.

 

code is updated!!

Share this post


Link to post
Share on other sites

Finally my GY-80 boards are arrived from china  :) , I'm still waiting for bluetooth modules but now I can start working.

 

I will try them with your code to test if they are working or faulty, then I will start to study your code and then modify it or write my own one.

 

I've downloaded last version from your repository (r11) and successfully imported the project into CCS.

How can I test if my setup is working after compiling the code? Have I to set something into project options?

 

 

These are the connections from Stellaris board to GY-80 board:

 

Stellaris VBUS -> GY-80 VCC_IN

Stellaris GND -> GY-80 GND

Stellaris PA6 -> GY-80 SCL

Stellaris PA7 -> GY-80 SDA

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...