View Single Post
  #5   Spotlight this post!  
Unread 19-02-2016, 01:36
mehnadnerd mehnadnerd is offline
Registered User
AKA: Brendan
FRC #1458 (Red Tie Robotics)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2009
Location: Danville
Posts: 5
mehnadnerd is an unknown quantity at this point
Re: Using the ADXL345

The best option is to use an encoder. You would attach an encoder to the shaft that rotates, and would not only be able to tell when it is at the endpoints, but exactly where it is, to a far higher degree of accuracy than would be possible with a gyro or accelerometer. You could even pair this with a PID loop to get it to hold position, we implemented something similar here: https://github.com/FRC1458/turtleshe...wigIntake.java.

If you would like additional information about the ADXL345, the original data sheets can be found here: http://www.analog.com/en/products/me...oduct-overview.
Reply With Quote