Code Monkey home page Code Monkey logo

esp32_anchorchaincontrol_wlan's Introduction

ESP32 Anchor Chain Remote Contol / Counter via WLAN

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

Pleaes have a look to the other repository with a port from this ESP32 based layout to a ESP8266 (D1 Mini) board. For the D1 mini a PCB is available also Link.

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. ESP32 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 ESP32 (set ENABLE_DEMO to 1).

Picture2

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 resistors R4, R5 and the transistors Q3, Q4 are currently not necessary. They shall support a manual override detection in the futere (currently not yet imlemented in the code).

Partlist:

  • ESP32 Link
  • D24V10F5 Link
  • Resistor 1 KOhm Link Other resistors are the same type! Click on "5% Carbon film resistors" then two times "+ more filter" to select values.
  • Diode 1N4148 Link
  • H11-L1 Link
  • Relay Link
  • PCB universal set Link

Updates:

14.02.2020 - Version 1.0: Changed web page layout.

13.02.2020 - Version 0.6: Added maximum chain lenght function.

13.02.2020 - Version 0.5: Added WLAN selection (AP / Client) and WLAN reconnect.

12.02.2020 - Version 0.4: Deleted delay() in loop() to improve responsiveness of web server.

12.02.2020 - Version 0.3: Added watchdog timer, safety stop and demo mode.

10.02.2020 - Version 0.1: Initial version.

esp32_anchorchaincontrol_wlan's People

Contributors

ak-homberger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.