Projects with a reed switch
4 Mokxi projects use a reed switch (2 beginner, 1 intermediate and 1 advanced). They run on Arduino Mega, Arduino Uno and ESP32 boards. Here are all of them, from “Pico W reed switch interrupt on GP14” to “Escape-room puzzle box”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.
How to pick your first one
- Start with “Pico W reed switch interrupt on GP14”, a beginner project that needs a reed switch and a resistor.
- Arduino Mega runs 1 of them, Arduino Uno 1 and ESP32 1. Start on the board you have, or on an Arduino Mega if you are buying one.
- The parts used most here are the LED (2 projects), the push button (2) and the arcade button (1). With those on hand, most of this list is open to you.
- Before you build one on a real bench, open the reed switch part page for its pins and what each one does.
4 projects ready to run

Pico W reed switch interrupt on GP14
MicroPython on a Pico W: a reed switch from 3.3 V to GP14 with a 10k pull-down. Bring the magnet close and a pin interrupt counts it.
- Board
- Raspberry Pi Pico W
- Parts
- Reed switch, resistor
- Level
- Beginner

Door alarm
A reed switch and a magnet on pin 2: open the door and a buzzer and a lamp latch on until the arcade button resets them. Half-size board.
- Board
- Arduino Uno R3
- Parts
- Reed switch, arcade button, buzzer, resistor, LED
- Level
- Beginner

Garage door opener
A relay that presses the opener’s wall button for half a second and two reed switches that say closed, opening, open, closing or stopped.
- Board
- ESP32-C3-DevKitM-1
- Parts
- Reed switch, push button, relay module
- Level
- Intermediate

Escape-room puzzle box
Five puzzles in ten minutes: a keypad code, a magnet key, the right RFID card, a tilt sequence and three flashes of light.
- Board
- Arduino Mega 2560 R3
- Parts
- 4x4 keypad, reed switch, piezo speaker, MPU6050 accelerometer and gyro, servo motor, +6 more
- Level
- Advanced
Wiring, libraries and more ideas
More project ideas
- Arduino Mega project ideas
- Arduino Uno project ideas
- ESP32 project ideas
- Raspberry Pi Pico project ideas
- LED projects for Arduino, ESP32 and Pico
- Projects with a push button
- Projects with an arcade button
- Projects with a buzzer
- Projects with a 4x4 keypad
- Projects with a 20x4 I2C LCD
- Projects with a light sensor module