Skip to the content
2 layers74.9 × 50.2 mmD1MiniChainCounterWLAN, the printed circuit board in 3D

Remote control for anchor chain that shows current chain lenght via WLAN to phone/tablet (with ESP8266 D1 Mini).

Size
74.9 × 50.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
30
Pads
69
Tracks, vias
203, 16
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
2 Nov 2020
Updated
7 Oct 2021

Overview

D1MiniChainCounterWLAN is an open-source printed circuit board by AK-Homberger, from the AK-Homberger/ESP8266_AnchorChainControl_WLAN repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 74.9 × 50.2 mm with 20 parts on 30 nets, routed with 203 tracks and 16 vias.

It is built around the WEMOS D1 MINI, H11L1 and BC337, with the G5Q-1A among its other parts. Its parts include 5 resistors, 4 transistors, 4 connectors, 3 diodes and 2 ICs. It belongs with the ESP8266 boards of this library.

Main components

4

README

README.md

Anchor Chain Control with WLAN

This is a port from the ESP32 repository to a ESP8266 D1 Mini which is smaller than the ESP32 Node MCU.

Caution: This is the updated version 1.2 with changed I/O pin definitions! The PCB is also updated but untested.

This repository shows how to remotely control the anchor chain relay via WLAN from phone/tablet. Anchor chain events from the chain sensor are measured and presented on the phone/tablet.

Just set the WLAN ssid and password according to your needs. Select WLAN type with setting WiFiMode_AP_STA to "0" means Acess Point, or "1" means Client with DHCP.

Also set Chain_Calibration_Value according to your sensor (e.g. 0.33. meter per event).

If working as Access Point, connect the phone/tablet to the defined AP and start "192.168.4.1" in the browser. If working as WLAN client, check the DHCP IP address with Serial Monitor of IDE and start browser with the shown IP address.

Picture1

To control the anchor chain relay just press:

  • "Down" for anchor down
  • "Up" for anchor up
  • "Stop" for Stop
  • "Reset" to reset the chain counter to zero

Features:

  • Saftey stop to stop "anchor up" two events before reaching zero (can be changed in code with SAFETY_STOP).
  • Safety stop if maximum chain lenght is reached (standard 40 meters, can be changed with MAX_CHAIN_LENGTH)
  • Watchdog timer to stop power after 1 second inactivity of client (e.g. due to connection problems).
  • Watchdog timer to detect blocking chain. Engine stops if no events are detected within 1 second for up/down command.
  • Current Chain Counter is stored in nonvolatile memory. ESP can be switched off after anchoring (counter is restored after new start).
  • Demo mode to check functionality without having a windlass / chain counter connected to ESP (set ENABLE_DEMO to 1).

Picture2

A pcb layout is available in the KiCAD folder: "D1MiniChainCounterWLAN.kicad_pcb".

You can order a PCB from Aisler.net: https://aisler.net/p/WJSHXVDM

Board

The current design should work for a Quick or Lofrans anchor chain relay and chain sensor (which looks like a simple reed relay triggerd from a magnet). Connection details for a Quick windlass/counter can be found here: https://www.quickitaly.com/resources/downloads_qne-prod/1/CHC1203_IT-EN-FR_REV001A.pdf

Used I/O pins:

  • D1/D2: Output, relais Up/Down
  • D6/D7: Input, manual override detection Up/Down (option)
  • D5: Input, chain sensor

With these IO pins the boot problem with the relais should be solved. Details see here: https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/ The former version used D4/D5 as relais output istead of safe GPIO4(D1) and GPIO5(D2). D5,D6,D7 are safe for input.

The manual override detection function with D6/D7 is currently missing in the code. Feel free to support/update.

If you have problems with the chanin counter input measuring multiple count signals, it might be necessary to use a library to avoid multiple counts e.g.: https://github.com/mathertel/OneButton

You can easily do your own changes now: I added the full KiCAD details: https://github.com/AK-Homberger/ESP8266_AnchorChainControl_WLAN/tree/main/D1MiniChainCounterWLAN

Parts:

  • Board Link
  • U1 D1 Mini Link
  • J2 D24V10F5 Link
  • R1 Resistor 1 KOhm Link
  • R2, R3 Resistor 270 Ohm (*2) Link
  • R4, R5 Resistor 10 KOhm (*2) Link
  • Q1, Q2, Q3, Q4 Transistor BC337 (*4) Link
  • D2, D3 Diode 1N4148 (*2) Link
  • D1 Diode 1N4001 Link
  • U2 H11-L1 Link
  • K1, K2 Relay (*2) Link
  • J1, J3, J4 Connector 2-pin (*3) Link

Updates:

  • 06.10.2021 - Version 1.2: Changed IO pins to avoid problem during boot and preparation for correct manual override detection.
  • 06.11.2020 - Changed PCB layout to version 1.1. Larger terminal blocks (5.08 mm) and different transistor footprints for easy soldering.
  • 02.11.2020 - Version 1.0: Initial version with ESP8266 D1 Mini.

Parts

20
QtyValueFootprintReferences
4BC337Package_TO_SOT_THT:TO-92_HandSolderQ1, Q2, Q3, Q4
210KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R5
21N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD2, D3
2270Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3
2G5Q-1ARelay_THT:Relay_SPST_Omron-G5Q-1AK1, K2
11KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
11N4001Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
1Chain Sens.TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ3
1Chain Sw.TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ4
1D24V10F5Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1H11L1Package_DIP:DIP-6_W7.62mmU2
1PowerTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ1
1WeMos_D1_miniModule:WEMOS_D1_mini_lightU1

Similar boards

  • 2 layers78.7 × 48.3 mm24vD1MiniWindlassControlAndChainCounter, the printed circuit board in 3D

    24vD1MiniWindlassControlAndChainCounter

    LukeSavage1306/Windlass-Remote-Chain-Counter-and-SignalK-Feed

    NOTE: As at mid November 2022 the code, pcb link, images etc are the latest version as described below, but I have yet to update the purchasing links Should be done in next week or so.

    22 parts4
  • 2 layers98.8 × 79 mmGenv01 2, the printed circuit board in 3D

    Genv01 2

    dimipapr/TalkyPump

    The legacy v1 firmware is preserved under archive/ as a behavioral reference.

    38 parts
  • 4 layers144.8 × 83.8 mmPCB Health.V6, the printed circuit board in 3D

    PCB Health.V6

    uob-hep-cad/dune_timing_system_gib_slow_control_d001-25_dga

    Slow Control Interface Board for the DUNE Timing System GIB

    64 parts
  • 2 layers44.8 × 64.8 mmBD35F FridgeController, the printed circuit board in 3D

    BD35F FridgeController

    AK-Homberger/BD35F-FridgeController

    An electronic thermostat for a Danfoss/Secop BD35F Compressor with ESP8266.

    10 parts7GPL-3.0
  • 2 layers173 × 67.8 mmESP relay-6ch V1, the printed circuit board in 3D

    ESP relay-6ch V1

    koson/ESP-relay-6ch

    ESP8266/ESP32 based board with 6x 24 VDC inputs and 6x 10A relay outputs.

    91 parts
  • 2 layers133 × 89.5 mmESP32-Simple Thermostat PCB, the printed circuit board in 3D

    ESP32-Simple Thermostat PCB

    jrtaylor71/ESP32-Simple-Thermostat

    Simple ESP32 Thermostat with touch screen

    52 parts2
  • 2 layers100 × 100 mmBiltong board main, the printed circuit board in 3D

    Biltong board main

    myles-parfeniuk/biltong_board

    Sun drying emulation controller for biltong and other dried foodstuffs.

    89 parts2GPL-3.0

Questions

How big is the D1MiniChainCounterWLAN PCB?

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

What parts does the D1MiniChainCounterWLAN use?

20 parts, built around the WEMOS D1 MINI, H11L1, BC337 and G5Q-1A. 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 D1MiniChainCounterWLAN KiCad files?

From the AK-Homberger/ESP8266_AnchorChainControl_WLAN repository on GitHub, at the commit this page was made from: the board is D1MiniChainCounterWLAN/D1MiniChainCounterWLAN.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the D1MiniChainCounterWLAN design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).