Link to Scheme repository, how to made

? How to Build Your Smart Home Automation Device

This page explains step-by-step how to manufacture, assemble, and program your own ESP8266-based smart home controller. The project is fully open-source, professionally designed in KiCad, and ready for PCBWAY manufacturing. You can access the complete repository here:
https://github.com/spspider/EcoLogic-KiCad

Once assembled and programmed, the device can be controlled remotely through this dashboard: https://ecologic.go.ro/iot-manager/ Simply register as a new user, go to Devices, and add your controller.


? Step 1 — Get the PCB Manufactured

You can produce the PCB yourself or order it from PCBWAY for the best results. The board is optimized for:

  • 2-layer manufacturing
  • Standard 1.6mm thickness
  • Green solder mask (recommended)
  • HASL lead-free surface finish
  • Perfect compatibility with PCBWAY’s assembly services

The easiest method is simply to upload the Gerber archive.

Gerber Download

Download the Gerber file from GitHub:
gerber2.zip

PCBWAY Ordering Steps

  1. Download the gerber2.zip file to your computer.
  2. Open the PCBWAY instant quote page:
    https://www.pcbway.com/QuickOrderOnline.aspx
  3. Click “Add Gerber File” and upload the archive.
  4. Optionally verify your board using PCBWAY’s online Gerber viewer:

    Online Gerber Viewer
  5. Place the order.

Optional — SMT Assembly
PCBWAY supports full component assembly. If you prefer pre-mounted SMD parts:

  • Upload BOM.csv
  • Upload CPL.xlsx
  • Review polarity-sensitive parts (diodes, regulators, ESP-12F)
  • Confirm parts availability and order

?️ Step 2 — Components Required

Below is the full list of components required for building the controller. Relays allow controlling home appliances (lights, heaters, fans, pumps, etc.). The ESP8266 provides full WiFi connectivity and integrates perfectly with Home Assistant.

ReferenceComponentQtyDescription
U2ESP-12F1ESP8266 WiFi Module
U6AMS1117-3.313.3V Regulator
U12AMS1117-5.015V Regulator
U3DHT111Humidity & Temperature Sensor
U7DS18B201Temperature Probe
U5PJ-320A1Audio Jack Connector
Q1,Q3,Q5,Q7MMBT54014PNP Transistors
Q2,Q4,Q6,Q8MMBT55514NPN Transistors
K3,K5,K6,K7ZC32F-012-HS3412V Relays
D1LD2711Status LED
D2-D51N41484Flyback Protection
C1,C21000µF2Filtering Capacitors
C410µF1Decoupling
C3100nF1Ceramic Capacitor
R1,R5,R8,R11,R16100Ω5LED & Driver Limit
R3,R4,R12,R14-R191kΩ10Base Resistors
R2,R6,R9,R10,R1310kΩ8Pull-up Resistors
R74.7kΩ1DS18B20 Pull-up
33R133Ω1Current Limiting
J1Power Relay1Main Input
J2,J312-Pin Headers2I/O Connectors
J4Flash Header1Programming
J5Reset Button1Manual Reset
SW1Tactile Switch 6mm1User Button
Jumpersd5,d6,d73Mode Configuration

Below are example screenshots of purchased components:


⚡ Step 3 — Power Requirements

ParameterValueNotes
Input Voltage5V DCUSB or external supply
Current Draw80–200 mADepends on relay state
Relay Load10A @ 250V ACPer channel
Logic Level3.3VNative ESP8266

? Step 4 — Assembly & Soldering Tips

  • Start with SMD components (ESP-12F first)
  • Use lead-free solder (SAC305)
  • Soldering iron temperature: 350°C
  • Double-check polarity for diodes and capacitors
  • Use flux for clean, reliable joints
  • After assembly, check for shorts with a multimeter

Testing Before Powering On

  • Visual inspection under light
  • Measure 5V and 3.3V rails
  • Connect USB power and check LED indicator
  • Upload a simple blink sketch to ensure the ESP8266 responds

⚠️ Safety Warnings (Mains Voltage)

  • Relays switch 110V/220V AC
  • Always disconnect mains power before wiring
  • Use flame-retardant enclosure
  • Follow local electrical safety regulations

? Step 5 — Flashing the Firmware

Download the firmware from GitHub releases:
EcoLogic Manager v1.0

Please upload:

  • firmware.bin — main program memory
  • littlefs.bin — filesystem data

Recommended flasher: NodeMCU Flasher

Connect via USB/Serial adapter and flash both memory regions.


? Step 6 — Connecting to IoT Manager

Once the firmware is installed:

  • Connect device to your WiFi
  • Log in to IoT Manager
  • Add your new device
  • Control relays, sensors, and read telemetry

? Version History

VersionDateChanges
v22025-07Improved routing, isolation, added protection circuits
v12025-05Initial release

? Contributing

  • Fork the repository
  • Create feature branch
  • Commit improvements
  • Submit Pull Request

? Support & Donations

If this project helped you, feel free to support the development: Buy Me A Coffee