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?
LSM9DS0 - 9 Degrees of Freedom IMU
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: LSM9DS0 - 9 Degrees of Freedom IMU
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.
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
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 =)
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 =)
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: LSM9DS0 - 9 Degrees of Freedom IMU
I sent you an invite.
Re: LSM9DS0 - 9 Degrees of Freedom IMU
Thanks! The driver can now be found here: https://github.com/micropython-IMU/micropython-lsm9ds0