Yet more MPU6050 demo code - Raspberry Pi Forums
the mpu6050 triple axis accelerometer & gyro i2c interface, see http://www.geeetech.com/wiki/index.php/ ... o_breakout, example. can found quite cheaply on ebay.
working on pi took i2c , mpu6050 code https://github.com/jrowberg/i2cdevlib , modified i2c class use linux in-kernel i2c drivers rather arduino drivers. there drivers many sensors on site, imagine can used on pi via replacement i2c class. c++ code, btw.
'make' builds 3 demo programs; 1 displays raw data mpu6050, , displays more useful data (angle of rotation, rotation matrix, quaternion, euler angle, example) using on-chip dmp processing. third demo draws simple 3d wireframe model on screen , lets rotate on 3 axes manipulating mpu6050 hooked pi. if don't have mpu6050 can 'make test_3d' , manipulate model using keyboard
see comments in makefile test_3d target.
tarball of code attached: enjoy,
richard
working on pi took i2c , mpu6050 code https://github.com/jrowberg/i2cdevlib , modified i2c class use linux in-kernel i2c drivers rather arduino drivers. there drivers many sensors on site, imagine can used on pi via replacement i2c class. c++ code, btw.
'make' builds 3 demo programs; 1 displays raw data mpu6050, , displays more useful data (angle of rotation, rotation matrix, quaternion, euler angle, example) using on-chip dmp processing. third demo draws simple 3d wireframe model on screen , lets rotate on 3 axes manipulating mpu6050 hooked pi. if don't have mpu6050 can 'make test_3d' , manipulate model using keyboard
tarball of code attached: enjoy,
richard
sounds better mine - think i'll try , adapt address bsc directly under riscos - once manage install gcc
edit: read read_me - wireframe display sounds awsome!
edit: read read_me - wireframe display sounds awsome!
raspberrypi
Comments
Post a Comment