MothBox Open Hardware for Automated Insect Monitoring

In this post we are highlighting the Mothbox project, an open hardware tool for biodiversity monitoring.

MothBox Open Hardware for Automated Insect Monitoring

The Mothbox is an open hardware field device for automated insect monitoring, developed by Andy Quitmeyer and team at Digital Naturalism Labs in Panama. Mothbox users include conservation biologists or anyone interested in biodiversity monitoring and ecological research.

Photo of a Mothbox taken in Les Village, Bali, Indonesia. Image credit: Digital Naturalism Laboratories (DiNa Labs)

The Mothbox device integrates a Raspberry Pi computer, a high-resolution camera and specialized attractor lights for capturing images of nocturnal insects. Electronics are housed in a waterproof case with the Mothbeam attractors and camera facing a white "target" screen mounted on laser-cut acrylic arms. Insects attracted to the target are captured by the high-resolution camera. Users can easily program the Mothbox to follow a specific sampling schedule e.g. timing and duration of the bright Mothbeam attractor lights and camera image capturing schedule. This user control over sampling as well as portability and affordability of the device makes it a great tool for conservation biologists and hobbyists interested in exploring insect diversity in different habitats and conditions.

Pair of Mothbeam attractors illuminating a white "target" screen in our LA-area backyard
Image of nocturnal insects on the Mothbeam "target". Image credit: Figure 3, Szczygieł et al.,(2026) Mothbox and Mothbot: Automated light trap and dataprocessing system for scalable insect monitoring

Mothbeam Attractor PCBs

Before discussing more about the Mothbox, we wanted to also introduce an the Mothbeam attractor lights. Mothbeams are an open hardware LED board designed by Moritz Buttlar at LabLab in Germany in collaboration with the Mothbox team. There are two versions used as attractors that each have 3 different wavelength LEDs:

  • UV board: wavelengths are 365nm, 395nm, 405nm
  • Visible light board: white light, 450nm (blue) and 520nm (green)

Mothbeam boards can be easily changed with each Mothbox using up to 3 mothbeam boards. This flexibility is important for researchers that are investigating species-specific attractor wavelengths. For most general purposes users may want to start with one of each UV + Visible, but the Mothbox can be easily modified to test different combinations for attracting specific types of insects.


Mothbot open source image-processing software can be used to rapidly identify and classify collected images.

In the peer-reviewed paper "Mothbox and Mothbot: Automated light trap and dataprocessing system for scalable insect monitoring" the authors present results from proof-of-concept field deployment studies in Panama. Mothboxes were deployed across different locations and times, and the images was processed using Mothbot software. A land use study for example showed differences in species richness between mature forests, and native tree plantation compared to a non-native restoration forest.


Two Mothbox versions: DIY and Pro

There are two different versions of the Mothbox: the DIY version and the newer Pro version. The DIY version supports a "Do-It-Yourself" construction whereas the Mothbox Pro combines the electronic components of Mothbox DIY into a single printed circuit board and is designed for streamlined manufacturing. The Mothbox Pro PCB also includes an ambient light sensor, internal temperature sensor, as well as features for users to add customizations such as attaching an external temperature sensor and adding GPS to the unit.


Distributed Manufacturing of Mothbox Open Hardware

To support distributed manufacturing of the Mothbox Pro device, the Mothbox project team is partnering with Open Science Shop, a collective of open science hardware manufacturers and vendors. Open Science Shop vendors are also supporting the distributed manufacturing of the OpenFlexure Microscope.

Open Science Shop vendors in several countries are currently developing assembled Mothboxes and kits which will make it easier for users to find the parts locally and affordably, avoiding import fees and shipping costs.

IO Rodeo participates in Open Science Shop as a US-based vendor. The Mothbox Pro mainboard PCB ($75) and the Mothbeam Attractor PCBs ($16) are available from our online store.

Mothbox Assembly Instructions

There are excellent instructions for building both the DIY and Pro versions on the project website. In addition, the GOSH Community Forum has a very useful thread detailing a community users experience and notes building the Mothbox.

Mothbox Pro
Open Source Low Cost DIY Nocturnal Insect Monitoring
Replicator Team - Mothbox Pro
I am currently working on replicating the Mothbox Pro as part of the Replicator Team working out of the Machine Agency in the University of Washington’s HCDE department. I will be documenting the full process here and be giving updates throughout my Mothbox journey!

Additional Parts & Tools Required

In addition to the Mothbox Pro PCB and Mothbeam Attractor PCBs, you will need several more electronics items including a Raspberry Pi 5 4GB or higer, Arducam Owlsight camera, Epaper display and a battery. All of the parts with links to vendors can be found on the Parts page.

Parts
Open Source Low Cost DIY Nocturnal Insect Monitoring

IO Rodeo Mothbox Build

For informational purposes we have included some images from assembly of a Mothbox Pro, but we encourage readers to check out the official instructions listed above.

Mothbox Pro PCB before assembly
Installing Mothbeam PCBs: The Mothbeam PCBs attach directly to the PCB by the connector headers. You can use up to 3 Mothbeams per Mothbox.
Attaching the camera and ePaper Display: For this step you will need a camera and 3D-printed parts and zip ties
Mounting the ePaper display: This image shows the ePaper display after use.
Mounting the Raspberry Pi
Final assembled electronics
Waterproof enclosure: For now we are still using the Plano acrylic case that we used for the DIY version. However, the Mothbox team have developed a new 3D-printed version of the case for the Pro version, which we are excited to try soon (see Next Steps).

Example Data Collection

We have been testing both the Mothbox Pro and DIY versions. The Mothbox is mounted to a tree in the backyard of our LA-area space. Some sample images are shown below from data collected over 5 consecutive nights.

Mothbox DIY version sampling at night in LA

Next Steps:

These next steps will be featured in future Mothbox blog posts.

  1. Waterproof Enclosure: Currently we have been using the DIY version Plan acrylic case. However, the Mothbox Pro has a new 3D-printed enclosure, so likely we will test that printing and using this next.
  2. Mothbot: We have collected alot of images during our testing. The next steps will be to use the Mothbot processing and classification software tools.