

Dimmer 2.0
This is all about my home build WiFi Dimmer
- Size
- 39 × 83 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 27
- Nets
- 43
- Pads
- 98
- Tracks, vias
- 368, 13
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 5 Jan 2019
- Updated
- 23 Jan 2022
Overview
Dimmer 2.0 is an open-source printed circuit board by ageurtse, from the ageurtse/Wifi-Dimmer repository on GitHub. It is a 2-layer board of 39 × 83 mm with 27 parts on 43 nets, routed with 368 tracks and 13 vias.
It is built around the ATTINY85-20PU, ESP-12F and HLK-PM03, with the BTA16-600CW, MOC3021M and SFH620A-1 among its other parts. Its parts include 11 resistors, 5 ICs, 3 connectors, 1 diode and 1 switch. It belongs with the radio and wireless boards and the ESP8266 and AVR (ATmega, ATtiny) boards of this library.
Main components
6ATTINY85-20PU
PDIP-8-40℃~+85℃ 10bit 2.7V~5.5V 20MHz 512Byte 512Byte 6 8 Bit 8KB AVR Built-in FLASH PDIP-8 Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)ESP-12F
SMD,24x16mm-40℃~+85℃ -96dBm 15dBm 2.4GHz 3.3V 375mA 55mA PCB UART WIFI4 SMD,24x16mm WiFi Modules ROHSDOITWiFi ModulesHLK-PM03
插件0.1W 1 100mVp-p 15mm 1A 20mm 3.3V 34mm 3W 3kV 70V~350V 72% 85VAC~265VAC AC/DC-DC Short Circuit Protection、Over Current Protection ±0.2% 插件 AC-DC Power Modules ROHSHI-LINKAC-DC Power ModulesBTA16-600CW
TO-220A-40℃~+125℃ 1 TRIAC 1.5V 160A@20ms 16A 1V 35mA 40mA 500mW 600V TO-220A Thyristors (SCR)/Modules ROHSKTPThyristors (SCR)/ModulesMOC3021M
DIP-6-40℃~+85℃ 0.1mA 1 1.15V 100mA 330mW 4.17kV 400V 6 60mA No TRIAC DIP-6 Triac, SCR Output Optoisolators ROHSonsemiTriac, SCR Output OptoisolatorsSFH620A-1
DIP-4-55℃~+100℃、-55℃~+100℃ -、- -、125% -、6V 1.2V、1.25V 1、1 20%、40% 250mV@10mA,2.5mA、250mV@10mA,0.5mA 2us、4us 2us、5us 50mA、50mA 5kV、5.3kV 70V、200V Phototransistor、Phototransistor DIP-4 Transistor, Photovoltaic Output Optoisolators ROHSVishay IntertechnologyTransistor, Photovoltaic Output Optoisolators
README
README.mdWifi Dimmer
!!!!! Please do not rebuild this device, in my case there was a serious issue with overheating !!!!!
This is all about my home build WiFi Dimmer Becaus of it's my first github project, the master is still in Beta. For me the project works, but there are a lot off things to change, so keep watching for any change.
11-3-2019, final version, the hard and software is ready to use. soon i wil post a youtube movie from live controlling a light.

This is version 2, in the past i build a differt version which is not exactly what i want. Version 2 is one which fit in a simpel housing.
There are 2 parts of the software, one for the ATTiny and one for the ESP8266 Both are posted here.
Word of Caution
Please be very carefull you are working with live voltage 230V, this voltage can realy harm you. By building the dimmer, i'm not responsible for any faults or what ever. I stoped development off this dimmer, on one night the triax was overheated. luckely i was at home to prevented real major damage.
ATtiny85 Software
The ATtiny85 software is for the soul purpose of dimming the light, there is a zerocross detction which is on interupt 0, the gate is on pin PB3. The communication with the main processor is done by softserial. The code is based on the forum post at arduino : https://forum.arduino.cc/index.php?topic=314773.0
ESP8266 software
The main software for the ESP12 module is build with arduino, the wifi and custom settings can be done with the great library from Hieromon https://github.com/Hieromon/AutoConnect After fist flash by serial, all next updates could be down by browser. find the IP-adres or host name and add /update to get to the update page. To alter wifi setting's and in the futher mqtt settings and i hope a lot more add /_ac
The file makes use of some thirth party library's which can be found here : AutoConnect : https://github.com/Hieromon/AutoConnect PageBuilder : https://github.com/Hieromon/PageBuilder ArduinoJson : https://arduinojson.org/ version 5
The hardware
For the main board there is a small mistake made with the Triac, there where 2 wires changes. A1 and A2 need to be turned. In a next updat of the print i will fix that, for now i just solderd 2 wires and cross connect them to te pcb.
Also the Fuse holder is to large, i bought a pcb fuse now it all fits well.
Parts
27| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 10K | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R1, R2, R3, R4, R5, R8 |
| 2 | 47K/1W | Resistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P5.08mm_Vertical | R9, R10 |
| 2 | Jumper | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | JPFlash1, Reset1 |
| 1 | 1K/1W | Resistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P5.08mm_Vertical | R6 |
| 1 | 1K5 | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R11 |
| 1 | 1N4148 | Diode_THT:D_DO-35_SOD27_P7.62mm_Horizontal | D1 |
| 1 | 2N3904 | Package_TO_SOT_THT:TO-92_Inline | T2 |
| 1 | 470 | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R7 |
| 1 | ATtiny85-20PU | Package_DIP:DIP-8_W7.62mm | IC2 |
| 1 | BTA16-600C | Package_TO_SOT_THT:TO-220-3_Vertical | T1 |
| 1 | ESP-12F | RF_Module:ESP-12E | IC1 |
| 1 | Fuse | Fuse:Fuseholder_Cylinder-5x20mm_Stelvio-Kontek_PTF78_Horizontal_Open | F1 |
| 1 | HLK-PM03 | Power_Supply:HLK-PM03 | U1 |
| 1 | MOC3021M | Package_DIP:DIP-6_W7.62mm | IC4 |
| 1 | Net | TerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_Horizontal | Con2 |
| 1 | SFH620A-1 | Package_DIP:DIP-4_W7.62mm | IC3 |
| 1 | Serial | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | Con1 |
| 1 | TIANBO-HJR-4102-L | Relay_THT:Relay_SPDT_HJR-4102 | K1 |
| 1 | Varistor | Varistor:RV_Disc_D12mm_W4.8mm_P7.5mm | RV1 |
| 1 | out | TerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_Horizontal | Con3 |
Similar boards
- 2 layers68.5 × 39 mm

- 2 layers64.3 × 63 mm

Triac AC Dimmer 1P
Eninspace/triac
This project is based on esp8266 and TRIAC for control power via remote control.
28 parts5GPL-3.0 - 2 layers80 × 100 mm

Reflow oven
gratinDeTopinambour/Reflow_Soldering_DIY
reflow soldering module to pilote small furnace
52 parts1 - 4 layers62.5 × 69 mm

Smart thermostate
attarkousar/Thermostate_PCB
This project is a thermostat control system based on the STM32F405RGTx microcontroller. It includes schematic design and PCB layout created using KiCad 8, intended for manufacturing with a 2-layer JLCPCB template.
69 parts - 2 layers34.3 × 32.9 mm

Mcu sensor firmware studies
AssaadMH/mcu-sensor-firmware-studies
A set of small but complete embedded programs — PIC instrumentation with LCD readout, and an NFC tag reader.
7 parts1MIT - 2 layers59 × 67 mm

New dimmer
harshverma27/IoT-AC-Dimmer
ESP32-based wireless phase-angle AC dimmer. Two PCBs linked over ESP-NOW: a mains-side dimmer board that switches a TRIAC, and a battery-powered remote with three buttons.
19 parts - 2 layers87 × 87 mm

Esp thermostat
tomikaa87/esp-thermostat
Smart WiFi thermostat based on the well-known ESP8266 SoC.
59 parts7GPL-3.0 - 2 layers51.9 × 52 mm

Questions
How big is the Dimmer 2.0 PCB?
It measures 39 × 83 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Dimmer 2.0 use?
27 parts, built around the ATTINY85-20PU, ESP-12F, HLK-PM03 and BTA16-600CW. 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 Dimmer 2.0 KiCad files?
From the ageurtse/Wifi-Dimmer repository on GitHub, at the commit this page was made from: the board is Kicad files/Dimmer 2.0.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Dimmer 2.0 design in my own project?
Its repository states no licence, so its author keeps all rights: ask ageurtse before reusing the design.