This is a little risky… but it worked beautifully to remove this 5 KHz EWL-sourced noise from my hippocampal tetrode recordings, and may be worth it depending on your goals. Essentially, you’ll need to build a “reverse” Faraday cage surrounding the entire miniscope, including the base that inserts into the baseplate during imaging. For the main body of the miniscope, you can wrap it in a layer of copper mesh, with a thin wire extending to a common ground running alongside the coax cable.
The risky part comes with the base of the miniscope, since it fits tightly into the baseplate and you can’t really wrap anything around it. I tried silver conductive paint, but it didn’t eliminate the noise. Fortunately, this part is already metal, so you really just have to connect it to a ground. To do this, I tucked a super thin copper wire in this tiny gap between the metal base and the plastic architecture above it, soldered it (for extra stability), and then connected this wire to the copper mesh shield around the main body. I usually solder at least two wires on opposite sides of the base in case one breaks from experimental wear and tear. So far, the noise has not returned!
Note: soldering will slightly burn the plastic near the metal base, so I recommend using a scalpel tip to smooth out any rough spots before starting experiments.
If anyone's interested in trying this, happy to chat more here or over email!