Autonomous 4wd1 sabertooth with Arduino Leonardo
I am currently working on a project that has an objective of building an autonomous rover with the use of a sabertooth 2x12 and arduino uno or leonardo.So I have the following :
-arduino uno & leonardo
The objective of the project was to make it autonomous and do a closed loop feedback using an IMU. So from the IMU data I was supposed to see that the rover moves 1m straight and come back to its orginal position. As of now I am done with how to control the sabertooth 2X12 to make it moves forward and backward. So I am having problems with my IMU data and the arduino board. Does anyone have a guideline on how I can make use of an IMU data for distance tracking? To get the IMU data I am using the work of Fabio Varesano. I have attached the file for reference.I also experience problems in interfacing the arduino leonardo with the processing sketch i have attached. I really hope for the advices. I am really motivated to complete this project however, I think the improvement of knowledge on automation from this forum will help me to achieve my goal.