12-24-2020 12:05 PM
I have recently created a custom PCB which includes a 16mhz atmega32u4 at 5v, a BNO055 (over i2c, with 32.768 KHz external crystal). I am having a problem with the BNO055 in that the adafruit library is not working nor the custom code written by my end. But when I use the same code on the ADAFRUIT module it works like a charm. The self-test always reports that everything works the system does not report any errors. I am attaching my Ckt diagram please do help me out here.
12-25-2020 03:40 AM
Hello subhajit_sarkar,
After check your schematic,
1.Which clock source you used? According you schematic, it had external crystal support. If you used external clock source, you should check CLK_SEL first, and connect the crystal oscillator pin with an oscilloscope to check whether the crystal oscillator starts to oscillate.
2. For the reset circuit, I am not sure this reset circuit will work Reliably. The usual method is to reset power, not GND
3.In the following schematic, you need check teliability of level conversion(3.3V to 5V, 5V to 3.3V).
Some IC like 74LVC4245 could send and receive directions translating.
4. With your selftest, what does it test? Could you read BNO055 chip ID?
12-25-2020 07:12 AM - edited 12-25-2020 07:53 AM
Thank you BSTRobin for the quick reply , I have Shorted the R6 resistor so it directly connects to the ground plane. VBUS is 5V and instead of BSS138 what would be the ideal IC or FET for this circuitry?
And the Code I am using is the adafruit Library which has an external crystal attached to it.
https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/arduino-code
Thank you In advance.
This is my Output
Calibration status values: 0=uncalibrated, 3=fully calibrated
CALIBRATION: 0 SYS=0 GYR=0 ACC=0 MAG=0
ST RESULT: 1111 MCU OK GYR OK MAG OK ACC OK
SYSTEM STATUS: 0 - System idle
SYSTEM ERROR: 0 - No error
OPERATION MODE: NDOF
POWER MODE: NORMAL
CALIBRATION: 0 SYS=0 GYR=0 ACC=0 MAG=0
Accelerometer (m/s^2) X =0.00, Y=0.00, Z= 0.00 and all the sensors are showing me tis 0.00 output.
12-30-2020 03:36 AM
Hello subhajit_sarkar,
From your log information, all calibration status were 0.
Suggest you check it from sensor initialization code, capture I2C HW waveform to compare with your application code.Like read chip ID, sensor register wirte, read.
12-31-2020 11:41 AM
Here is what I am getting