2 Replies Latest reply on Jul 10, 2015 8:34 AM by JernejH

    edison delay problems

    David8888

      I want to use edison to delay a second ,but the result isn't accurate.Is there any solutions?

        • 1. Re: edison delay problems
          DiegoV_Intel

          Hi David8888,

           

          If you are using the Arduino IDE you can make a 1 second delay by adding the following line:

           

          delay(1000);

           

          I measured the delay and it is very accurate, check the picture below.

          1secdelay.jpg

          Regards,

          Diego.

          • 2. Re: edison delay problems
            JernejH

            Hi David8888,

             

            ou are not the only one with this problem. Keep in mind that Linux is not real time system and whenever you call sleep() function there are other process executing on Edison in this delays your delay. I wanted to use sleep function in Python and in is so slow that delay was not needed, the time Edison needed to execute function was delay enough. This can work in your benefit.

             

            There are some workarounds, but it depends on your use case.

             

            Cheers, Jernej