SunFounder IMU is a python library for Raspberry Pi.
Quick Links:
SunFounder IMU is a python library for Raspberry Pi. It provides a simple interface to access many IMU sensors.
Install SunFounder IMU directly from GitHub repository.
pip install git+https://github.com/sunfounder/sunfounder-imu-python.gitOr clone the repository and install it.
git clone https://github.com/sunfounder/sunfounder-imu-python.git
cd sunfounder-imu-python
pip install .You may need to install with --break-system-packages
pip install git+https://github.com/sunfounder/sunfounder-imu-python.git --break-system-packages
# Or
pip install . --break-system-packagesOr install it under virtual environment.
python3 -m venv venv
source venv/bin/activate
pip install git+https://github.com/sunfounder/sunfounder-imu-python.git
# Or
pip install .You will need to calibrate the sensor before using it.
python3 -m sunfounder_imu.calibrateAPI reference is auto generated by Sphinx. But you need to create rst file manually.
cd docs
rm source/api
sphinx-apidoc -f -d 1 -e -M -P -T -o source/api ../sunfounder_imu-fForce to overwrite existing files.-d 1Set the maximum depth of the module documentation.-eput documentation for each module on its own page.-Mput module documentation before submodule documentation.-Pinclude "_private" modules.-Tdon't create a table of contents file.-o source/apiSpecify the output directory for the generated rst files.../sunfounder_imuSpecify the path to the sunfounder_imu package.
sudo pip uninstall --break sunfounder-imu -y && sudo pip install --break git+https://github.com/sunfounder/sunfounder-imu-python.git
sudo pip uninstall --break sunfounder-imu -y && sudo pip install --break ~/sunfounder-imu-python/ --break-system-packages --no-deps --no-build-isolation
sudo pip install ~/sunfounder-imu-python/ --break-system-packages --no-deps --no-build-isolation
sudo python3 ~/sunfounder-imu-python/examples/read_all_data.py
sudo python3 ~/sunfounder-imu-python/examples/calibrate.pySunFounder is a technology company focused on Raspberry Pi and Arduino open source community development. Committed to the promotion of open source culture, we strives to bring the fun of electronics making to people all around the world and enable everyone to be a maker. Our products include learning kits, development boards, robots, sensor modules and development tools. In addition to high quality products, SunFounder also offers video tutorials to help you make your own project. If you have interest in open source or making something cool, welcome to join us!
website: www.sunfounder.com
E-mail: [email protected], [email protected]