HW: Explorer 16/32, 8MHz, PIC24FJ256GB110 PIM
SW: MPLABX, MCC, terminal via UART1/USB
Slave: BNO055 Absolute Orientation Sensor
Aims: Output data to terminal via UART.
PIN Config:
Debug (PGEC2- pin 26, PGED2 - Pin 27) Previously Tested.
I2C (SCL - Pin 66, SDA - Pin 67)
UART (Tx - 50, Rx out - Pin 49 in ) Previously Tested.
Hi Peeps,
Upgraded my stuff to the above, familiarised myself with pin assignments Oscillator setting etc.
Am now trying to communicate with the sensor using the MCC for the I2C Oscillator & UART.
I've downloaded the Bosch Sensortec Quickstart Manual & Data Sheet as per below...
https://ae-bst.resource.bosch.com/media/_tech/media/application_notes/BST-BNO055-AN007.pdf
https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BNO055-DS000.pdf
and the driver bno055.c, header bno055.h, & support file from
https://github.com/BoschSensortec/BNO055_driver
I'm now trying to create the main.c file with the appropriate calls.....
My issue is linking the bno055.c write bus command to the driver to the MCC created I2c.c
Looking at the I2C.c file the write Bus command is "(I2C1_MasterWrite)" whereas the bno055.c uses "BNO055_I2C_bus_Write"
The quick start suggests creating a struct to hold the device information, but to me (a novice) it looks like it's already done in bno055.h at line 324?
So ......been messing with this for a week now...getting nowhere.
I'm thinking I need to break this down into a really simple single transmission to prove output to the Sensor but linking to the I2C control is mind boggling.
Any thoughts or suggestions would be appreciated.
Regards
Les