LSM9DS0 - 9 Degrees of Freedom IMU

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
xix_xeaon
Posts: 3
Joined: Sun Jul 05, 2015 7:39 am

LSM9DS0 - 9 Degrees of Freedom IMU

Post by xix_xeaon » Sun Jul 05, 2015 8:05 am

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?

Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Post by Turbinenreiter » Sun Jul 05, 2015 11:38 am

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.

xix_xeaon
Posts: 3
Joined: Sun Jul 05, 2015 7:39 am

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Post by xix_xeaon » Mon Jul 06, 2015 7:56 am

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 =)

Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Post by Turbinenreiter » Mon Jul 06, 2015 11:02 am

I sent you an invite.

xix_xeaon
Posts: 3
Joined: Sun Jul 05, 2015 7:39 am

Re: LSM9DS0 - 9 Degrees of Freedom IMU

Post by xix_xeaon » Mon Jul 06, 2015 3:03 pm

Thanks! The driver can now be found here: https://github.com/micropython-IMU/micropython-lsm9ds0

Post Reply