I got me a few of the MPU-6050 accelero's and played around with it, very nice! At first I used an Arduino, but finally I connected it to my Octoprint Raspberry Pi. I used some code from here: http://blog.bitify.co.uk/2013/11/interfacing-raspberry-pi-and-mpu-6050.html and followed the instructions. This gave some very nice results in OpenGl like in the the picture.
Thanks for the tip!