6 Replies Latest reply on Oct 17, 2016 4:40 PM by Intel Corporation

    The 1sheeld does not work with intel edison board

    Loop

      Hello,

       

      I tried the 1sheeld(http://1sheeld.com/downloads/ ) with the intel Edison board and the program was able to compile fine and also was downloaded to the board.

       

      I tried a couple of demo's from it's library but they did not work, I tried the mic demo to be specified and there was no output from the pin 13.

       

      I found a tutorial to run the board on Galileo

      http://1sheeld.com/tutorials/1sheeld-with-intel-galileo/

       

      Please let me know if there are any jumper setting to get it work or it is just the 1sheeld library needs to be upgraded to be compatible with Edison.

       

      Regards,

      Parth

        • 1. Re: The 1sheeld does not work with intel edison board
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi Parth,

           

          Thanks for your interest in the Intel Edison Platform.

           

          I'm glad to hear that you managed to compile and upload your code to your board. I will need some time in order to see if the 1sheeld is compatible with the Intel Edison. In the meantime I have seen that some issues regarding the 1sheeld and Galileo Gen 2 where fixed by adding the command "OneSheeld.processInput( )" at the end of the loop function in your sketch. Also I saw this tutorial http://1sheeld.com/tutorials/getting-started/  can you please try the steps 6 and 7. I will be waiting for your reply.

           

          I hope you have a great day.

           

          Regards, 
          -Jose

          • 2. Re: The 1sheeld does not work with intel edison board
            Loop

            Hi Jose,

             

            I tried adding the "OneSheeld.processInput()" but it give me an error saying

             

            Arduino: 1.6.5 (Windows 8.1), Board: "Intel® Edison"

            Accelerometer:68: error: 'OneSheeld' does not name a type
            'OneSheeld' does not name a type

              This report would have more information with
              "Show verbose output during compilation"
              enabled in File > Preferences.

             

            Please let me know the steps if you can run any demo successfully on intel edison board.

             

            Regards,

            Parth Desai

            • 3. Re: The 1sheeld does not work with intel edison board
              Eslam_Ali

              Hi Guys,

               

              I am Eslam from the 1Sheeld team , So just to make things clear we haven't tested 1Sheeld with Edison+Arduino extension yet, but Intel Edison board uses Hardware Serial1 as the communication path between Arduino shields and the Edison extension board(check this link). So in able to communicate with the board you will have to replace

              OneSheeld.begin()  
              

              to both lines

              Serial1.begin(115200); 
              OneSheeld.begin(Serial1); 
              

              then place the line

              OneSheeld.processInput();
              

              in the loop.

              So for example the mic sketch should look like this:

              #define CUSTOM_SETTINGS
              #define INCLUDE_MIC_SHIELD
              /* Include 1Sheeld library. */
              #include <OneSheeld.h>
              /* A name for the LED on pin 13. */
              int ledPin = 13;
              void setup() 
              {
                Serial1.begin(115200);
                /* Start communication. */
                OneSheeld.begin(Serial1);
                /* Set the LED pin as output. */
                pinMode(ledPin,OUTPUT);
              }
              void loop ()
              {
                /* Always check the noise level. */
                if(Mic.getValue() > 80)
                {
                  /* Turn on the LED. */
                  digitalWrite(ledPin,HIGH);
                }
                else 
                {
                  /* Turn off the LED. */
                  digitalWrite(ledPin,LOW);
                }
                OneSheeld.processInput();
              }
              

               

              @Loop for your second reply are you sure OneSheeld.h library is included in your sketch ?

               

              Please let me know guys if the solution solved the problem .

              1 of 1 people found this helpful
              • 4. Re: The 1sheeld does not work with intel edison board
                Intel Corporation
                This message was posted on behalf of Intel Corporation

                Hi Parth Desai ,

                First thanks to Eslam_Ali for his suggestion. Please let us know if you were able to use the 1sheeld with the Edison.

                I will be waiting for your reply, have a nice day.

                Regards,  
                -Jose

                • 5. Re: The 1sheeld does not work with intel edison board
                  Loop

                  Hello Jose and Eslam,

                   

                  Thanks for the information and I am successfully able to run the code on my intel Edison board.

                   

                  Note: Do not try to copy the code from this blog and paste it into Arduino IDE as you might have some compilation error like "/204" etc because of improper indentation or extra tab or space.

                   

                  Regards,

                  Parth

                  • 6. Re: The 1sheeld does not work with intel edison board
                    Intel Corporation
                    This message was posted on behalf of Intel Corporation

                    Hi Parth,

                    I'm glad to hear your Edison work with the 1sheeld! If you have any more technical questions regarding the Intel Edison, please contact us we will be happy to help.

                    Have a nice day. 
                     
                    Best Regards,  
                    -Jose