Yes, but...
I use the BNO055 on my robot and find the instantaneous rotational accuracy of the BNO055 IMU to be very good, but the drift over longer periods is real and significant. My physical encoders (0.5 degree precision) are rock solid and end up being as accurate or better than the IMU. Both end up with around 4-5% error over time.
Another issue with the BNO055 is that it needs clock stretching I2C which the Raspberry Pi default I2C drivers do not sufficiently implement. Even with well coded clock-stretching, my IMU setup results in non-fatal I2C read errors: (last column)
Code: Select all
2020-07-27 18:54|[imulog.py.logCurrentIMU]heading: 359.9 rotation: 0.0 motion: 0.0 sec errors: 25 imu reset
2020-07-27 21:21|[imulog.py.logMotionStop]heading: 0.1 rotation: 0.1 motion: 2.7 sec errors: 41
2020-07-28 03:04|[imulog.py.logMotionStop]heading: 178.2 rotation: 178.1 motion: 2.4 sec errors: 78
I would guess that over the course of a one hour viewing session, the setup will be satisfactory if you are hoping for 1 degree accuracy. If you want better, you may need to recalibrate periodically by slewing to physical stops at known angles (perhaps you have an 0 alt 0 az lock?).
The BNO055 also suffers somewhat from influence of nearby ferrous metal, and magnetic variance, you may find that rotating through 90 alt and 360 az requires maintaining a correction table. The sensor attempts to self calibrate, but my robot environment probably presents a bigger challenge than the typical wood Dobsonian mount.
The BNO055 is also not inexpensive.
Given all this, for less money you probably could build a very nice optical encoder disk with an infrared sensor on the the outer edge of the disk that could give you rock solid, precise information for your RPi to display, with human readable degree indicators for when you forgot to charge the RPi battery before going out.
Something like these edge detectors and using a large clear acrylic disk with a pattern printed on "overhead projector print stock" (clear) would allow you to design the precision you want:
https://www.robotshop.com/en/cytron-sim ... r-kit.html
https://www.robotshop.com/en/encoder-pa ... arbox.html