Everything works fine except the yaw. My problem is that the yaw value keep increasing even if the board isstable. Is that because of the lack of gps in my setup? Is there any wayto fix this problem without a magnetometer and without a gps?(myproject is indoor so i cant use a gps)
You need to be a member of diydrones to add comments!
Replies
Thank you for your response,
while using DCM code, error is like this. i want to work in that (except yaw movement) . for that how to change the code. how to use this dcm code in other two (pitch and roll) direction? please help me
error.png
it shows 0,0,0,0,0,101. while moving the sensors these values are also changed.
but my problem is that the DCM code given is not working properly.this code is compiled. while execution it is hang the computer (i tried on other computer also). i am not using GPS. can you tell me how you made the DCM code work. did you edit the code or used it as such? please reply ASAP
@lucky13 i am also doing a similar project. i am building an automatic leveling platform using RAZOR 6DOF IMU, arduino uno board and standard servo motors. i used the offset program given in the page http://voidbot.net/razor-6dof.html
i am getting these readings. but my problem is that the DCM code given is not working. i am not using GPS. can you tell me how you made the DCM code work. did you edit the code or used it as such? please reply ASAP
https://www.youtube.com/watch?v=5pcU3gfi5YM
http://code.google.com/p/ardu-imu/
Just insert some statements to print out these six values. The first three should vary as you rotate around the x, y, and z axes, respectively. The second three should register gravity when you point the axis down, again, x, y, and z respectively. I still bevieve the most likely cause of your problem is having two of the three accel readings interchanged.
also, when you spin, roll, or pitch it, do all the values change? or just the one corresponding?
i cant seem to get this IMU thing for the life of me
If you don't have yaw correction the yaw will drift over time because the gyros are not perfect and drift, and there is no mechanism for drift correction.
2nd. If i pitch down or up the imu and hold it there(without turning the board in a way that should affect roll) , the roll value changes for some seconds and then returns slowly to 0. Why is that? My thought is that is caused by a filter.. If anybody can help i would appreciate it.