4 Replies Latest reply on May 8, 2015 4:44 PM by CMata_Intel

    Edison Arduino Breakout Board Crashing

    martinianodl

      Hi,

       

      I'm running some tests on the Intel Edison and I'm getting a lot of trouble.

      The worst issue that I have is when the code which I uploaded in my board crashes.

      Sometimes depending on the algorithm that I'm running the intel Edison crashes and stop working until I turn it off and on again.

       

      I connected the Edison on my computer and took a look at the Serial port output. And then surprise!

       

      Screen Shot 2015-04-23 at 9.20.54 PM.png

      I'm getting these weird characters.

      I thought it could be my code, but the error happens in different parts of the code, as you can see on the images below, and sometimes it works.

      The same problem is happening with some other codes.

      Screen Shot 2015-04-23 at 9.16.11 PM.png

      Screen Shot 2015-04-23 at 9.15.26 PM.png

      Someone have any ideia what might be happening?

      I'm running this code on the Arduino Mega 2560 board and it works.

       

      Thanks!

        • 1. Re: Edison Arduino Breakout Board Crashing
          Intel_Peter

          Hello martinianodl,

           

          Does your Edison reboot itself when it crashes? How are you powering the Edison? Are the motors powered directly from the Arduino Expansion Board?

          Could you perform the following test?

          Enter the Edison's Linux console and then run the sketch. When it crashes, look at the Edison's Linux console, does it show anything? If so, attach a screenshot of it here.

           

          Peter.

          • 2. Re: Edison Arduino Breakout Board Crashing
            martinianodl

            Hi Intel_Peter,

             

            The Edison crashes and stays crashed until I turn it off and on again or re-upload the code. I'm powering the Breakout board from a battery (Li-Po 14.8v 4S 10C), then regulating to 12v 1A (7812) connected to the Vin on the Arduino Breakout Board (See figure attached). The motors are powered directly from the motor controller Sabertooth 2x25 that is powered directly from the battery.

             

            power_PCB.png

             

            I did what you said and here is the result: same thing.

            The linux console doesn't show anything and the code still crashing randomly.

             

            I changed the algorithm and I realize that is some problem with the communication between the Edison and the sensor (IR Distance Sensor Sharp GP2Y0A21YK0F).

            When I put something in front of the sensor, it works perfectly, but when I don't put anything, the program crashes. The problem is that's not constant, sometimes it doesn't crash and sometimes it does.

            I changed the sensor twice and same thing is happening.

             

            int sensorPin1 = A0; //analog pin 0
            
            
            void setup(){
              Serial.begin(9600);
            }
            
            
            void loop(){
              int val1 = analogRead(sensorPin1);
            
            
              Serial.println((6787/(val1-3)) - 4);
              Serial.println();
              
              delay(500);
            }
            
            
            
            
            
            
            

             

             

            Thanks!

            • 3. Re: Edison Arduino Breakout Board Crashing
              Intel_Peter

              Which image are you using? Have you updated your Edison's image lately? If you haven't, I'd suggest you to do so. Maybe it'll help you with this issue.

               

              Peter.

              • 4. Re: Edison Arduino Breakout Board Crashing
                CMata_Intel

                Hi martinianodl

                 

                Do you still having problems while uploading sketches to your board?

                 

                Regards;

                CMata