Page 1 of 1

LSM9DS0 - 9 Degrees of Freedom IMU

Posted: Sun Jul 05, 2015 8:05 am
by xix_xeaon
I've done some initial work on interfacing with the LSM9DS0 through I2C. Basically, you can set the different sensitivities (or max ranges) and read normalized values from the three sensors.

I intend to add more support for the common options as well as an easy way of setting all options (you can set all options manually with update_reg but I'd like something nicer), as well as SPI and interrupts etc, but this works for now.

https://github.com/XIXIT-swe/micropytho ... LSM9DS0.py

BTW, I just got my pyboard and made some different drivers so I just put them in one repository, should I use a different one for each thing?

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Posted: Sun Jul 05, 2015 11:38 am
by Turbinenreiter
Nice website. Are you planning on building a ... toy with micropython?

I put all my drivers in an extra repository, with a naming scheme like 'micropython-name', so for your instance 'micropython-LSM9DS0'.

Pete and I also started an Organization on GitHub to collect various IMU drivers and stuff like that: https://github.com/micropython-IMU
If you want to, you could add yours to it. Let me know, than I'll add you to the org.
I have an lsm9ds0 lying around here since months and didn't find the time to work on it.

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Posted: Mon Jul 06, 2015 7:56 am
by xix_xeaon
Hehehe, lots of ideas, but nothing concrete =P But an MCU is a bit overkill to drive a vibrator ;) I'm the kind of person who can't stick to any one thing, because I keep wanting to do everything else I can think of too! My primary business used to be IT consulting, but I found this work more ... satisfying ^^

Anyway, I've dusted off an old quadrotor project with arduino I didn't finish, it really is so much more fun and productive to work with python. Got all the parts, but I'll need to print a new frame. I see you have Madgwicks algorithm there, I was looking into implementing it but it's a bit over my head so that'll be useful =)

Sure, I can put it in with yours, it's nice to have everything collected =)

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Posted: Mon Jul 06, 2015 11:02 am
by Turbinenreiter
I sent you an invite.

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Posted: Mon Jul 06, 2015 3:03 pm
by xix_xeaon
Thanks! The driver can now be found here: https://github.com/micropython-IMU/micropython-lsm9ds0