Run into a 'brick' wall!

Discussion in 'UDOO NEO' started by bryan20miles, Dec 12, 2016.

  1. bryan20miles

    bryan20miles New Member

    Joined:
    Mar 10, 2016
    Messages:
    11
    Likes Received:
    0
    Trying to get the bricks to work from the M4 core.
    I've disconnected everything using the Device Tree Editor, so I'm figuring everything is disconnected from Linux.
    I've attached my sketch. I get confirmation that the sensor exists, but can get no further. I am using LXTerminal to log data.
    BTW, I am a total Arduino newbie.
    Thanks!
    Bryan
     

    Attached Files:

  2. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    My advice would be to build up your source code in small steps and see whether each step is correct or not, instead of trying to run a 'large' program at once.

    So first try to read the temperature and write that to the console, then add more readings.
    To see if your program is correct you should log into Neo with ssh and you can monitor the output with
    Code:
    sudo minicom -D /dev/ttyMCC
    You can upload a new program each time without the need to restart minicom.
     
  3. bryan20miles

    bryan20miles New Member

    Joined:
    Mar 10, 2016
    Messages:
    11
    Likes Received:
    0
    Well Maurice, I am using small steps. The only thing my sketch does is determine if the sensor exists. The next call, to get the sensor ID, fails. My program goes no further; I'd call that a very small step.
    And I have tried the brick sensor example program; it fails on the first call to sensor.(any function).
    Thank you,
    Bryan
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    What if you just use the brick example? You are now combining 9-axis sensor and the brick.
     
  5. waltervl

    waltervl UDOOer

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

Share This Page