bmi270


Namebmi270 JSON
Version 0.4.3 PyPI version JSON
download
home_page
SummaryBMI270 I2C Python library (bare bones)
upload_time2023-04-28 08:49:45
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT
keywords bmi270 i2c imu sensor driver accelerometer gyroscope gyro bosch sensortech smbus2 library
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BMI270 I2C Python Implementation - Version: 0.4.3

Bare bones BMI270 I2C Python implementation. This was a project for my practical phase at my University and my first time working hands on with IMUs.

## Installation
The package is [available on pypi.org](https://pypi.org/project/bmi270).

You can install this package using this command:

`pip3 install bmi270`

For a Raspberry Pi Setup add/change this line in /boot/config.txt to your desired baudrate:

`dtparam=i2c_baudrate=400000`

Reboot your Raspberry Pi after applying the change.

## Usage
Make sure these lines are connected: GND, 3V3, SDA, SCL

If you are using the SparkFun SPX-17353 BMI270 Breakout Board, you can easily connect them using a 1mm 4-pin JST connector cable. (example: Qwiic cables)

Make sure that the device is available at `0x68` or `0x69` i2c address by running this command:

`i2cdetect -y 1`

The BMI270 requires a config load. This initialization step is necessary to be able to use all its functions.

`load_config()`

A full power cycle is necessary if you want to load the config again.

Check out [examples](https://github.com/CoRoLab-Berlin/bmi270_python/tree/main/examples) for more information.

## Tested with:
- Ubuntu 22.04.2 LTS
- Raspbian 10 - Buster (32 Bit)

## Dependencies

**requires Python >= 3.7**

**[smbus2](https://github.com/kplindegaard/smbus2)** *(auto installed)*

Manual installation:
`pip3 install smbus2`

## Functionality

- BMI270 class integration
- load config file into BMI270
- write/read registers
- a few other functions (see [BMI270.py](https://github.com/CoRoLab-Berlin/bmi270_python/blob/main/src/bmi270/BMI270.py))

## Credits & Related links

- [serioeseGmbH/BMI160](https://github.com/serioeseGmbH/BMI160)
- [lefuturiste](https://github.com/lefuturiste/BMI160-i2c)
- [BMI270 Datasheet](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi270-ds000.pdf)
- [smbus2 docs](https://smbus2.readthedocs.io/en/latest/)

## Troubleshooting

-bash: pip3: command not found

`sudo apt install python3-pip`

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "bmi270",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "BMI270,I2C,IMU,sensor,driver,accelerometer,gyroscope,gyro,bosch,sensortech,smbus2,library",
    "author": "",
    "author_email": "Kevin Sommler <sommler@live.de>",
    "download_url": "https://files.pythonhosted.org/packages/82/17/cb2c6ada7152ccb7bda033dd8da4e9741de5730c1b4203808651f791fbd6/bmi270-0.4.3.tar.gz",
    "platform": null,
    "description": "# BMI270 I2C Python Implementation - Version: 0.4.3\n\nBare bones BMI270 I2C Python implementation. This was a project for my practical phase at my University and my first time working hands on with IMUs.\n\n## Installation\nThe package is [available on pypi.org](https://pypi.org/project/bmi270).\n\nYou can install this package using this command:\n\n`pip3 install bmi270`\n\nFor a Raspberry Pi Setup add/change this line in /boot/config.txt to your desired baudrate:\n\n`dtparam=i2c_baudrate=400000`\n\nReboot your Raspberry Pi after applying the change.\n\n## Usage\nMake sure these lines are connected: GND, 3V3, SDA, SCL\n\nIf you are using the SparkFun SPX-17353 BMI270 Breakout Board, you can easily connect them using a 1mm 4-pin JST connector cable. (example: Qwiic cables)\n\nMake sure that the device is available at `0x68` or `0x69` i2c address by running this command:\n\n`i2cdetect -y 1`\n\nThe BMI270 requires a config load. This initialization step is necessary to be able to use all its functions.\n\n`load_config()`\n\nA full power cycle is necessary if you want to load the config again.\n\nCheck out [examples](https://github.com/CoRoLab-Berlin/bmi270_python/tree/main/examples) for more information.\n\n## Tested with:\n- Ubuntu 22.04.2 LTS\n- Raspbian 10 - Buster (32 Bit)\n\n## Dependencies\n\n**requires Python >= 3.7**\n\n**[smbus2](https://github.com/kplindegaard/smbus2)** *(auto installed)*\n\nManual installation:\n`pip3 install smbus2`\n\n## Functionality\n\n- BMI270 class integration\n- load config file into BMI270\n- write/read registers\n- a few other functions (see [BMI270.py](https://github.com/CoRoLab-Berlin/bmi270_python/blob/main/src/bmi270/BMI270.py))\n\n## Credits & Related links\n\n- [serioeseGmbH/BMI160](https://github.com/serioeseGmbH/BMI160)\n- [lefuturiste](https://github.com/lefuturiste/BMI160-i2c)\n- [BMI270 Datasheet](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi270-ds000.pdf)\n- [smbus2 docs](https://smbus2.readthedocs.io/en/latest/)\n\n## Troubleshooting\n\n-bash: pip3: command not found\n\n`sudo apt install python3-pip`\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "BMI270 I2C Python library (bare bones)",
    "version": "0.4.3",
    "split_keywords": [
        "bmi270",
        "i2c",
        "imu",
        "sensor",
        "driver",
        "accelerometer",
        "gyroscope",
        "gyro",
        "bosch",
        "sensortech",
        "smbus2",
        "library"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6e5c234d687145bc5d989bfbd8a486cfcfc3cb2a947e7bc85458a720074fec83",
                "md5": "aa6ea5e8ef3df38527476b8d9bb6242a",
                "sha256": "c8f0fbd5913e77666a05b1d9222fd8463681732c211d990b60f993de57581c08"
            },
            "downloads": -1,
            "filename": "bmi270-0.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aa6ea5e8ef3df38527476b8d9bb6242a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17137,
            "upload_time": "2023-04-28T08:49:42",
            "upload_time_iso_8601": "2023-04-28T08:49:42.230154Z",
            "url": "https://files.pythonhosted.org/packages/6e/5c/234d687145bc5d989bfbd8a486cfcfc3cb2a947e7bc85458a720074fec83/bmi270-0.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8217cb2c6ada7152ccb7bda033dd8da4e9741de5730c1b4203808651f791fbd6",
                "md5": "f60fe4e484a1eb3d15c43d759ffa7872",
                "sha256": "15b968b8acdfd005f21f3de4deab6bab97fd58f08f3f3c7add712f51a299e2ab"
            },
            "downloads": -1,
            "filename": "bmi270-0.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "f60fe4e484a1eb3d15c43d759ffa7872",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 18551,
            "upload_time": "2023-04-28T08:49:45",
            "upload_time_iso_8601": "2023-04-28T08:49:45.470229Z",
            "url": "https://files.pythonhosted.org/packages/82/17/cb2c6ada7152ccb7bda033dd8da4e9741de5730c1b4203808651f791fbd6/bmi270-0.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-28 08:49:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "bmi270"
}
        
Elapsed time: 0.20898s