Skip to the content
2 layers78.7 × 48.3 mm24vD1MiniWindlassControlAndChainCounter, the printed circuit board in 3D

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.

Size
78.7 × 48.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
28
Pads
71
Tracks, vias
158, 3
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
10 Dec 2020
Updated
24 Nov 2022

Overview

24vD1MiniWindlassControlAndChainCounter is an open-source printed circuit board by LukeSavage1306, from the LukeSavage1306/Windlass-Remote-Chain-Counter-and-SignalK-Feed repository on GitHub. It is a 2-layer board of 78.7 × 48.3 mm with 22 parts on 28 nets, routed with 158 tracks and 3 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, 3 ICs, 3 diodes and 3 connectors. It belongs with the ESP8266 boards of this library.

Main components

4

README

README.md

Windlass Remote Control with 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.

Credit for the original version of this app goes to AK-Hombergers.

The current version:

  • Is based on a Wemos D1 Mini (ESP8266) reading pulses from a conventional windlass chain sensor with WiFi access to effect control either directly in AP mode or via the boats main wifi in station mode.
  • In AP mode uses mDNS for easy access via a named URL rather than remembering IP addresses
  • Provides a wireless remote windlass control from any phone/tablet with wifi capability giving up/down/stop/chain-length-counter/counter-reset functionality and the ability to enter a preset scope to which the windlass will automatically raise/lower the chain.
  • Provides chain-length to SignalK via a UDP connection
  • Works with 12 volt systems - just requires a single transient suppressor diode to be changed for 24v
  • Will also track chain-length when the windlass is operated by existing controls or when allowed to "free fall"
  • LED ON indicates that the board should be operating the windlass. Off indicates board is in standby
  • Stores current chain length in nonvolatile memory so that length is stored on switch off and restored after powering back up.
  • Demo mode to check correct operation without need for a gypsy sensor present.
  • Detects windlass operation from other existing controls and counts chain for up/down/free fall

Includes various safety features:

  • Safety interlock so that Up/Down will not work if another (existing) control is already operating the windlass.
  • Safety stop to stop "anchor up" a preset number of gypsy revolutions before reaching zero (can be changed in code with SAFETY_STOP).
  • Safety stop if maximum chain length is reached (can be changed with MAX_CHAIN_LENGTH)
  • Safety watchdog timer to stop power after predetermined period of inactivity of client (e.g. due to loss of wifi connection).
  • Safety watchdog timer to detect blocked chain. Windlass stops if no events are detected within predetermined period of activity after up/down command.

To implement you need to

  • Build and install the windlass control board - PCB design available from the link below
  • Configure the code (in Arduino)
    • WLAN type setting WiFiMode_AP_STA to "0" (stand alone access point) or "1" (Client with DHCP for SignalK feed). Note code assumes SignalK server is at 10.10.10.1. Configure to suit your set up. More detail on this below.
    • Configure your wifi SSID and password
    • Calibrate for your sensor (e.g. 0.35 meter per revolution of the gypsy) and the maximum chain length
    • Flash the code to the ESP8266

If working as a standalone Access Point, connect the phone/tablet to the defined network (default SSID is "windlass", password "windlass" - can be changed at lines 23 and 24) and browse to "windlass.local" (can be changed at line 195) If working as WLAN client, browsing to "windlass.local" should still work - although I haven't tested it. If not determine the DHCP IP address using the Arduino Serial Monitor (or other IDE) and start your browser with that IP address.

This should give you a screen as per below on your phone/tablet. A flashing red dot in the title bar indicates connection established with the Wemos.

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
  • Or enter the desired scope and hit "Target Scope" to pay out/pull in to the set length

Picture2

A pcb layout is available in the main folder.

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

Board

Parts:

Parts list currently points to largely German suppliers but are generally widely available with the exception of the PCB. If you want to source these elsewhere I can provide the detailed KiCad files.

  • Board Link
  • U1 D1 Mini Link
  • U3 K7805 1000R3L Link
  • C1 10uF 50v can electrolytic (can be reduced to 25v if running on a 12V system)
  • C2 22uF 15v can electrolytic
  • R1 Resistor 5 KOhm (if using 12v you can reduce this to 2.2 Kohm to ensure accurate counting at low battery voltage) 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

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

The board requires connection to your windlass power supply (12v - for 24v change the transient suppressor diode D4 for circa 29v equivalent - no other configuration necessary), connection to your windlass sensor (polarity of connection does not matter) and connection of the Up and Down relay feeds to the existing Up and Down terminals on the main windlass relay (note: the switching terminals that connect to any existing switch controls - NOT the motor output terminals).

To access via the main boat wifi or to send data to SignalK you need to set up in Station mode. To do that set WiFIMode_AP_STA to 1 at line 21 and define the main boat wifi SSID and Password at lines 23 and 24. Define the signalk server IP and port at lines 25 and 26. In Signalk you muse also define a UDP connection. Go to Server, Connections and define a new connection as per the picture below. Match the port number to the number you used in the .ino code (default is 4210). Once configured ChainLength should appear as a data item within the Data Browser.

UDP connection

The gauge display can be changed to mirror your particular chain length in index_html.h The range is set at lines 133/134 and the coloured zones at line 144

Parts

22
QtyValueFootprintReferences
4BC337Package_TO_SOT_THT:TO-92_InlineQ1, 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
110uF 50VCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC1
11N4001Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
122uF10VCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC2
15kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
1Chain RelayTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-2-5.08_1x02_P5.08mm_HorizontalJ4
1Chain SensorTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-2-5.08_1x02_P5.08mm_HorizontalJ3
1H11L1Package_DIP:DIP-6_W7.62mm_SocketU2
1K7805 1000R3LConverter_DCDC:Converter_DCDC_RECOM_R-78E-0.5_THTU3
1Power 12/24VTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-2-5.08_1x02_P5.08mm_HorizontalJ1
1WeMos_D1_miniModule:WEMOS_D1_mini_lightU1

Similar boards

  • 2 layers74.9 × 50.2 mmD1MiniChainCounterWLAN, the printed circuit board in 3D

    D1MiniChainCounterWLAN

    AK-Homberger/ESP8266_AnchorChainControl_WLAN

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

    20 parts9GPL-3.0
  • 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 24vD1MiniWindlassControlAndChainCounter PCB?

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

What parts does the 24vD1MiniWindlassControlAndChainCounter use?

22 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 24vD1MiniWindlassControlAndChainCounter KiCad files?

From the LukeSavage1306/Windlass-Remote-Chain-Counter-and-SignalK-Feed repository on GitHub, at the commit this page was made from: the board is 24vD1MiniWindlassControlAndChainCounter.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the 24vD1MiniWindlassControlAndChainCounter design in my own project?

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