I'm kinda at the end of my rope here with this project. I think the onboard arduino died

Discussion in 'UDOO X86' started by Ryan Lewkowicz, Aug 10, 2017.

  1. Ryan Lewkowicz

    Ryan Lewkowicz New Member

    Joined:
    Aug 4, 2017
    Messages:
    19
    Likes Received:
    8
    I have a sketch that was executing just fine and now it's not.

    Code:
    void setup() {
      Serial.begin(9600);
    
      while (!Serial) { // needed to keep leonardo/micro from starting too fast!
        delay(10);
      }
     
      Serial.println("Adafruit MPR121 Capacitive Touch sensor test");
     
      // Default address is 0x5A, if tied to 3.3V its 0x5B
      // If tied to SDA its 0x5C and if SCL then 0x5D
      if (!cap.begin(0x5A)) {
        Serial.println("MPR121 not found, check wiring?");
        while (1);
      }
      Serial.println("MPR121 found!");
    }
    This is the test code for the Adafruit mpr121. It will print the first line

    "Adafruit MPR121 Capacitive Touch sensor test"

    And then not do anything. I thought it was my shield, it is not because I bought another one. If the shield is removed, it does not fire an error message. I think the on board arduino has broken (I have tried the master reset). Does anyone know of some sort of diagnostic test suite I can run on this? My fun weekend project is turning into a real nightmare and money sink.
     
  2. Ryan Lewkowicz

    Ryan Lewkowicz New Member

    Joined:
    Aug 4, 2017
    Messages:
    19
    Likes Received:
    8
    So I tried a simple sketch. To light an LED and it worked. I luckily had an arduino uno laying around, tried the shields on it, they work. So whatever these offsets are:
    // Default address is 0x5A, if tied to 3.3V its 0x5B
    // If tied to SDA its 0x5C and if SCL then 0x5D
    Are fried.
     
    Last edited: Aug 10, 2017
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    You have to check if the cap library you are using is Arduino 101 compatible. There are some I2C issues with the Arduino 101. Please also check the Arduino 101 forum on www.arduino.cc
     
  4. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I've managed to fry a Arduino Nano only by making a wrong wiring from 5v to non-5v. There was smoke and smell to tell me I destroyed the Arduino.

    The Arduino 101 (and thus Udoo X86) should be 5v tolerant, so I would assume that this would not be so easily possible.

    :(:(:(
     
    Last edited: Aug 10, 2017
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  6. Ryan Lewkowicz

    Ryan Lewkowicz New Member

    Joined:
    Aug 4, 2017
    Messages:
    19
    Likes Received:
    8
    It was working. It just stopped. Some sort of bus or offset has died. I had been using it and it was solid. Works on an external board.
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  8. Ryan Lewkowicz

    Ryan Lewkowicz New Member

    Joined:
    Aug 4, 2017
    Messages:
    19
    Likes Received:
    8
    Nope. I know that's the story told around the world. Light on the MPR121 went red as it does from time to time. Idk why it does that. Maybe because this 101 doesn't properly support 5v. But then I guess I'd have to figure out how to wire a shield to use the 3.3. Usually I pull the shield and put it back on and it's fine. I reupload the sketch, it flashes just fine and then hangs at any logic interaction on any of those offsets. So this:

    if (!cap.begin(0x5A)) {

    At any address. Will hang. It's just weird. It's just a hang. No response, no nothing. It won't pass a logic interaction with those offsets now.

    I did however even try an update after the fact. No change. I can print stuff, this works: https://www.udoo.org/tutorial/getting-started-with-arduino-ide-on-udoo/

    The shields work on my uno. It just started hanging. It hangs with nothing attached. I can pick up that thing from ebay, but then it's another x amount of days before I get it, and just more money. It's all just time and money adding up.
     
  9. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  10. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  11. Ryan Lewkowicz

    Ryan Lewkowicz New Member

    Joined:
    Aug 4, 2017
    Messages:
    19
    Likes Received:
    8
    Yep. Example sketch is the same problem. It had been working.

    Output from the uno:

    Scanning...
    Device found at address 0x5A (MPR121)
    done


    Output From the 101:

    I2C Scanner
    Scanning...
    No I2C devices found


    This one doesn't hang, but it doesn't detect the board. I'm sure we're in the realm of highly unlikely that a bus goes bad, but I think that's where I'm at (story of my life :p)
     
  12. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Andrea Rovai and Ryan Lewkowicz like this.
  13. Ryan Lewkowicz

    Ryan Lewkowicz New Member

    Joined:
    Aug 4, 2017
    Messages:
    19
    Likes Received:
    8
    Thanks @waltervl I did do that. Also too, thanks for being such an active member of the forum. People like you make the world go round!
     
    Andrea Rovai likes this.

Share This Page