Makers Army
Articles

Project Ideas

This Glowing Camera Box Takes Photos of Moths While You Sleep

The open Mothbox project combines light, a camera and a target surface to help document nocturnal insects.

By Sam 9 November 2026
A Mothbox insect monitoring device lit at night
A real Mothbox in the project documentation. Digital Naturalism Laboratories, CC BY 4.0; resized.

This Glowing Camera Box Takes Photos of Moths While You Sleep

This might be the most interesting use of a camera box I've seen in a while.

The Mothbox is an open project that uses lights, a camera and a target surface to photograph insects at night. It was developed for insect monitoring, including work in the forests of Panama, and the team shares information about the hardware and software so other people can build and adapt the design.

The result looks a bit like a tiny space station for moths. More importantly, it gives researchers and curious makers another way to see the creatures they might otherwise walk straight past.

This isn't a ten-dollar weekend build, and it isn't a machine that can reliably identify every insect for you. The team describes a substantial electronics project, with costs in the hundreds of US dollars and human review still needed when analysing the pictures.

But the idea is brilliant: give the subject somewhere to land, light it consistently and let a camera collect images while you're not standing there holding a torch.

What are we looking at?

A real Mothbox deployed outdoors with its target surface and camera housing

A Mothbox deployment shown in the project documentation. Image: Digital Naturalism Laboratories / Mothbox, CC BY 4.0; resized.

The Mothbox combines a camera and lights in a portable housing with a target surface positioned in front of them. Nocturnal insects attracted to the light can land on the surface, where the camera records photographs.

The researchers describe the device as an automated light trap for monitoring. The goal is to create useful observations, not to claim that a photograph automatically tells the whole story about the number or identity of insects in an area.

The project is the work of a wider team, including Digital Naturalism Laboratories and collaborators. Its 2026 research paper discusses the hardware, field use and the accompanying image-processing workflow. The project site has the build documentation and current versions.

Why build a box for this?

One photograph of a moth is lovely. A consistent series of photographs can also help people investigate which insects appeared at a particular place and time.

The design tries to keep the camera and target in a repeatable relationship. Instead of a person chasing every visitor around with a phone, the device can work to a schedule and collect many images for someone to examine afterwards.

That doesn't mean it sees every insect, or that the light has no effect on what shows up. The authors discuss the limitations involved in automated monitoring, including what the camera can resolve and how observations must be interpreted. Lighting, location, weather and the target setup all matter.

For makers, the transferable idea is repeatability. The value isn't just in a camera or a bright lamp. It's in arranging the parts so the result can be compared and understood later.

It started as a proper making problem

Mothbox devices and components on the project workshop bench

Mothbox hardware on a workshop bench, shown in the project's documentation. Image: Digital Naturalism Laboratories / Mothbox, CC BY 4.0; resized.

The team has developed more than one version. Its site currently describes a DIY version assembled from parts and a Pro version designed around a more streamlined electronics arrangement. The research paper explains that both share the goal of producing useful insect photographs, but their construction and configuration differ.

The documented Pro setup includes a Raspberry Pi, a high-resolution camera, lights for attracting and photographing insects, a battery and a protective housing. The target is held in front of the camera. Those are the authors' documented components; don't treat the exact part list as universal across every Mothbox somebody has made.

Getting a design ready for field work involves questions that aren't visible in a nice finished photograph. How will it be powered? How will the camera and target stay aligned? Can the electronics cope with the intended conditions? How will somebody find the images afterwards?

Those are excellent questions for any maker project that needs to leave the workbench and work without constant supervision.

The photographs are the point

A Mothbox target surface with multiple insects visible in a captured photograph

An example target image shown in the Mothbox documentation. Image: Digital Naturalism Laboratories / Mothbox, CC BY 4.0; resized.

The target image above shows why a consistent surface is useful: multiple visitors can appear in one frame. The camera can record the whole scene, then software can help people find the individual insects within it.

The authors distinguish between a source image, meaning the full photograph, and a detection, meaning a smaller region containing a particular object or organism. That sounds technical, but the distinction is practical. If a detection looks odd, you can go back to the full scene instead of treating a tiny crop as the complete evidence.

For your own photography projects, keep the original file when you crop or edit. A neatly framed detail is useful; the original can tell you what was happening just outside it.

The software helps, but it doesn't get the final word

The Mothbox processing interface displaying an insect crop alongside other images

The project documentation shows an insect image being examined in its processing workflow. Image: Digital Naturalism Laboratories / Mothbox, CC BY 4.0; resized.

The companion processing project is called Mothbot. Its job includes helping people sort through photographs, find possible insects and organise the resulting images. The research team places human review in the workflow because an automated label is a suggestion that needs context and checking.

The developers have also written about the difficulty of identifying insects where reference data is limited. That's a useful reality check. A confident-looking label on a screen is not proof that the computer has identified a species correctly.

We haven't run Mothbot or independently verified the classifications shown in the project images. If an identification matters for a scientific record, use the project's current review process and appropriate expert help.

Could you make one?

The Mothbox documentation includes construction and usage information for its different versions. It's an ambitious build involving electronics, a camera, power, a protective case and a physical target arrangement.

The project site's estimates, when checked for this article, were approximately US$450 in parts for the Pro version and US$550 for the DIY version. Those are the team's figures, not supplier quotes or prices we've independently tested. Availability, shipping, tools, changes in design and your location can move the total.

Before you buy parts, I'd work through this:

  1. Decide what you want to observe. A casual interest in photographing garden visitors is different from a repeatable research study.
  2. Read the version-specific documentation. Check whether the DIY or Pro design suits your experience, tools and desired setup.
  3. Price the complete system. Include the camera, lighting, power, housing, fasteners, target, storage and anything needed to process the photos.
  4. Plan where it will operate. Permission, weather exposure, local wildlife and safe power arrangements matter.
  5. Work out where the images will go. A camera that creates thousands of files also creates a sorting and storage job.
  6. Allow time for a small test. Follow the team's current instructions and check the images before leaving a device operating on a long schedule.

We haven't built or deployed a Mothbox ourselves, so this is a guide to the documented project rather than a tested build tutorial. Follow the authors' current electrical, battery and field-use instructions, and check local rules and guidance before attracting or observing wildlife.

What's open about it?

The research paper and project identify different licences for different pieces: the hardware is released under a CERN Open Hardware Licence, the software uses MIT, and the website documentation is CC BY 4.0. Check the current licence page and individual files before sharing a modified design or using project material.

Open doesn't mean every part is automatically interchangeable or that a computer model is always correct. It means you can study the documented work, understand the conditions and build on it where the relevant licence permits.

The idea worth borrowing

I like Mothbox because the camera is only one part of the design. The team considered the subject, the surface, the light, the schedule and what happens to the data after the camera has done its job.

You could apply that way of thinking to a time-lapse of a plant, a workshop process or a collection of product photographs: decide what question the images need to answer, then make the setup repeatable enough to answer it.

If you're curious about the actual insects and the engineering, start with the Mothbox project and look through the real deployment photos. I can't promise you'll finish the evening without wanting to photograph every moth near your window.

Sources

  1. 1.Mothbox project site and current build details
  2. 2.2026 Mothbox and Mothbot research paper
  3. 3.Project licence and documentation terms
  4. 4.Developers on image processing limitations
  5. 5.Creative Commons Attribution 4.0 terms

Share this article

Know someone who would enjoy this? Pass it along.