Hi everyone,
I’m working on an e-bike project using the SparkFun NEO-M8U-06B GPS Dead Reckoning Breakout with an ESP32-S3.
I’m using the SparkFun u-blox GNSS Arduino Library and communicating with the module over UART.
I’m having some trouble understanding how automatic IMU alignment and Fusion initialization work, especially when the module is restarted or removed from its mounting.
My setup:
- GNSS module: SparkFun NEO-M8U-06B
- MCU: ESP32-S3
- UART baud rate: 115200
- Backup supply: Onboard battery connected to V_BCKP
- The NEO-M8U remains powered independently of the ESP32.
- I’m using UBX-NAV-PVT, HNR-PVT, ESF-STATUS and ESF-ALG messages.
The module is mounted upside down on my e-bike, with X pointing left, Y pointing towards the rear and Z pointing down.
What I’m experiencing:
Sometimes the receiver stays in “INITIALIZING” for a long time before entering Fusion. It can take quite a bit of riding before Fusion becomes active.
I want to make sure I’m handling the alignment and receiver configuration correctly.
A few questions:
1. Once automatic alignment reaches “FINE”, are the calculated mounting angles retained? What happens if the main power is interrupted but V_BCKP remains powered?
2. If I remove the module for maintenance and reinstall it a few hours later in exactly the same orientation, will it retain its previous alignment? What if its mounting angle changes slightly?
3. Is it recommended to save the automatically calculated alignment angles as user-defined angles using UBX-CFG-ESFALG? If so, what is the correct way to do this?
What I’m trying to achieve:
I want the NEO-M8U to handle GNSS and dead reckoning independently, while the ESP32 handles the application and reads the navigation data.
Ideally, I would like to complete alignment once during initial setup, retain the correct mounting configuration, and avoid unnecessary realignment or configuration changes every time the ESP32 restarts.
I’d appreciate any suggestions or experience from people who have used the NEO-M8U in vehicle or bicycle applications.
Thanks in advance!