Skip to the content
2 layers29 × 48.5 mmMailbox beacon, the printed circuit board in 3D

Mailbox beacon

pavel-d/mail-beacon1

The Mailbox Beacon is a device that detects when a new letter or package has been delivered to your mailbox using a reed switch.

Size
29 × 48.5 mm
Copper layers
2
Thickness
4.69 mm
Parts
28
Nets
32
Pads
89
Tracks, vias
152, 25
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
9 Oct 2023
Updated
24 Dec 2023

Overview

Mailbox beacon is an open-source printed circuit board by pavel-d, from the pavel-d/mail-beacon repository on GitHub. It is a 2-layer board of 29 × 48.5 mm with 28 parts on 32 nets, routed with 152 tracks and 25 vias.

It is built around the ATTINY1616-MN and SPX3819M5-L-3-3. Its parts include 4 resistors, 3 capacitors, 3 ICs, 3 connectors and 2 diodes. It belongs with the radio and wireless boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Mail Beacon

The Mailbox Beacon is a device that detects when a new letter or package has been delivered to your mailbox using a reed switch. It sends a signal to your LoRa gateway, then the gateway sends a message via WiFi to MQTT server. It's designed to integrate with HomeAssistant, but can theoretically work with anything that supports MQTT based sensors.

Specification

  • Microcontroller: Attiny1616
  • Radio module: SX1278 LoRa 433 Mhz (Ai-Thinker-Ra-01)
  • Sensor: Reed switch
  • Voltage regulator: SPX3819M5-L-3-3
  • Programming Protocol: UPDI
  • Power consumption: in microamps range when asleep
  • Gateway: LILYGO TTGO LoRa32 V2.1
  • Status LED

Wiring

Reed switch (or any other kind of contact switch) must be connected either to PA4 or PA7 pins and to the GND. Pins have internal pull-ups enabled and are "active low", so the switch must pull the pin to the ground when circuit is closed. Both pins have interrupts attached, microcontroller will send a message to the gateway when the logic level changes.

TEST button also has an interrupt attached and can be used to test the setup.

Power LED has a jumper that can be cut to reduce the power consumption.

Battery monitoring

The beacon sends the battery voltage (in milivolts) in every LoRa packet, so that you know when you need to re-charge the battery.

Schematic

schematic

Board

pcb

Images

manufactured

Parts

28
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_2.2mm_M2_PadH1, H2, H3, H4
21kResistor_SMD:R_0805_2012MetricR1, R2
222uFCapacitor_SMD:C_0805_2012MetricC1, C2
2LEDLED_SMD:LED_0805_2012MetricD1, D2
2SW_PushButton_Switch_SMD:SW_SPST_B3U-1000PSW1, SW2
2SolderJumper_2_BridgedJumper:SolderJumper-2_P1.3mm_Bridged_RoundedPad1.0x1.5mmJP1, JP2
1100nCapacitor_SMD:C_0805_2012MetricC3
110kResistor_SMD:R_0805_2012MetricR3
120kResistor_SMD:R_0805_2012MetricR4
13.3VTestPoint:TestPoint_Pad_D1.5mmTP2
1ATtiny1616-MPackage_DFN_QFN:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mmU1
1Ai-Thinker-Ra-01RF_Module:Ai-Thinker-Ra-01-LoRaU2
1BattConnector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ3
1Conn_02x02_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_VerticalJ2
1GNDTestPoint:TestPoint_Pad_D1.5mmTP1
1RXTestPoint:TestPoint_Pad_D1.5mmTP4
1SPX3819M5-L-3-3Package_TO_SOT_SMD:SOT-23-5U3
1TXTestPoint:TestPoint_Pad_D1.5mmTP5
1UPDITestPoint:TestPoint_Pad_D1.5mmTP3
1VinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1

Similar boards

  • 4 layers62.1 × 83.8 mmSs main board, the printed circuit board in 3D

    Ss main board

    loopj/short-stack

    World's Smallest Nintendo Wii, using a trimmed motherboard and custom stacked PCBs

    69 parts804
  • 2 layers80 × 50 mmSiliCa, the printed circuit board in 3D

    SiliCa

    19AJ137/SiliCa

    FeliCa®互換カード「SiliCa」

    14 parts47Unlicense
  • 4 layers100 × 68 mmDevKit, the printed circuit board in 3D

    DevKit

    kaminaris/GigaESC

    209 parts47
  • 2 layers56.9 × 23.6 mmHexagon, the printed circuit board in 3D

    Hexagon

    kieraneglin/hexagon-art

    A passive breakout board: two lever-terminal inputs, three JST XH outputs, all six conductors (RX bus, two spares, +12V, GND, +5V) paralleled straight across. No active components, no regulation, nothing to configure.

    24 parts19
  • 4 layers44.5 × 44.5 mmFlashlight, the printed circuit board in 3D

    Flashlight

    engineerbo/flashlight-dev-hw

    This repository contains design files for the development board for a flashlight boost driver. The test firmware can be found in the firmware repository.

    73 parts15MIT
  • 2 layers29 × 36 mmFlux Capacitor Micro Pin Badge, the printed circuit board in 3D

    Flux Capacitor Micro Pin Badge

    hojadurdy/Flux_Capacitor_Micro

    A tiny (36mm x 29mm) pin badge and keychain PCB version of Flux Capacitor featuring 25 animated LEDs that animate to create the “fluxxing” effect.

    48 parts6
  • 4 layers50.3 × 21.5 mmStormbreaker, the printed circuit board in 3D

    Stormbreaker

    VoxelTek/Stormbreaker

    PMS companion board for Thundervolt.

    49 parts4
  • 2 layers25.4 × 52 mmPiicoDev Radio, the printed circuit board in 3D

    PiicoDev Radio

    CoreElectronics/CE-PiicoDev-Transceiver-915-MHz

    CE PiicoDev Radio

    41 parts2

Questions

How big is the Mailbox beacon PCB?

It measures 29 × 48.5 mm and has 2 copper layers, 4.69 mm thick.

What parts does the Mailbox beacon use?

28 parts, built around the ATTINY1616-MN and SPX3819M5-L-3-3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Mailbox beacon KiCad files?

From the pavel-d/mail-beacon repository on GitHub, at the commit this page was made from: the board is pcb/mailbox-beacon.kicad_pcb and its schematic pcb/mailbox-beacon.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mailbox beacon design in my own project?

Its repository states no licence, so its author keeps all rights: ask pavel-d before reusing the design.