2019-02-23 02:59 AM
2019-02-23 03:11 AM
Here is math background to get familiar with and to see what you really need:
Search the internet for examples how to get orientation. There are plenty. Especially arduino community has a lot of them. Again it depends what are your requirements.
Just a search query gives you many results: https://www.google.com/search?q=mpu6050+orientation&oq=mpu6050+orientation&aqs=chrome..69i57j0l3.6473j1j7&client=ms-android-huawei-rev1&sourceid=chrome-mobile&ie=UTF-8
2019-02-28 08:43 PM
Hello Nix Wayne,
Thank you for replying. My requirement has changed. Now I will be having my device with accelerometer and gyroscope sensors in it and the device is kept randomly in a vehicle. I was wondering how can I know the vehicle direction (going forward) using acc and gyro. Please give me some Idea.