View Single Post
  #1   Spotlight this post!  
Unread 06-02-2015, 21:38
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Help! Why Can't I Read Gyro Values Over the I2C Interface!

Looking at this Arduino driver, I think you need to select a range for the gyro and possibly wake it from sleep. According to the register map, that means writing 0 (250 degrees/sec), 1 (500 degrees/sec), 2 (1000 degrees/sec) or 3 (2000 degrees/sec) to bits 3-4 of the GYRO_CONFIG register (0x1B). To wake it from sleep, write a 0 to bit 6 of the PWR_MGMT_1 register (0x6B). You also might want to change the clock source to one of the gyros to increase accuracy.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote