Skip to the content
2 layers50.8 × 50.8 mmEsp switch, the printed circuit board in 3D

LightFox Dual: esp8266 WiFi+RF dual channel switch

Size
50.8 × 50.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
27
Pads
97
Tracks, vias
306, 12
Pours
1
Routed
Yes
KiCad
KiCad 4
Created
9 Mar 2018
Updated
26 Jun 2020

Overview

Esp switch is an open-source printed circuit board by foxel, from the foxel/esp-dual-rf-switch repository on GitHub. It is a 2-layer board of 50.8 × 50.8 mm with 29 parts on 27 nets, routed with 306 tracks and 12 vias.

It is built around the ATTINY441-SSU, HLK-PM03 and BT137, with the MOC3041M among its other parts. Its parts include 9 resistors, 5 ICs, 4 diodes, 4 connectors and 1 capacitor. It belongs with the radio and wireless boards and the ESP8266 and AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

README.md

LightFox Dual - ESP8266 Dual RF switch for lights

photo

Connecting the board

connectors

The board has following connectors:

  • mains connector with sqrew terminals (Lin, L1, L2, N). Mains supply should be connected to Lin and one of N terminals. The loads are connected to L1/L2 and one of N terminals.
  • ISP connector for ATTiny flashing. Pins are (from left to right): RST, MOSI, MISO, SCL)
  • switches output connector for debug, etc. These are connected to ATTiny outputs controlling triacs. Pins are (from left to right): L1, L2, 3V3, GND.

Schematics

shematics

Layout

Board layout

Firmware

There are two microcontrollers to run this switch

To flash ESP module connect it to PC any available way (e.g. USB-Serail adapter + breadboard) and follow selected firmware option flashing instructions.

To flash ATTINY:

  • remove ESP-01 module from the header
  • connect ISP programmer (i.e. Arduino flashed with ArduinoISP) to ISP port
  • use Arduino to flash MC: board is ATTiny441 (installed from ATTinyCore)

BOM

ItemQtyReference(s)Link
100uF, 5v1C1
3mm red LED2D1, D2
BTA08-600BW2D3, D4
1A fuse1F1
Screw Terminal 01x032J1, J3
4pin header2J2, J4
470R, 0.125W2R1, R2
150R, 0.125W2R3, R4
390R, 0.5W2R5, R7
470R, 0.5W2R6, R8
10K, 0.125W1R9
Itead.cc RF receiver1RF1https://www.itead.cc/rf-receiver-module-433mhz.html
ATTINY441-SSU1U1
ESP-01S1U2
MOC3043M/MOC3063M2U3, U4
HLK-PM031U5

Parts

29
QtyValueFootprintReferences
4470RResistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR1, R2, R3, R4
2390RResistors_THT:R_Axial_DIN0411_L9.9mm_D3.6mm_P5.08mm_VerticalR5, R7
2470RResistors_THT:R_Axial_DIN0411_L9.9mm_D3.6mm_P7.62mm_VerticalR6, R8
2BT137TO_SOT_Packages_THT:TO-220_VerticalD3, D4
2Conn_01x04Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mmJ2, J4
2LEDLEDs:LED_D3.0mmD1, D2
2MOC3041MHousings_DIP:DIP-6_W7.62mmU3, U4
2Screw_Terminal_01x03Connectors_Terminal_Blocks:TerminalBlock_Pheonix_MKDS1.5-3polJ1, J3
110KResistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR9
1ATTINY441-SSUHousings_SOIC:SOIC-14_3.9x8.7mm_Pitch1.27mmU1
1CP_SmallCapacitors_THT:CP_Radial_D4.0mm_P2.00mmC1
1ESP-01v090ESP8266:ESP-01U2
1Fuse_SmallResistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalF1
1HLK-PM03Power_Supply:HLK-PM05U5
1RF_Receiver_EV1527footprints:RF_Receiver_DecoderRF1

The 25 most common of 29 parts.

Similar boards

  • 2 layers51.9 × 52 mmPilot Wire v1, the printed circuit board in 3D

    Pilot Wire v1

    xbeaudouin/fil-pilot

    Fil Pilot for Home Assistant with MQTT

    20 parts4AGPL-3.0
  • 2 layers50 × 40 mmFilPilote, the printed circuit board in 3D

    FilPilote

    LudovicLemarinel/EspHomeAutomation

    Home Automation based on ESP8266 and MQTT

    16 parts3
  • 2 layers96.3 × 98 mmAquarium, the printed circuit board in 3D

    Aquarium

    baranovskiykonstantin/aquarium

    Control the lighting and the heating of the aquarium.

    73 parts11
  • 2 layers95.9 × 129.5 mmSolderin Station, the printed circuit board in 3D

    Solderin Station

    kr4fty/DiySolderingStation

    Diy Soldering Stations with Atmega (Arduino UNO). Firmware and hardware design included

    73 parts3GPL-2.0
  • 2 layers100 × 70 mmWul v21, the printed circuit board in 3D

    Wul v21

    exotwist/wake-up-light

    Waking up to an electronic Sun.

    73 partsBSD-3-Clause
  • 2 layers100 × 60 mmArduino nano reflow TRIAC v1 0, the printed circuit board in 3D

    Arduino nano reflow TRIAC v1 0

    hecko/nanoReflowController

    (c) 2017 David Sanz Kirbis (c) 2014 Karl Pitrich in part based on a project (c) 2013 Ed Simmons

    34 parts
  • 2 layers50 × 100 mmDimmer final, the printed circuit board in 3D

    Dimmer final

    MateoCignetti/ProyectoFinal

    Esta obra está bajo una [Licencia Creative Commons Atribución-NoComercial-CompartirIgual 4.0 Internacional][cc-by-nc-sa].

    32 parts2

Questions

How big is the Esp switch PCB?

It measures 50.8 × 50.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Esp switch use?

29 parts, built around the ATTINY441-SSU, HLK-PM03, BT137 and MOC3041M. 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 Esp switch KiCad files?

From the foxel/esp-dual-rf-switch repository on GitHub, at the commit this page was made from: the board is esp-switch.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp switch design in my own project?

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