Concept
The idea is straightforward: use the AirPods case itself as a physical mechanism to connect or disconnect two wires.
-
When the AirPods are open: The two green wires make contact. This allows current to flow in such a way that the LED turns on.
-
When the AirPods are closed: The two green wires are pushed apart (or pulled apart), so the circuit is broken, and the LED turns off.
Of course, your exact implementation may depend on how you place the wires on the AirPods case—some people prefer taping them near the hinge or using a small piece of foam to press them apart. But the principle remains the same: open case = wires connected, closed case = wires disconnected (or vice versa).
What You’ll Need
-
Arduino Uno
-
Red wire (5V supply)
-
Black wire (GND)
-
Blue LED
-
330 Ω resistor
-
Two green wires (these become the AirPods “switch” leads)
Demo: