Go to Post Screwing up is part of the game. Iterating, testing, and analyzing your failures separates the great from the average. - Jon Stratis [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 19-01-2013, 16:33
wdburk3160 wdburk3160 is offline
Registered User
AKA: William Burk
FRC #3160 (F.R.O.G.)
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Grove, Oklahoma
Posts: 22
wdburk3160 is an unknown quantity at this point
IC2 or SPI

I'm wanting to program an accelerometer and I'm wondering what the advantages and disadvantages to both the I2C or SPI methods are.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2013, 17:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: IC2 or SPI

For our purposes, there's not much to recommend one over the other. I2C can handle many different devices on the same communication bus, but the devices have to support that. SPI is simple to implement, but needs separate wires to select individual devices in order to have more than one.

If you only want to connect a single accelerometer and it works with SPI, I'd choose it for its simplicity.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2013, 21:45
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
I believe that SPI is not standard between all devices.

Please Correct Me If I'm Wrong
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
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 10:56.

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