2025-08-18 10:42 AM
I am working on my custom PCB and trying to get serial output from a BNO055 (via I2C) and a SEN0257 (analog sensor).
I can successfully upload and run SPI code for the SD card, and it works.
My servo motors also work fine with uploaded code.
However, when I try to use the BNO055, I shared the schematic and my code, I get no data on the serial monitor.
I checked my PCB: there is no short circuit on the MCU or sensor circuits.
On the I2C bus, I can measure 3.3V from the SCL and SDA pull-up resistors.
For reference, here is the code I’m using for the BNO055:
https://github.com/yzeybek/BNO055_TEST/blob/main/Core/Src/main.c
On the SEN0257, I can measure an analog voltage when the sensor is plugged in, but still no data appears on the serial monitor.
Here is the code for SEN0257:
https://github.com/yzeybek/SEN0257_TEST