I'm working off the code here:

http://docwiki.gumstix.com/index.php/Robostix_SNAP

The sensor is a DS1820 1-wire temperature sensor.  I'm not actually using SNAP, but the example code includes functions to handle the 1-wire interface.  Right now, I have my robostix set up with the i2c-bootloader, and I was hoping to use the i2c-io program to communicate with the board.

I was looking at two basic approaches.  The first (what I was trying to get working last night) was to add a function to the i2c-io program for reading the temp off the 1-wire port, but I learning the ins & outs of that program was becoming frustrating.

My other idea was to modify the i2c-io program on the Robostix to update a register every second or so with the temperature data, then use the i2c-io ReadReg function to check is from the gumstix.

Is there a 'correct' way of doing this?  I'm a complete n00b at this...

-Ryan

On Fri, May 21, 2010 at 1:07 AM, Dave Hylands <dhylands@gmail.com> wrote:
Hi Ryan,

On Thu, May 20, 2010 at 10:39 PM, Ryan Michael <kerinin@gmail.com> wrote:
> I'm using an old connex and the robostix board for some temperature sensing.
>  I found the code for pulling the digital temperature data from my sensor on
> the S.N.A.P. example, but I'm having trouble figuring out how to get the
> data from the robostix to my gumstix.  I've been playing with the i2c-io
> code, trying to extend it to allow me to transfer the 12-bit temperature
> value over i2c, but this is all very new and I'm not getting anywhere.
> Can anyone provide some insight on the best way to transfer 12 bits of
> information from the robostix to the gumstix without massive headaches?

So exactly how is your sensor connected to the robostix?
SNAP implies serial?

--
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

------------------------------------------------------------------------------

_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users