Using IMU sensors with Arduino

Discussion in 'UDOO NEO' started by Ahmed Saleh, Feb 20, 2016.

  1. Ahmed Saleh

    Ahmed Saleh New Member

    Joined:
    Feb 14, 2016
    Messages:
    11
    Likes Received:
    1
    Is there any way to use IMU sensors while using UDOO Neo As Arduino?
     
  2. waltervl

    waltervl UDOOer

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

    yogen New Member

    Joined:
    Dec 17, 2015
    Messages:
    5
    Likes Received:
    0
  4. waltervl

    waltervl UDOOer

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

    waltervl UDOOer

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

    yogen New Member

    Joined:
    Dec 17, 2015
    Messages:
    5
    Likes Received:
    0
    Thank you waltervl for your help.

    I used the libraries in your second link and the sketch is running.

    The problem I've run into now is the data from the motion sensors is not changing as I move the Neo.
    Any thoughts?
    Perhaps a setting on the Linux side? I'm running UDoobuntu 2 RC1.

    I appreciate your help
     
  7. waltervl

    waltervl UDOOer

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

    yogen New Member

    Joined:
    Dec 17, 2015
    Messages:
    5
    Likes Received:
    0
    Yes I did. Sorry was just about to add that to my post.
    I tried rebooting and a full shutdown but still no change in the values.
     
  9. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    And if you read the data on the A9 side?
     
  10. yogen

    yogen New Member

    Joined:
    Dec 17, 2015
    Messages:
    5
    Likes Received:
    0
    I'm not sure how to do that.

    I tried the following.

    http://www.udoo.org/docs-neo/Hardware_&_Accessories/Motion_sensor.html

    There is no directory call "FreescaleAccelerometer" in the "/sys/class/misc" folder.

    when trying the command "i2cset -f -y 3 0x1e 0x2a 1" I get "Error: Write Failed"

    I also enabled the i2c-4 bus on the A9 before doing this.
     
  11. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Well I only have a basic Neo so I am not able to assist you further in this, perhaps someone else has it working.
     
  12. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Wait, what if you use sudo echo 1 etc etc, so use the root rights.
     
  13. yogen

    yogen New Member

    Joined:
    Dec 17, 2015
    Messages:
    5
    Likes Received:
    0
    I tried that. It just says that the directory doesn't exist.

    thank you for all your help. I'll keep trying to figure this out.
     

Share This Page