I just found the wiki page, and the previous conversation on the mailing list. Gmane rocks!

Never mind on everything except whether anyone has a suggestion on connecting the compass to the robostix.

 

 

Brian Gregory

 

From: gumstix-users-bounces@lists.sourceforge.net [mailto:gumstix-users-bounces@lists.sourceforge.net] On Behalf Of Brian Gregory
Sent: Tuesday, May 29, 2007 3:08 PM
To: gumstix-users@lists.sourceforge.net
Subject: [Gumstix-users] Robostix/SPI

 

Can someone point me to an SPI example for the avr?

I found this one, but it doesn’t seem correct:

http://winavr.scienceprog.com/avr-gcc-tutorial/serial-peripheral-interface-spi-of-avr-microcontrollers.html

 

It defines the pins as:

#define DD_MOSI     PINB3

#define DD_SCK     PINB5

#define DDR_SPI    PORTB

 

While the roboaudio defines the pins as:

MISO      Port B.3                SPI - Master In Slave Out

MOSI     Port B.2                SPI - Master Out Slave In

SCK        Port B.1                SPI - Clock

SS           Port B.0                SPI - Slave Select

 

By the way, is it possible to access the SPI interface on a regular robostix?

Has anyone tried or can point to an example of emulated SPI (or another solution in case robostix PINs are not accessible)

 

I’m trying to interface a parallax compass: http://www.parallax.com/detail.asp?product_id=29123

The examples use the PBasic SHIFTIN and SHIFTOUT commands to emulate SPI (so it appears).

 

 

Brian Gregory