Basic ioctl stuff

Home Forums Forums Technical Support for BerryIMU Basic ioctl stuff

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4756
    spaxwax
    Participant

    Very basic question here as I am totally ignorant with most/all coding matters and just copying pasting really,,,

    I want to read the data from the sensors on the Berry IMU, Ive enabled the i2c but cant proceed because Ive no idea where to write the code or paste the code you shared on github.

    Do I open an application in Raspberry Pi? which one? how do I execute the code?

    Thanks

    #4757
    Mark Williams
    Keymaster

    from the terminal on your Raspberry Pi
    1. Download the code
    git clone https://github.com/mwilliams03/BerryIMU.git

    2. CD into one of the folders
    python-LSM9DS0-gryo-accel-compass

    3. Look at the README file to see what needs to be done to either compile or run the code
    cat README

    4.To run the Python code in this folder
    sudo python berryIMU.py

    Mark --OzzMaker.com --

    #4772
    spaxwax
    Participant

    Thanks Mark
    I managed to run berryIMU.py and I see all the angles running as I move the unit
    Is there a way to isolate just two readings from the unit?

    I need only the acceleration, that is the speed of movement, not the angle, when I move the unit in one direction without turning it in any axis

    and the change of angle around the Y axis

    the goal is to use it as a controller for a 2D game

    Thanks for your help

    #4773
    Mark Williams
    Keymaster

    Have a look in the python code, there are comments that describe how to do this.
    Make sure you have the latest version of code from the git repo. it was updated 2 days ago.

    Mark --OzzMaker.com --

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…