1 Reply Latest reply on Jan 11, 2016 8:39 AM by DiegoV_Intel

    How can I use floating point unit(FPU)  in edison when using Arduino IDE

    electroid

      My project requires fast floating point calculations. (such as trigonometric functions)

      I want to use Intel Edison for this project, and I prefer Arduino IDE as programming Interface.

      But I wonder if I can use Edison's FPU when I use arduino IDE.

       

      Is FPU automatically used when I program edison on arduino IDE?

      If not, how can I use it?

        • 1. Re: How can I use floating point unit(FPU)  in edison when using Arduino IDE
          DiegoV_Intel

          Hello electroid,

           

          You can use the float data type to perform calculations using float point numbers. I'm not sure if that is what you wanted to know. I recommend you to check the following article written by SparkFun. There are test results for different calculations and different data types using an Arduino UNO: Data Types in Arduino

           

          If you check that article, you will see a test result for a divide operation with float point numbers. According to that test, it took 32us to be done. I did the same test with Edison and it took 4us, which is 8 times faster.

          EdisonTest.JPG

           

          I hope this information helps you.

           

          Regards,

          Diego.