EmbeddedRelated.com

Hardwired Motion-Sensing Doorbell with Local LAN Backup

A hardwired doorbell camera prototype that detects motion, records video/events to local microSD, backs up data to a LAN server, and plays a doorbell chime through a speaker when the button is pressed.

Advanced Project — This is advanced because it combines camera capture, Ethernet networking, local file storage, audio output, and always-on embedded reliability, and the camera interface in particular can be difficult to integrate cleanly on a small MCU-based prototype.
Assumptions:
  • The camera is expected to capture stills or compressed video clips rather than continuous high-bitrate recording.
  • Motion detection can be done in firmware from the camera stream or with a dedicated motion sensor; I assumed camera-based motion detection is acceptable for the prototype.
  • The local network backup target is reachable over Ethernet and can accept files via SMB/NFS/HTTP/FTP or a simple custom upload protocol.
  • Night vision/IR illumination was not explicitly requested, so I did not add an IR LED block.
  • The doorbell button itself is an external input and not a separate electronic subsystem beyond the MCU GPIO and debounce circuitry.

Bill of Materials

Microcontroller
Top Pick STM32F107VCT6 STMicroelectronics From our database
STM32F107VCT6 is the best overall fit because this project is explicitly hardwired and the STM32F107 family is a better match for Ethernet-centric embedded designs than a Wi-Fi-first board. It gives you a solid control core for camera/event handling, SD logging, and LAN backup without relying on wireless as the primary path.
Mouser $8.39 (6,423 in stock) Digikey
Dev Board NHDEV DEVELOPMENT BOARD Newhaven Display Intl
Ready-to-use board for prototyping with this chip
ESP32-DevKitC-32U Espressif From our database
Good prototype MCU for a doorbell camera because it has enough CPU for event handling, camera control, SD logging, and network tasks, plus built-in USB programming and Wi-Fi/Bluetooth if you later want a fallback wireless path. The dev board form factor is easy to wire up and widely available.
Raspberry Pi Pico W Raspberry Pi From our database
Low-cost and easy to prototype with, but the built-in wireless is not ideal for your hardwired-first requirement. It is still a capable control MCU if you pair it with external Ethernet hardware, though it is less convenient than the ESP32 or STM32 options here.
Camera
Top Pick 114992267 Seeed Technology Co., Ltd From our database
114992267 is the best practical prototype choice because the an alternative part ecosystem is well understood and easier to integrate than the higher-end an alternative part module. For a doorbell camera prototype, it gives a good balance of image quality, availability, and development simplicity.
Mouser $9.90 (12 in stock) Digikey
114992266 Seeed Technology Co., Ltd From our database
Another IMX219-based evaluation board, useful if you want a ready-made camera sensor board for prototyping. It is suitable for image capture experiments and motion-triggered snapshots.
FSM-IMX477C-01S-V1B FRAMOS From our database
Higher-resolution camera module with the Sony IMX477 sensor, which is attractive if you want more detail for faces or package detection. It is more capable than IMX219-based options, but also more demanding in software and system integration.
Motion Sensor
Top Pick Panasonic EKMB1101111 Panasonic AI suggestion - verify availability
Panasonic an alternative part is the best fit because PIR motion detection is the most power-efficient and reliable way to trigger a doorbell camera prototype. It lets the system stay mostly idle until someone approaches, which is better than continuously analyzing video on a small embedded platform.
Compact PIR sensor option suitable for occupancy/motion detection in a small enclosure. Good if you want a simple digital motion trigger with low standby power.
Mouser $4.48
Adafruit 189 Adafruit AI suggestion - verify availability
A breakout-style PIR module is easy to wire into a prototype and is friendlier for bench testing than a bare sensor. It is a good choice if you want quick bring-up and adjustable sensitivity.
Power Supply
Top Pick Mean Well IRM-10-5 Mean Well AI suggestion - verify availability
Mean Well an alternative part is the best choice for a hardwired doorbell camera prototype because it provides a simple, reliable mains-powered 5 V rail for the always-on system. That is a better fit than battery-oriented power approaches for a device that needs continuous network and recording capability.
A drop-in switching regulator module that is easy to prototype with when you already have a higher-voltage DC source available. Efficient and convenient for generating 5 V locally.
Mouser $5.19 (10,312 in stock)
CUI PBO-5-5 CUI Inc. AI suggestion - verify availability
A small AC-DC module option for a compact always-on embedded design. Useful if you want a straightforward mains-powered prototype with less external power-supply design work.
Connectivity
Top Pick ENC28J60-I/SP Microchip Technology From our database
an alternative part is the best connectivity pick because a camera system benefits from 10/100 Ethernet rather than the slower 10BASE-T-only ENC28J60-I/SP. It gives you more headroom for regular LAN backups and event uploads while staying in a simple SPI-based embedded architecture.
ENC424J600T-I/PT Microchip Technology From our database
Feature-rich Ethernet controller with 10/100 support and flexible interfaces, making it a strong option for embedded LAN connectivity. Good if you want a more capable wired network interface than the basic ENC28J60.
Audio Output
Top Pick MAX98357AETE+T Analog Devices / Maxim Integrated From our database
MAX98357AETE+T is the best choice because it minimizes audio complexity: the MCU can feed it digital audio directly over I2S and it can drive a speaker without a separate DAC. That makes it ideal for a prototype that only needs a reliable doorbell chime.
Mouser $3.62 (7,520 in stock)
PAM8403DR-H Diodes Incorporated From our database
Low-cost stereo Class-D amplifier that is easy to use if you already have an analog or PWM audio source. Good for simple chime playback, but it needs an upstream audio signal source.
PAM8610 Diodes Incorporated From our database
Higher-power Class-D amplifier if you want a louder doorbell sound or a larger speaker. It is more amplifier than you likely need for a prototype, but it has plenty of output headroom.
Storage
Top Pick 4682 Adafruit From our database
4682 is the best storage choice because it supports both SPI and SDIO, giving you flexibility depending on how much throughput your recording pipeline needs. For a camera logger, that extra interface flexibility is valuable compared with a basic SPI-only socket.
Mouser $4.64
BOB-00544 SparkFun From our database
Very convenient breadboard-friendly microSD breakout with a push-push socket, making it easy to prototype removable local storage. Good for quick bring-up and file logging tests.
333050 Soldered From our database
Simple microSD breakout that provides accessible signal and power pins for prototyping. A solid general-purpose option for local recording to removable storage.

Compatibility Notes

  • The recommended STM32F107VCT6 is a 3.3 V MCU, so the camera, microSD interface, PIR sensor, and Ethernet controller should all be selected or interfaced for 3.3 V logic.
  • ESP32-DevKitC-32U uses SPI, which is compatible with the STM32F107VCT6, but you must budget an SPI bus for both Ethernet and microSD or use separate chip-select lines and careful bus arbitration.
  • The MAX98357AETE+T expects ESP32-DevKitC-32U digital audio, so verify the chosen MCU firmware can spare an ESP32-DevKitC-32U peripheral or emulate the required timing.
  • The ESP32-DevKitC-32U camera modules are much easier to integrate with a Linux SBC than with a small MCU-only design; if you stay with the STM32F107VCT6, you may need a camera bridge or a different host architecture for full video capture.
  • The Mean Well IRM-10-5 provides a 5 V rail, but the MCU, Ethernet controller, PIR sensor, and microSD breakout will likely need 3.3 V regulation or onboard regulation depending on the breakout boards used.

You'll Also Need

  • Doorbell button input hardware and debounce components are not explicitly listed as a separate block; you will still need the button, pull-up/pull-down resistor, and possibly ESD protection.
  • A camera interface bridge or a more camera-capable host may be needed if you want full video capture rather than still images or very low-rate snapshots.
  • Enclosure, weather sealing, mounting hardware, cable glands, and thermal management are required for a real doorbell installation.
  • Level shifting, pull-ups, decoupling capacitors, and any required 3.3 V regulator are not included as separate BOM items.
  • If you want night vision, you will need IR LEDs and current-limiting circuitry, which were not requested explicitly.
Estimated BOM Cost: $55-65 (based on live distributor pricing)

Design Considerations

Camera Architecture
The biggest architectural decision is whether the system records stills, short clips, or continuous video. A small MCU like the STM32F107VCT6 is fine for control, storage, and network upload, but full camera capture and encoding usually push you toward a camera-capable host or a dedicated image pipeline. If you want real video, validate the camera interface early because the ESP32-DevKitC-32U modules are much easier on Linux-class hosts than on a bare MCU.
Motion Trigger Strategy
For a doorbell camera, PIR motion sensing is usually more reliable and lower power than trying to do always-on video motion detection in firmware. Use the PIR to wake or arm the camera, then confirm with image-based motion logic if needed to reduce false triggers from sunlight, shadows, or passing cars. This hybrid approach is much more robust than relying on one sensor alone.
Ethernet Throughput
If you plan to back up recordings regularly, 10BASE-T can become a bottleneck once you start moving image sequences or clips. The ESP32-DevKitC-32U gives you 10/100 Ethernet, which is a better match for periodic uploads and future expansion. Keep the network protocol simple at first, such as HTTP POST or SMB/NFS file copy from a local service.
Power and Thermal Budget
A permanently powered doorbell camera should be designed around continuous operation, not battery life. The PIR sensor can keep standby current low, but the camera and Ethernet controller will dominate power when active, so size the supply with margin and expect the enclosure to warm up. A 5 V, 1 A class supply is a reasonable starting point for a prototype, with extra headroom if the camera or speaker amplifier draws more current.
Audio Reliability
Doorbell chimes are short but must be dependable, so keep the audio path simple. The MAX98357AETE+T is attractive because it removes the need for an analog DAC and lets the MCU generate a clean digital audio stream or tone sequence. Test speaker loudness in the actual enclosure, because small enclosures can dramatically change perceived volume and frequency response.
Firmware Resilience
Use a state machine with separate states for idle, motion-detected, recording, upload-pending, and upload-in-progress. Add a watchdog timer and a local queue on microSD so network outages do not lose events; the system should record locally first and treat server backup as best-effort with retries. This is especially important for a doorbell camera because LAN connectivity and storage writes can fail independently.

Want to customize this project or build something different?

Try the Project Advisor