2 Replies Latest reply on Jun 6, 2014 12:03 PM by jdschumacher

    Add One Wire support to Galileo

    jdschumacher

      Hi all,

       

      Does the Galileo support, on the Linux side, One Wire sensors?  I have this sensor.  I am hoping to read the sensor via one gpio pin from some python code.

        • 1. Re: Add One Wire support to Galileo
          Clayton Hofrock

          Using python, you can turn signals on and off, read the current voltage on the pin, and do everything you pretty much can do from an Arduino Sketch. In order to "talk" to the one wire device, you will most likely want something that will abstract the pin toggling.

           

          As far as I know, no one has created a one wire library for Galileo, but I don't think that is needed. Raspberry Pi uses a kernel module to talk to one wire devices. Since both devices are Linux based it would probably be easy to port that over to work with Galileo. Assuming the w1-gpio and w1-therm modules are built into the SD card image. (if not it will require a rebuilding of the Linux image)

          Raspberry Pi • View topic - Source code to w1-therm?

          The linked thread is about enabling your exact sensor.

           

          One problem that you are likely to run into... Galileo's I/O speeds are not be fast enough to communicate with one wire devices. At least at the Arduino sketch level (I tested with DHT11). However, this is using a kernel process, so maybe it is fast enough?

          • 2. Re: Add One Wire support to Galileo
            jdschumacher

            Okay, I kinda thought that might be the case, but I wanted to ask the community before I went through recompiling the kernel.  The two modules that are in the Rpi are not included in the Galileo image. 

             

            Thanks for the help.