

EsperDNS
Ad Blocking with an ESP32
- Size
- 51 × 48 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 50
- Nets
- 70
- Pads
- 216
- Tracks, vias
- 1,228, 107
- Pours
- 8
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 9 Apr 2021
- Updated
- 24 May 2021
Overview
EsperDNS is an open-source printed circuit board by zachmorr, from the zachmorr/esper repository on GitHub, published under the MIT licence. It is a 4-layer board of 51 × 48 mm with 50 parts on 70 nets, routed with 1,228 tracks and 107 vias.
It is built around the ESP32-WROOM-32E, AZ1117EH-3.3TRG1 and LAN8720A-CP, with the RS-3535MWAR among its other parts. Its parts include 24 resistors, 11 capacitors, 3 ICs, 3 transistors and 3 connectors. It belongs with the ESP32 boards of this library.
Main components
4ESP32-WROOM-32E
SMD,18x25.5mmSMD,18x25.5mm WiFi Modules ROHSEspressif SystemsWiFi ModulesAZ1117EH-3.3TRG1
SOT-223-40℃~+125℃@(Tj) 0.003%Vout 1 1.1V@(1A) 13V 1A 3.3V 3.5mA 70dB@(120Hz)、70dB Fixed Over Current Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSDiodes IncorporatedVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsLAN8720A-CP
QFN-24-EP(4x4)Ethernet ICsMicrochip TechnologyRS-3535MWAR
SMD3535-6P-30℃~+85℃ 110° 2.8mm 3.5mm 3.7mm Discrete Diode G:85mW、B:85mW、R:78mW R:20mA、G:20mA、B:20mA R:2V、G:2.9V、B:2.9V R:622nm、G:527nm、B:471nm R:950mcd、G:2200mcd、B:500mcd Top-mount SMD3535-6P RGB LEDs ROHSFoshan NationStar OptoelectronicsRGB LEDs
README
README.md
About Esper
Heavily inspired by the Pi-Hole, this project aims to bring network wide ad-blocking to another popular device popular among makers and hobbyists, the ESP32.
What is DNS?
Commonly referred to as the "phone book for the internet", the DNS protocol is how devices map human readable urls like google.com or facebook.com into IP addresses that the device can use.
How does Esper block ads?
Just like the Pi-Hole, Esper acts as a DNS server for devices. When sent a DNS query, Esper will read the url the device is requesting, then decide to block the request by returning 0.0.0.0 or forward the request on to a real DNS server.
Differences between Pi-hole and Esper
The biggest, and most obvious difference is the hardware these projects run on. Pi-hole aims to be available on any Linux powered hardware, while Esper is an ESP32 specific project. Due to being run on a microcontroller, Esper is much more limited in it's capabilities and is therefore much more minimal in it's design.
Why choose Esper instead of Pi-hole?
Choose whatever one suits you! If you like tinkering with hardware, and do not have much experience with the Raspberry Pi/Linux ecosystem, setting up the Esper software on an ESP32 dev board might be an interesting project. And while Esper may not be nearly as powerful as a Raspberry Pi, DNS protocol is very lightweight in nature. Unless you are in a household with 10+ people that are always online you will likely never going to need more computing power than a microcontroller can provide.
At the same time, if you have no problem using a shell and Linux environment, the Pi-hole is a much more feature rich and powerful piece of software that is a joy to use.
How can I get an Esper?
The easiest way, is to purchase a pre-made one from the Tindie store.
If you have some ESP32 development boards collecting dust, it will work on those too! (Just follow the instructions here!)
DISCLAIMER: It is heavily recommended to use a device with ethernet. Even the best Wifi will significantly increase latency and decrease reliability compared to a good copper connection.
If you want to try you hand an making an Esper from scratch, the repository contains all the schematic, pcb, and enclosure files needed to build one yourself.
Reprogramming Esper
Do you like the Esper hardware, but want to use it for something other than ad-blocking? Great! The Esper hardware is completely reprogrammable and includes an on-board USB-UART converter, no extra programmers are needed!
Esper Development
Tools Used
- KiCAD - EDA tool used to design PCB
- FreeCAD - 3D modeling tool for designing enclosure
- ESP-IDF - Contains ESP32 API and build tools for firmware development
- Python 3.7 - Scripts to glue everything together
Directory Structure
├── hardware # Hardware root directory
│ ├── custom components # Custom KiCad component files
│ ├── enclosure # FreeCAD project and STL files for enclosure
│ ├── product # KiCad projects for Esper
│ │ ├── usb-programmable # Includes CP2102 for easy usb programming
│ │ └── jtag-header # 10-pin header for JTAG & UART, meant to be used with programmer
│ └── programmer # KiCad project for programmer/debugger
└── software # Software root directory
├── firmware # ESP-IDF project that contains all code for Esper
├── scripts # Scripts used in build process and testing
└── website # For website development, contains symbolic links to HTML filesParts
50| Qty | Value | Footprint | References |
|---|---|---|---|
| 11 | 49.9 | Resistor_SMD:R_0402_1005Metric | R6, R7, R9, R13, R14, R15, R16, R18, R19, R20, R22 |
| 6 | 0.1uF | Capacitor_SMD:C_0402_1005Metric | C2, C5, C6, C7, C8, C11 |
| 6 | 10K | Resistor_SMD:R_0402_1005Metric | R2, R8, R10, R11, R12, R24 |
| 3 | 1uF | Capacitor_SMD:C_0402_1005Metric | C1, C4, C9 |
| 3 | 2N7002 | Package_TO_SOT_SMD:SOT-23 | Q1, Q2, Q3 |
| 2 | 10uF | Capacitor_SMD:C_0805_2012Metric | C3, C10 |
| 2 | 270 | Resistor_SMD:R_0603_1608Metric | R17, R21 |
| 2 | 47 | Resistor_SMD:R_0603_1608Metric | R3, R4 |
| 2 | MountingHole | MountingHole:MountingHole_2.2mm_M2_Pad | H1, H2 |
| 1 | 12.1K | Resistor_SMD:R_0402_1005Metric | R23 |
| 1 | 470 | Resistor_SMD:R_0402_1005Metric | R1 |
| 1 | 82 | Resistor_SMD:R_1206_3216Metric | R5 |
| 1 | AZ1117EH-3.3TRG1 | Package_TO_SOT_SMD:SOT-223 | U1 |
| 1 | Conn_02x05_Odd_Even | EsperFootprints:CNC_3220-10-0100-00 | J2 |
| 1 | ESP32-WROOM-32E | RF_Module:ESP32-WROOM-32 | U2 |
| 1 | Ferrite_Bead | Inductor_SMD:L_0805_2012Metric | FB2 |
| 1 | GRN | Diode_SMD:D_0603_1608Metric | D1 |
| 1 | LAN8720A | Package_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.6x2.6mm_ThermalVias | U3 |
| 1 | PTS645VH83-2 LFS | Button_Switch_THT:SW_Tactile_SPST_Angled_PTS645Vx83-2LFS | SW1 |
| 1 | RJ45_Amphenol_RJMG1BD3B8K1ANR | Connector_RJ:RJ45_Amphenol_RJMG1BD3B8K1ANR | J3 |
| 1 | RS-3535MWAR | LED_SMD:LED_RGB_PLCC-6 | D2 |
| 1 | USB_B_Micro | Connector_USB:USB_Micro-B_Molex-105017-0001 | J1 |
More from zachmorr/esper
2- 4 layers51 × 48 mm

- 2 layers40 × 20 mm

Similar boards
- 2 layers148 × 30 mm

Ui board 1u
betz-engineering/ui_board_1u
User interface PCB for 1U chassis front-panels
85 parts1CERN-OHL-P-2.0 - 4 layers46.8 × 72.5 mm

Fiddler
ausocean/rig
Repository for AusOcean CAD files, PCB design files, 3D models and 3D modeling scripts.
124 parts - 4 layers82 × 94 mm

ESP32 ETH Panel
mede-erik/ESP32_ETH_BORD
A development board based on ESP32-WROOM-32E and LAN8720A controller, designed to ensure stable and high-performance Ethernet connectivity in IoT applications and integrations with Home Assistant. (WIP)
120 partsMIT - 4 layers123.9 × 35.4 mm

- 2 layers69 × 100 mm

- 4 layers36.5 × 94.1 mm

- 4 layers183.4 × 143.1 mm

- 4 layers100 × 100 mm

Questions
How big is the EsperDNS PCB?
It measures 51 × 48 mm and has 4 copper layers, 1.6 mm thick.
What parts does the EsperDNS use?
50 parts, built around the ESP32-WROOM-32E, AZ1117EH-3.3TRG1, LAN8720A-CP and RS-3535MWAR. 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 EsperDNS KiCad files?
From the zachmorr/esper repository on GitHub, at the commit this page was made from: the board is hardware/product/jtag-header/EsperDNS.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the EsperDNS design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).