The Listening Nest Box

Hardware

Only the camera and the IR light sit inside the box. The Pi and the power regulator live in a weatherproof enclosure next to it, and the microphone hangs outside, so the nest stays free of electronics that can heat up.

Parts

PartNotes
Raspberry Pi 5 (4 GB) with active coolerRaspberry Pi OS Lite, 64-bit. Powered by the official 27 W supply.
Weatherproof enclosure, IP67, clear lidHolds the Pi and the voltage regulator, mounted next to the box.
Camera Module 3 Wide NoIRNo infrared filter, so it sees the IR light. Wide angle, which suits a small box.
Camera cable, 15-pin to 22-pin, 30 cmThe Pi 5 uses the smaller connector.
IR LED module, 850 nmCheap two-pack. Its light sensor (LDR) is left uncovered: inside the box it is dark enough that the LEDs stay on by themselves.
LM2596 buck converterLowers the voltage for the IR module.
USB lavalier microphone, omnidirectionalMounted outside, for BirdNET-Pi.
SD card, 64 GB, high enduranceA "high endurance" card is meant for continuous writing, which this project does all day.
Tit nest boxAbout 25 cm high and 14 cm wide. Little light inside.
A small camera board and an infrared LED module fixed side by side on a thin metal strip, with a flat ribbon cable and cable ties
Camera module (left of the ribbon cable) and IR light on one metal strip. The cable ties are strain relief and hold the strip in place.

The IR light

The module is fed from the Pi through the LM2596: 5 V from pin 2, ground from pin 6, adjusted to about 2.9 V. At that voltage it is bright enough for the camera and stays much cooler than at full power. There is no MOSFET and no switching circuit: the module's own light sensor is left uncovered, and the box is dark enough inside that the LEDs stay on anyway, day and night. Taping the sensor over would be the fix if too much daylight came through the entrance hole, but here it was never needed.

Heat: the back of the module still gets warm. Once it is mounted in the box it can no longer be touched, so temperature can only be judged indirectly. A small heat sink on the back is an option, and the module is something to watch in summer.

Bench test before mounting

A nest box standing on a cutting mat next to a Raspberry Pi lying on a multimeter, with a small voltage regulator board and wires connecting them
Bench test: the Pi (lying on a multimeter), the LM2596 and the ribbon cable to the box, before everything went outside.

Before anything went into the box, camera and IR light ran together in a dark room: Pi at about 48 °C, no throttling. Check the same on yours:

vcgencmd measure_temp
vcgencmd get_throttled     # 0x0 is good

A value of 0x50000 directly after boot means that the supply voltage dipped below the limit at some point since startup (undervoltage, and throttling because of it). If it shows only right after boot and never again, it is harmless; a stronger power supply or a shorter, thicker cable would remove it.

Looking into the open nest box: the camera and the IR light are mounted on the blue back wall, with the ribbon cable and power wires leaving through a hole in the floor
Inside the nest box: camera and IR light on the back wall, ribbon cable and power wires leave through a hole below.
Raspberry Pi 5 Pin 2: 5 VPin 6: GND LM2596 buck converter about 2.9 V out IR light light sensoruncovered Camera NoIR, ribbon cable +− +− camera port
Wiring of the IR light. Pin numbers are the physical pins on the Pi's 40-pin header. The camera uses its own flat ribbon cable (dashed).

Pi and regulator outside

The Pi with its active cooler and the LM2596 sit in a weatherproof enclosure with a clear lid, fastened next to the box. Two cables go into the nest box through a hole: the flat camera ribbon and the two wires for the IR light. A green LED on the Pi is visible through the lid, which makes a quick look from the window enough to see that it is alive.

A grey weatherproof enclosure with metal latches fixed to a post next to a red nest box, partly covered by a fig leaf
The enclosure next to the nest box, with the power cable leaving at the bottom.
Through the clear lid: a Raspberry Pi 5 with a fan cooler, a small voltage regulator board and several wires on a perforated mounting plate
Inside the enclosure: Pi 5 with active cooler and the LM2596 board on a perforated plate.

Mains power

The Pi is powered from an outdoor socket about 2–3 m below the box. Anything involving mains voltage outdoors should be done by a qualified electrician, with a residual-current device in the circuit and a weatherproof enclosure for the supply.