This is still very preliminary... I need to add better pictures of physical hookup, and work through some of the awkward code.
Step 1: Starting with a blank SD card, download Raspbian image, and install onto SD card
Step 2: Connect Raspberry Pi to TV/Monitor, and run through initial setup
Step 3: Optional: Operate Pi headless
I use Putty (Windows) or Terminal (Mac) to connect with SSH
Step 5: Optional: Setup IP Address e-mailer
Excellent tutorial at
Step 6: Optional - Setup VNC
I didn't go through the entire tutorial... just the following steps:
$ sudo apt-get install tightvncserver
$ vncserver :1 -geometry 1200x800 -depth 24
And, I created a script to keep my typing to a minimum.
Step 7: Install BCM2835 SPI Library
Excellent documentation (and examples) at http://www.open.com.au/mikem/bcm2835
// wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.5.tar.gz; // My Pi can't figure out this URL - unable to resolve host name?
tar xvfz bcm2835-1.5.tar.gz;
sudo make install
Step 8: Get ADXL362 SPI example
get ADXL362_RaspPi from https://github.com/annem/ADXL362_RaspPi
(How to do this on Pi, using wget? I'm having trouble with this... "unable to resolve host address 'github.com'")
Step 9: Phyiscally connect ADXL362 breakout to Raspberry Pi GPIO
More info about ADXL362 (ultra low power 3-axis accelerometer) at analog.com/ADXL362
Connect 3v3, GND, SPI0 MOSI, SPI0 MISO, SPI0 SCLK, SPI0 CE0 N on Raspberry Pi to
VDDand VIO, GND (2), MOSI, MISO, SCLK, and CSB on ADXL362 Breakout board.
Step 10: Compile and Run ADXL362_RaspPi
gcc -o ADXL362_RaspPi -I ../bcm2835-1.5/src ../bcm2835.c ADXL_RaspPi.c
Which I combines into a script called compileADXL362.