Giter Site home page Giter Site logo

ibravo / esp8266signalkclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcobergman/esp8266signalkclient

0.0 0.0 0.0 14 KB

Simple sketch to send delta messages to a SignalK UDP socket.

License: Apache License 2.0

Shell 6.25% C++ 93.75%

esp8266signalkclient's Introduction

ESP8266SignalkClient

Minimalistic sketch to send delta messages from an ESP8266, via Wifi, to a SignalK UDP socket.

image

To prepare the Arduino IDE, goto File->Preferences and add http://arduino.esp8266.com/stable/package_esp8266com_index.json as an Additional Board Manager URL. Then goto Tools->Board->Boards Manager, search for ESP8266 and install. For my Wemos D1 Mini board, I chose Generic ESP8266 Module. Google your way around.

To set up SignalK, add a Data Connection with data type 'SignalK', Signalk Source 'UDP', port '30330'.

The analog input of the ESP8266 chip has a range of 0-1.0V; the Wemos D1 Mini I used has an on-board voltage divider giving it a 0-3.3V range. Do your own research. The chip's AD converter is 10 bits only; for better resolution hook up an AD1115.

To test this type of things, this code was used:

echo '{"updates":[{"meta":[{"path":"cell.voltage","value":{"units":"V"}}]}]}' | netcat -N -u 10.10.10.1 30330
echo '{"updates":[{"values":[{"path":"cell.voltage","value":"87", "meta": {"units": "V", "Description": "cell voltage"}}]}]}' | netcat -N -u 10.10.10.1 30330

esp8266signalkclient's People

Contributors

marcobergman 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.