View previous topic :: View next topic |
Author |
Message |
olive2222
Joined: 31 May 2006 Posts: 88
|
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Feb 06, 2011 7:40 pm Post subject: SPI... |
|
|
Perhaps also have a look at the Arduino forum.
And this I found about ADXL345 connected through SPI.
perhaps you can translate the SPI commands to Bascom-AVR.
http://carvingcode.blogspot.com/2010/07/balancebot-2.html
Have fun
Ben Zijlstra |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Feb 06, 2011 7:49 pm Post subject: I2c or SPI... |
|
|
Checked the ADXL345 and are the I2c lines not the same as the SPI lines.
You could consider working with I2c instead of SPI.
And on this page you have some info how to detect it on your I2c-bus
http://members.home.nl/bzijlstra/software/examples/9DOF.htm
Hope you get it working
Ben Zijlstra |
|
Back to top |
|
|
olive2222
Joined: 31 May 2006 Posts: 88
|
Posted: Sun Feb 06, 2011 8:36 pm Post subject: |
|
|
Thank you Ben,
I will have a look on Arduino code to find how the handle the ADXL.
Unfortunately I must keep it on the SPI bus, shared with a Flash memory.
Thanks again,
Olivier |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Mon Feb 07, 2011 8:25 am Post subject: Fixed |
|
|
From your first post in the Bascom-AVR part of this forum I understand that you got it fixed.
Have fun
Ben Zijlstra |
|
Back to top |
|
|
olive2222
Joined: 31 May 2006 Posts: 88
|
Posted: Mon Feb 07, 2011 11:56 am Post subject: |
|
|
Yes, indeed Ben! it's working now!
Thanks!
Olivier |
|
Back to top |
|
|
gatetec
Joined: 30 Jan 2012 Posts: 3
|
Posted: Sun Apr 08, 2012 8:15 pm Post subject: Share your code |
|
|
I have also problem with this.
Can you please share your code for ADXL 345?
BR
Jörgen |
|
Back to top |
|
|
olive2222
Joined: 31 May 2006 Posts: 88
|
|
Back to top |
|
|
|