Three years ago we installed a camera to our microscope using a Raspberry Pi High-Quality Camera module and USB interface.

Today I tried to use the camera and microscope but found the image from the camera was very dark and covered in a random pattern across the entire image with a white film obscuring the image.

With the camera removed from the microscope and the lens mounting ring separated from the module PCB, we found that the infrared filter in front of the sensor was covered in a white fungus substance.

Fungus on the IR filter
Fungus on the IR filter before cleaning.

This fungus covered both sides of the infrared filter.

Filter fungus
Looking at the Infrared filter through the microscope.

The microscope and camera module have always been stored indoors at a temperature between 18°C and 25°C and the humidity in the loft workshop is the same throughout the year.

Searching for other Raspberry Pi camera owners with the same issue found a lot of posts and results so it seems to be a common issue with these camera modules.

Cleaning the Infrared Filter

We initially tried using isopropyl alcohol to clean the filter using cotton swabs, but this did not completely remove the fungus. One recommendation online was to use white and after purchasing a bottle at the local store this quickly removed the fungus from the filter.

This left a dirty surface on the filter so we used a small amount of ZEISS Lens Cleaning Spray and cotton swabs to carefully clean both sizes of the filter.

Once the lens was clean we used a camera Rocket Air Blower to remove any traces of dust from both sides of the filter and the sensor and then reassembled the camera module.

After cleaning
The IR filter after cleaning.

The camera was then reattached to the microscope and connected to the PC for testing to confirm the restored image quality.

We can now use the microscope again and capture images and videos.