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.
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 for more information.
Tested with:
- Ubuntu 22.04.2 LTS
- Raspbian 10 - Buster (32 Bit)
Dependencies
requires Python >= 3.7
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)
Credits & Related links
Troubleshooting
-bash: pip3: command not found
sudo apt install python3-pip
Metadata
Release files for bmi270 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bmi270-0.4.3.tar.gz | 18.6 kB | Without provenance | Details for bmi270-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bmi270-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for bmi270-0.4.3-py3-none-any.whl |
Total release size: 35.7 kB
Release files / bmi270-0.4.3.tar.gz
| Download URL | bmi270-0.4.3.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15b968b8acdfd005f21f3de4deab6bab97fd58f08f3f3c7add712f51a299e2ab
|
|
BLAKE2b-256 checksum How to use checksums |
8217cb2c6ada7152ccb7bda033dd8da4e9741de5730c1b4203808651f791fbd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / bmi270-0.4.3-py3-none-any.whl
| Download URL | bmi270-0.4.3-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8f0fbd5913e77666a05b1d9222fd8463681732c211d990b60f993de57581c08
|
|
BLAKE2b-256 checksum How to use checksums |
6e5c234d687145bc5d989bfbd8a486cfcfc3cb2a947e7bc85458a720074fec83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for bmi270 0.4.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.