barnaclebill - Has anyone found an accurate com...

Has anyone found an accurate compass/IMU/AHRS for use with SensESP or is pypilot the best choice?
5 Replies
tobi42
tobi426d ago
there's the esp32-based (not using SensESP, tho) https://github.com/htool/ESP32_Precision-9_compass_CMPS14/ by @HansT which looks kinda promising, but i'm still having compass drift issues on the lab bench.. other than that, the code itself doesn't look too complicated, so it'd probably be reasonably easy to port it to SensESP and make it spit out SK data over wifi instead of N2K over CAN maybe the compass drift goes away if you put the board on an actual moving vessel, I just don't have the time for that kind of testing right now.
barnaclebill
barnaclebill4d ago
The drift does not go away. I have made several compasses based on that chip (Bosch BNO085, same in CMPS14). It's a great chip for consumer electronics but not particularly good for heading. This weekend I found this repo: https://github.com/jremington/ICM_20948-AHRS and made a compass based on that IMU, which seems to be working much better. It's one of the IMUs that is recommended for Pypilot. Calibration is fairly simple and based on a sketch and some python processing code. Unlike the CMPS14, there's no fusion code, hence the need for the Mahony library.
tobi42
tobi424d ago
i'm still hoping that I can revive / repurpose the ST4000 autopilot and especially the fluxgate compass that's mounted on our boat.. might need a new display/head unit, tho.. the one we got has suffered baaaad UV damage because obviously nobody thought it necessary to put the sun cover on when it's not in use
barnaclebill
barnaclebill3d ago
Would the SK Autopilot plugin make a display unnecessary?
tobi42
tobi422d ago
not sure... and i like most of my stuff to be at least "manually usable" without SK. raspis can break, sd-cards will fail, etc.. there's a shop in the US that sells replacement LCD screens for like 70$, which i'd be okay with.. but then USPS comes along and wants another 57$ for shipping to germany. what the actual F?
Want results from more Discord servers?
Add your server