- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to set up the code for the BNO055 sensor but I am a bit confused about how to write the .c file. I've been looking at the sample code produced by Bosch (https://github.com/BoschSensortec/BNO055_driver/blob/master/bno055.c) but I only need to read the quaternion orientation and the linear acceleration so I don't what to look for exactly. Any help would be great! Also, any sample codes would be greatly appreciated!
Solved! Go to Solution.
- Labels:
-
PSoC general
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @rbtics,
Can you please let us know the device you are using?
I believe you should start by defining the I2C driver functions in the bno055_support.c file. These functions provide the underlying support for the device to communicate with the sensor.
If the I2C drivers are implemented, you should be able to include the files directly and work with the sensor as the sensor APIs use these I2C driver functions. Once the drivers are implemented you can check the status of init to ensure that the communication is established or to figure out the issue if any.
Based on the device that you have selected, you can refer to the I2C component datasheet (or PDL/HAL API reference guide in case of PSoC 6) for the PSoC I2C driver APIs that you can use.
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @rbtics,
Can you please let us know the device you are using?
I believe you should start by defining the I2C driver functions in the bno055_support.c file. These functions provide the underlying support for the device to communicate with the sensor.
If the I2C drivers are implemented, you should be able to include the files directly and work with the sensor as the sensor APIs use these I2C driver functions. Once the drivers are implemented you can check the status of init to ensure that the communication is established or to figure out the issue if any.
Based on the device that you have selected, you can refer to the I2C component datasheet (or PDL/HAL API reference guide in case of PSoC 6) for the PSoC I2C driver APIs that you can use.
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By device, do you mean the CY8C4248AZI-I485?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I was referring to the target device.
As you are using a PSoC 4 device you can refer to the PSoC 4 SCB Component Datasheet for I2C APIs.
Rakshith M B