Skip to main content

Anglerfish

danger

It is always advisable to first flash the software and then build the microscope around it.

The Anglerfish is a derivative from the Matchboxscope. It has a "Angel" (German: fishing-rod) for hunting microbes, fishes, bacteria, algae...that can grow on a surface - under water! Yes! We want to capture the biofilm that will grow on transparent surfaces over time under water to get an idea what's happening. The core idea is to build an ESP32-based microscope, which fits into a watertight container. You focus it once to see the furface of the container sharp and release it into the wild, where it will capture images periodically.

While designing the Anglerfish - which actually looks like an anglerfish considering the "Angle" - we experimented with many different design configurations and consdierations.

One way of doing it, but way too complicated

There are great threads on building watertight assemblies using PVC tubes (LINK) or 3D rinted parts (LINK, PRUSA). However, one day (actually during cooking something) we came across the idea of using jars from jams.

A quick survey led to the point that most countries have Bonne Maman jars in their supermarket shelves. An ideal starting point for frugal microscope submarines! Still curious? Continue reading! :-)

The Anglerfish shares many aspects with the Matchboxscope, hence it may be worth to also have a look here

Logo

NEW !!!! We have a Youtube Video hat guides you through the process of building your own Anglerfish: https://www.youtube.com/watch?v=XuOOWYZesqA&feature=youtu.be

https://img.youtube.com/vi/XuOOWYZesqA/mqdefault.jpg

Anglerfish APP

  • There is a new app that can be used with the anglerfish/espressoscpe

https://github.com/Matchboxscope/Anglerfish-APP

CAD Files

The release files can be found https://github.com/Matchboxscope/Matchboxscope/releases/download/ESPMicroscopeCollectionv2/CAD_Anglerfish.zip

Assembly

We will give you a step-by-step guide how to assemble the hole microscope. If anything fails or doesn't match as expected (most likely), please file an issue immediately. We will be there for you. Most of the steps below are very similar to the Matchboxscope. only the way the screws for focusing the sample are oriented differently.

Making it watertight

The jar is fun and all nice, but what if the glass shatters? Instead, we used one of these boxes EMSA Clip & Close Frischhaltedosen 3-teiliges Set. They have been proven to be 100% waterproof! Yay!

In order to observe biofilm growth on the surface, we need to add the "angel" or the illumination. For this the 3D printed holder that adapts the toslink fiber has to be added to the lid of the enclosure. We use hot glue, but need to make sure the surface is roughened in order to be sticky. For this we use sandpaper:

Once, done, the assembly, with the ESP32-based microscope inside the lunchbox looks like this:

Components

This you will need for your device in order to work:

Explosion

Bill of material

PartPurposeSourcePrice
ESP32-CAM (MB)+USB boardBetter get two, one may break..Ebay6-15€
USB Micro Cable1€
M3 Screws (Cylindrical head, 15mm, 8mm)
3D printing material (PLA)
Aluminium foil (sticking if possible)
Sticky tape
Springs
Bonne Maman glass (empty)0€
TP5400 USB/LiIon AdapterFor charging the battery/powering the ESP[Ebay](https://www.ebay.de/itm/143958030411?mkcid=16&mkevt=1&mkrid=707-127634-2357-0&ssspo=tg9hdLAtSmS&sssrc=204

[20:48, 19/03/2023] Béné: e.g. https://www.ebay.de/itm/324749044039?chn=ps&norover=1&mkevt=1&mkrid=707-159967-267642-0&mkcid=2&mkscid=101&itemid=324749044039&targetid=1325693166479&device=c&mktype=pla&googleloc=9042960&poi=&campaignid=12876320283&mkgroupid=125994436481&rlsatarget=pla-1325693166479&abcId=9300534&merchantid=7364532&gclid=CjwKCAjw5dqgBhBNEiwA7PryaPRjxD7U3CpUKItc_oP3fbxZbc0xvlxemE4Nx35z96mbkj4LcBbQ1xoCLX8QAvD_BwE [20:49, 19/03/2023] Béné: will need to update this I gues.. [20:49, 19/03/2023] Béné: https://matchboxscope.github.io/docs/Anglerfish#bill-of-material [20:50, 19/03/2023] Béné: https://www.ebay.de/itm/182447564721?chn=ps&norover=1&mkevt=1&mkrid=707-134425-41852-0&mkcid=2&mkscid=101&itemid=182447564721&targetid=1404115578933&device=c&mktype=pla&googleloc=9042960&poi=&campaignid=17935704717&mkgroupid=139162549385&rlsatarget=pla-1404115578933&abcId=9301059&merchantid=112404474&gclid=CjwKCAjw5dqgBhBNEiwA7PryaPoy3WizWYFivmCYP5YPe8AC5FrwA42xULsq8vTyBEQsmordf_AhMRoCrP0QAvD_BwE

3D printing files

All design files can be found in the folder INVENTOR.

All 3D-printable files can be found here:

  • Anglerfish_JAR_Anglerfish_Jar_Adapterplate_v1_12.stl
  • Anglerfish_JAR_Anblerfish_middle2_v1_1.stl
  • Anglerfish_JAR_Anglerfish_bottom_v0_2.stl
  • Anglerfish_JAR_Anglerfish_Lightperiscope_long_V0_21.stl

Assembly Process

These are the parts you need

Removing camera lens

Be careful! This is the most crucial part! Hold the camera sensor and unswrew the lens. Try not to touch the Flatband cable.

Mount the camera lens in the tube

If the tube doesn't match the diameter of the lens, warm the plastic to make it bendable.

Add the camera sensor to the hole. It should be "pressfit".

The flatband has to be folded in the next step. Be careful: It may break and ruin the camera

Assembling the case

Close the casing with M3x20 screws

For adding a "spring-loaded" mechanism, use the foam in the packaging of the ESP32 and cut a hole into the center

Add the foam to the lens-tube assembly

Add the baseplate to the JAR. This should be "press-fit"; if it doesn't work out of the box, place the jar on a hotplate (stove) and warm it up to ~50-80°C, gently push the plate as close to the glass as possible.

Assembling the electronics (optional)

Autofocus

What ou need:

  • M12 CCTV Lens voice coil motor (Aliexpress Link, ca. 5-25€)
  • BD809 or any NPN transistor that can run 100mA
  • soldering skills
  • some wires

For the CCTV lens that can displace the objective lens, we create a simple electronic curcuit. It's task is to amplify the current from the GPIO12 that is limited to ~20-30mA. For this you can use any NPN transistor. Here we use the BD809. The 5V from USB are connected to the lens pin (solder it, be careful to not rip it apart). The lens- goes to the collector of the transistor. The base is connected to the singalling/PWM pin GPIO12. Emitter goes to GND:

Assembly:
  1. unscrew the lens

  2. Insert the lens from the ESP32 camera into the 3d printed M12 adapter

  3. Add the wires to the 3d printed assembly

  4. Organize the wires and make sure no blank wires (also transistor) are visible

Full Assembly in the Jar with Lens:

Don't get confused. The green board is just a holder for the NPN transistor that matches the shape of the ESP32. The circuit diagramm stays the same.

Powersupply

In one older design we used a home-made USB powerbank so that the full assembly fits into a jar. Alternatively you can use any powerbank that fits into your water tight assembly. The more mAh the better.

Assembly:

Solder a USB cable or siply two wires to the 5V/GND of the ESP32 on one end. The other end goes to the large USB or 5V/GND of the TP5400. This is the supply voltage.

The Litium Ion battery will be connected to the TP5400 input (B+/B-)

Make sure you do not create a shortcut! => Place everything in plastic bag.

Electronics

You would need to change the settings in this file and compile the code accordingly: https://github.com/Matchboxscope/matchboxscope-simplecamera/blob/matchboxscope/main/camera_pins.h

Wired Version (Anglerfish)

DefinitionPin
ACCELSTEPPER1
STEPPER_MOTOR_DIRD2
STEPPER_MOTOR_STEPD1
STEPPER_MOTOR_ENABLED0
STEPPER_MOTOR_M1-1
STEPPER_MOTOR_M2-1
STEPPER_MOTOR_M3-1
STEPPER_MOTOR_NOTRESET-1
STEPPER_MOTOR_NOTSLEEP-1
NUMPIXELS16
NEOPIXEL_PIND6

Standard Configuration

DefinitionPin
STEPPER1
motorPin1D7
motorPin2D8
motorPin3D9
motorPin4D10
NUMPIXELS16
NEOPIXEL_PIND6
STEPPER_MOTOR-
STEPPER_MOTOR_STEPS200
STEPPER_MOTOR_SPEED20000

Alternate Configuration

DefinitionPin
NUMPIXELS16
NEOPIXEL_PIND9
STEPPER_MOTOR_DIRD7
STEPPER_MOTOR_STEPD0
STEPPER_MOTOR_ENABLED6
STEPPER_MOTOR_M1-1
STEPPER_MOTOR_M2-1
STEPPER_MOTOR_M3-1
STEPPER_MOTOR_NOTRESETD2
STEPPER_MOTOR_NOTSLEEPD1
STEPPER_MOTOR-
STEPPER_MOTOR_STEPS200
STEPPER_MOTOR_SPEED20000

Board Version

DefinitionPin
STEPPER_MOTOR_DIRD8
STEPPER_MOTOR_STEPD7
STEPPER_MOTOR_ENABLED9
STEPPER_MOTOR_M1-1
STEPPER_MOTOR_M2-1
STEPPER_MOTOR_M3-1
STEPPER_MOTOR_NOTRESET-1
STEPPER_MOTOR_NOTSLEEP-1
NUMPIXELS16
NEOPIXEL_PIN-0

Solder-less Version

DefinitionPin
enD6
m1D5
m2D4
m3D3
notresetD2
notsleepD1
stpD0
dirD7

Microscope in the bottle => focus!

Mount the camera assembly to the jar baseplate:

Adjust the focus by first turning on the ESP32 and connect to the Wifi (SSID: Matchboxscope). Open the page http://192.168.4.1. Make a mark on the glass surface in front of the objective lens (has to be removed afterwards!). Turn the three focusing screws such that you create a sharp image of the mark on the glass.

Final assembly

Put everything together and close the lid. Only connect the USB cable if you are close to your experiment.

Mount the LED with hotglue (use a lot)

Setting up the software

Comming soon