When I added a TF Mini-S LiDAR to my drone, the GPS could not get a fix as long as the LiDAR was powered on. I traced it to EMI from the LiDAR.

Speed spike from GPS glitch
Figure 1: A GPS glitch in the flight log: position jumped so far that the calculated speed exceeded the speed of sound. This is clearly a GPS error, not actual movement.

Symptoms

With a Benewake TF Mini-S LiDAR and a u-blox M8N GPS on the same frame, the GPS couldn’t acquire satellites. When I disconnected the LiDAR, the GPS came right back.

The TF Mini-S fires its laser at high frequency, and that switching noise leaks into the L1 GPS band (~1.575 GHz). It is a known issue in the ArduPilot community, and it shows up as a GPS that never gets a fix, a satellite count that keeps dropping, or random GPS glitch errors mid-flight.

Before I tracked down the cause, the glitches brought the drone down. On the ground, Mission Planner kept refusing to arm with “GPS glitching” even though it reported a 3D fix.

Tarot 650 upside down in a rosemary bush after a crash
Figure 2: After a crash caused by GPS glitches on 03/02/2024, upside down in a rosemary bush.
Tarot 650 flipped over on a gravel field after a crash
Figure 3: Flipped over on the gravel field, 03/02/2024.
Mission Planner HUD and message list repeating PreArm and Arm: GPS glitching
Figure 4: Mission Planner on 03/02/2024. The flight controller would not arm and logged "GPS glitching" again and again, with a 3D fix shown.
You need to shield both the LiDAR and the GPS. Shielding just one side isn't enough if they're close together.

Shielding tests

Test 1: no LiDAR

The GPS locked on quickly, so the receiver itself was fine.

GPS log with no LiDAR and no shield
Figure 5: GPS log for the baseline with no LiDAR connected. Stable satellite count and position.

Test 2: unshielded LiDAR near the GPS

With the unshielded LiDAR near the GPS, the lock became unstable. The LiDAR was the noise source and needed shielding.

GPS log with unshielded LiDAR near GPS
Figure 6: Testing GPS instability with unshielded LiDAR in close proximity.
Satellite count drop
Figure 7: Satellite count drop observed during LiDAR-on period.

Test 3: shielded LiDAR, unshielded GPS

Wrapping the LiDAR in copper tape helped a lot, but the shielded LiDAR still caused problems when it sat right next to the GPS.

So the GPS needed shielding too, without blocking the satellite signals. I covered only the bottom and sides: a copper-clad plate under the GPS canopy blocks noise coming up from the LiDAR and leaves the top of the antenna open to the sky. The flight controller also sits nearby, so I checked it next.

GPS log with shielded LiDAR, no GPS canopy
Figure 8: Improved GPS lock with shielded LiDAR at normal separation.
GPS instability at close range
Figure 9: Residual instability when shielded LiDAR placed too close (GPS canopy also needed).

Test 4: shielded LiDAR near the flight controller

I moved the shielded LiDAR right next to the flight controller (FC) and toggled it on and off. The GPS stayed stable and the FC behaved normally, so the copper tape contains the noise well enough even at close range.

Shielded LiDAR moved close to flight controller
Figure 10: Shielded LiDAR placed close to the flight controller for the interference check.
GPS log with LiDAR ON near FC
Figure 11: GPS log with LiDAR powered ON near the FC. No anomalies detected.

Test 5: final setup

With the LiDAR back in its original position and both shields in place, the GPS was stable throughout.

Shielded LiDAR and GPS canopy, final hardware
Figure 12: Final shielded LiDAR and copper-clad GPS canopy in the operational mount position.
Final LiDAR mount on drone frame
Figure 13: Final LiDAR mount under the drone frame with shielding applied.
GPS log, stable in final shielded configuration
Figure 14: GPS log showing stable position throughout the final shielded configuration test.

Flight test

On an evening flight on March 18, the GPS held a fix the whole time in both GUIDED and AUTO modes without glitches.


What worked

Configuration GPS Stability
No LiDAR Stable
Unshielded LiDAR, canopy unshielded Unstable
Shielded LiDAR, canopy unshielded Mostly stable (proximity-sensitive)
Shielded LiDAR + shielded canopy Stable

Wrap the LiDAR in copper tape (or single-sided PCB, copper side out) and add a copper-clad plate under the GPS canopy. Hot glue holds it all together.


References