Go to Post I WANT to see teams succeed. - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 10-02-2014, 17:14
SBrosious's Avatar
SBrosious SBrosious is offline
AngelicArtist
AKA: Sebastian Brosious
FRC #4085 (Techinical Difficulties)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Ohio
Posts: 9
SBrosious is an unknown quantity at this point
Lightbulb ACCELEROMETER SPI

So this accelerometer the ADXL345_SPI is what hinging on our gameplay this year. We have it wired but There is no known code i could find to port the accelerometer but everything other than the porting works. I have 8 days to get this working or a large portion of our gameplay will be lost.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2014, 19:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: ACCELEROMETER SPI

Quote:
Originally Posted by SBrosious View Post
So this accelerometer the ADXL345_SPI is what hinging on our gameplay this year. We have it wired but There is no known code i could find to port the accelerometer but everything other than the porting works. I have 8 days to get this working or a large portion of our gameplay will be lost.
What do you mean by port? Is there any reason you HAVE to get it working with SPI? If you can't get it working with SPI, why not try I2C?

I've seen very few teams use a cheap accelerometer for anything useful, let alone building their entire strategy around it. Perhaps if you describe what you want to do with an accelerometer, we could describe a more practical solution.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2014, 18:41
SBrosious's Avatar
SBrosious SBrosious is offline
AngelicArtist
AKA: Sebastian Brosious
FRC #4085 (Techinical Difficulties)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Ohio
Posts: 9
SBrosious is an unknown quantity at this point
Re: ACCELEROMETER SPI

Well SPI wiring seems more reliable due to the several complaints with the I2C ports, we figured out the code for the most part and are trying to get the accelerometer to give off values but only 0's. We are trying to see if its wirirng but for the most part we are trying to read a distance value and using the gyro or accelerometer for directional distance. Any ideas on sensors, we are using a encoder but wheel slip makes it severly in accurate especcially with the Mechanum.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2014, 19:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: ACCELEROMETER SPI

Trying to double integrate acceleration to get position will be far more inaccurate then wheel encoders on mecanums.

I would recommend putting encoders on two unpowered omniwheels at a 90 degree angle to each other. Then put the omniwheels on a suspension so that they are always touching the ground. When we did something like this in the past, we used Vex omni wheels
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 12:50.

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