Go to Post The only thing that would finish this perfect day is a game hint... - [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2016, 13:06
Dalas Dalas is offline
Design Lead
FRC #4585 (Husky Robotics)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Utah
Posts: 22
Dalas is an unknown quantity at this point
FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

This is my first thread, so bear with me and let me know if I break any unspoken conventions.

We are a fairly inexperienced team, and just got the SENSOR BOARD (ACCELEROMETER & GYRO) from FIRST Choice (http://firstchoicebyandymark.com/fc16-000). Could we get some advice on connecting and using the sensor board to drive straight? Ideally we could easily disable this function while driving over terrain, getting in a pushing match, etc. We are programming in Java and have an 4-CIM 4-miniCim mechanum wheel drive which we are currently controlling using the RobotDrive class's mecanumDrive_Cartesian method. We are using 8 Talon SR motor controllers with PWM Y-splitters. No comments on the choice of drive train please, just programming/wiring advice.

Thanks in advance!

Last edited by Dalas : 29-01-2016 at 14:21.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2016, 13:18
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is offline
"Cool" Squad
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 338
Poseidon5817 is a splendid one to beholdPoseidon5817 is a splendid one to beholdPoseidon5817 is a splendid one to beholdPoseidon5817 is a splendid one to beholdPoseidon5817 is a splendid one to beholdPoseidon5817 is a splendid one to beholdPoseidon5817 is a splendid one to beholdPoseidon5817 is a splendid one to behold
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

Quote:
Originally Posted by Dalas View Post
This is my first thread, so bear with me and let me know if I break any unspoken conventions.

We are a fairly inexperienced team, and just got the SENSOR BOARD (ACCELEROMETER & GYRO) from FIRST Choice (http://firstchoicebyandymark.com/fc16-000). Could we get some advice on connecting and using the sensor board to drive straight? Ideally we could easily disable this function while driving over terrain, getting in a pushing match, etc. We are programming in Java and have an 8-CIM mechanum wheel drive which we are currently controlling using the RobotDrive class's mecanumDrive_Cartesian method. No comments on the choice of drive train please, just programming/wiring advice.

Thanks in advance!
I know that you said you didn't want any comments on drive train choice, but you are only allowed 6 CIMs on a robot. You're going to have to go down to one motor per mecanum wheel or you won't be legal.
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division


Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2016, 13:37
Dalas Dalas is offline
Design Lead
FRC #4585 (Husky Robotics)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Utah
Posts: 22
Dalas is an unknown quantity at this point
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

Quote:
Originally Posted by Poseidon1671 View Post
I know that you said you didn't want any comments on drive train choice, but you are only allowed 6 CIMs on a robot. You're going to have to go down to one motor per mecanum wheel or you won't be legal.
Sorry, I should have been more clear - we are using 4 CIMS and 4 miniCIMS. The original post has been edited to specify this.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2016, 14:07
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,994
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)


What motor controllers are you using?


Reply With Quote
  #5   Spotlight this post!  
Unread 29-01-2016, 14:20
Dalas Dalas is offline
Design Lead
FRC #4585 (Husky Robotics)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Utah
Posts: 22
Dalas is an unknown quantity at this point
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

Quote:
Originally Posted by Ether View Post

What motor controllers are you using?


We are using 8 Talon SR motor controllers. Original post edited.
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2016, 14:31
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,116
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

Have you looked at the tutorial?

http://files.andymark.com/ADI_FRC_Gy...rd_LV_2016.pdf

In theory, what you want to do is: Determine a desired gyro angle, and adjust power to the wheels as you drive to keep you pointing in that direction. There may be functions in the libraries that do most of that for you.
Reply With Quote
  #7   Spotlight this post!  
Unread 29-01-2016, 15:02
Dalas Dalas is offline
Design Lead
FRC #4585 (Husky Robotics)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Utah
Posts: 22
Dalas is an unknown quantity at this point
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

Quote:
Originally Posted by rich2202 View Post
Unfortunately that tutorial is for labview, which I have no experience with. We are using Java. I've been looking at the ADIS16448_IMU class at https://github.com/juchong/ADIS16448...16448_IMU.java , so I know how to get basic data from the sensor board. Given time I'm sure I could figure out some way to adjust motor output by comparing joystick input and sensor data. We're very busy though, so if there's a standard way of implementing this I'd be interested in knowing how it works.
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2016, 15:49
mmaunu's Avatar
mmaunu mmaunu is offline
Registered User
FRC #2485 (W.A.R. Lords)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2010
Location: San Diego, CA
Posts: 86
mmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the rough
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

Here is another thread with a lot of the same questions/answers.

http://www.chiefdelphi.com/forums/sh...php?&p=1531890

Ask if you need more.
__________________
2014 Las Vegas (Winners with 987, 2478; Excellence in Engineering)
2014 San Diego (Finalists with 987, 3250; Quality Award)
2013 Inland Empire (Winners with 1538, 968; Excellence in Engineering Award)
2013 San Diego (Finalists with 2984, 4322; Creativity Award)
2012 Las Vegas (Finalists with 2034, 3187; Quality Award)
Reply With Quote
  #9   Spotlight this post!  
Unread 29-01-2016, 15:35
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,994
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)

Quote:
Originally Posted by Dalas View Post
We are using 8 Talon SR motor controllers. Original post edited.
OK:

- mecanum drivetrain

- no encoders

- using TalonSR

- want to use gyro to drive straight


Does this help?



Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi