08-01-2024 07:19 PM
Dear Team,
We are currently trying to use the BHI360 Shuttle Board 3.0, connected over SPI with the Raspberry Pi 4B/5. We are using the 1.8V logic, with the appropriate level shifters. Could you please advise us whether a sample code is available for the Raspberry Pi environment to check the functionality? If not, could you please share helpful pointers to begin with?
Solved! Go to Solution.
08-12-2024 02:01 PM
Hi abhayrjoshi,
Thank for your inquiry.
Official BHI360 sensor API & example code(https://github.com/boschsensortec/BHY2_SensorAPI) was written by C language, can be easy migrated to different platform. bhy2_spi_read(), bhy2_spi_write(), bhy2_i2c_read(), bhy2_i2c_write(), and bhy2_delay_us() are interfaces related to platform hardware, and you only need to implement them, then you can access BHI360.
2 weeks ago
Thank you, @BSTRobin. I used the pigpiod APIs for I2C and it works, with a TSX0104 Level Shifter (for 3.3V and 1.8V).