On Mon, Jul 07, 2014 at 09:13:42PM +0100, bruce bushby wrote: > Thanks Koen! I think I'm starting to understand a little more now ....at > least enough to have a go learning how to do it. MPU6050 is interesting > .... led me to "iio" which is also interesting. Main issue is that it's i2c > and doesn't offer all 9 axis.....then agaain I could be talking about my > a!ss so :)
Yeah, it looks like it's only supporting i2c at the moment. > I found this: > https://mbed.org/users/kylongmu/code/MPU9250_SPI/ > > Which has been somewhat ported into: > https://github.com/emlid/Navio/blob/master/Navio/MPU9250.cpp > > Which is close....but it's C++ and it's more Middleware then a device > driver ....so I'm thinking that with all the above examples and the > "spidev.c" skeleton, I would have a go at copying/porting/writing an > MPU9250 SPI device driver. Or extending the current MPU6050 driver, if the sensors are similar (which is often the case) > I'm guessing: > Interrupt wakes up processor, reads 9 axis values into a binary string and > outputs to device "/dev/mpu9250" Or just the IIO interface that allows to do pretty much every thing you might need, plus has some userspace library to handle all that, documentation, and so on... (and it will probably turn out to be easier if you're extending the current driver) Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
signature.asc
Description: Digital signature
