liquid simulation cup was a project for fab academy. a course which i took in 2019. the idea is to simulate the liquid tilting with the cup using 6 degree of freedom sensor (MPU6050). the cup had had snap fit feature with the cup charging dock which really didnt work well. i didnt like the output quality of this project but it was nice experience and well documented
you can navigate the above link for detailed implementaion of this project..