amir:w11

Programming

Looking to control a servo motor with an accelorometer for the final project, going back to the accelerometeres and servo boards created. However, the values coming back are too rough and fast, so overtime they get worn down and inaccurate. I bought the same variation of the accelerometer and arduino just to see if that same problem occurs with a different chip.


 


 


 


 


 


 


 

After a little programming and hacking together different bits of code I both learned and found online it worked! I am thinking of buying this variation of the axl chip because the pins are a lot simpler to interpret values.


 


 

This is the hacked together code, borrowing some code to begin to read the axl but then I wrote and if/then statement to adjust just the value to the servo motor