Skip to content

Conversation

BojanSof
Copy link

Add driver for Bosch BHI260AB/BHI260AP smart sensors.
Add sample that fetches the Game Rotation vector from the sensor.

Uses the Bosch BHI2XY Sensor API for interfacing with the sensor, added the repo as dependency in the manifest.

  • Currently, only the Fetch and Get Sensor API is implemented.
  • The sensor requires firmware file to work properly. Currently, only uploading the firmware file to RAM is supported. The firmware file is currently specified via KConfig property and added in the .rodata section with the linker (embed_file CMake script).
  • Added few new sensor channels, including:
    • Separate channels for game rotation vector components (X, Y, Z and W)
    • Separate channels for rotation vector components (X, Y, Z and W)
    • Separate channels for describing orientation using euler angles (Heading, Roll and Pitch)
    • Channel for step counter
  • Only the I2C communication was tested with the provided sample
  • The sample includes the firmware file for the sensor

Add driver for Bosch BHI260AB/BHI260AP smart sensors.

Signed-off-by: Bojan Sofronievski <[email protected]>
Copy link

Hello @BojanSof, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

Copy link

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
bhi2xy 🆕 N/A (Added) boschsensortec/BHI2xy_SensorAPI@177681d (master,v1.6.0) N/A

DNM label due to: 1 added project

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Copy link

@@ -110,6 +112,13 @@ manifest:
revision: da246018ebe031e4fe4a8228187fb459e9f3b2fa
groups:
- babblesim
- name: bhi2xy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Embed sensor firmware file
# First, check if the firmware file exists in the project root.
# Then, copy it to the build directory for the driver and rename it to a fixed name.
# Finally, embed it into the driver as binary blob.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants