Go to Post You dont get paid based on your IQ, or how many things you have memorized, or what you can invent on your feet. You get paid for results. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 17-02-2010, 13:03
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
ADXL345 Programming

Anyone have code samples of the ADXL345 being used connected to the gpio?
Also, looking for a code sample or help in using the bump sensor I1 I2.
The FRC documentation seems to suggests you connect via J4 (SPI) to the side car GPIO, but the code samples I find are for (I2C) via J2. The part I need most at the moment is the bump sensor.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2010, 13:17
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: ADXL345 Programming

we used i2c for it, seems to work out ok, a bit of noise in it but not too much. my question is this, is there an advantage to doing it through the GPIO?
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2010, 15:56
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Re: ADXL345 Programming

I do not believe there is any benefit to using the GPIO, but since the FRC Sensor manual Rev A suggests you hook into the GPIOs, then I was trying to do it that way. I guess I can rewire to use the SPI. However, the "bump sensor" on it is also suggested to plug into the GPIO. So I figure plug it all in the GPIO, but then the code I see for it is SPI. I'll go ahead and use SPI, but still need to know if there is some code for using the "bump sensor". If not I guess I can reverse engineer it and use the analog.com specs if no one has anything.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADXL345 SPI Accelerometer set/get Refnum Jon236 NI LabVIEW 3 16-02-2010 10:20
ADXL345 using I2C tdidi C/C++ 1 29-01-2010 21:02
hook up ADXL345 to cypress breadboard at driver station erichahn525 Programming 4 23-01-2010 12:22
Programming in Python and Explaination of Programming roboxking Programming 22 07-01-2008 16:08
programming motors with programming kit BorisTheBlade FIRST Tech Challenge 4 01-11-2005 19:03


All times are GMT -5. The time now is 03:23.

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