Coder Social home page Coder Social logo

beeugene / 4-20ma-wifi-bridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angeljmc/4-20ma-wifi-bridge

0.0 0.0 0.0 4.23 MB

IoT device to enable 4-20mA sensor communication with a MQTT broker

License: MIT License

JavaScript 1.29% C++ 70.54% Python 0.54% C 1.64% CSS 4.51% Makefile 0.04% HTML 21.34% CMake 0.11%

4-20ma-wifi-bridge's Introduction

4-20ma-wifi-bridge

IoT device to provide communication between 4-20mA sensors and cloud services. Powered by an ESP32, it allows a wireless connection via WIFI, the communication with the server is done through the MQTT protocol. The device has a user-friendly web configuration interface, which allows to manage the wifi connection, the connection with the MQTT broker as well as the calibration of the 4-20mA acquisition system.

pcb render

Features

Hardware

  • 5-24v Power supply.
  • 1 Input 4-20 mA.
  • 2 Relays to control loads up to 1A at 24DVC or 0.5A at 125VAC.
  • WIFI 802.11 b/g/n (2.4 GHz), up to 150 Mbps.

Get the source code

Download repository and update submodules:

$ git clone https://github.com/AngelJMC/4-20ma-wifi-bridge.git

Directory Structure

.
├── docs          # Documentation files
├── firmware      # FW source code (Visual Studio Code)
├── hardware      # HW design files (Kicad)

Firmware

If you want to modify the source code or program your devices, it is highly recommended to use Visual Studio Code and the Platformio plugin. Just open the "firmware" directory with Visual Studio Code and the whole project will be ready for use.

Load firmware

  1. Build and Upload Filesystem Image.
  2. Build and Upload program code.

Configuration Process

  1. Build and Upload Filesystem Image to your ESP32
  2. Build and Upload program code.
  3. Connect mobile or PC with hotspot: Logger_4-20mA_XXXX. Password: Kmf5cyJUWw
  4. Go to web browser and hit 192.168.4.1. Use the credential supervisor/fEVcCQxig to enter.
  5. Go to Network section and scan for your wifi network, write password and static network configuration if you want, hit apply.
  6. Go to Service section give necessary server credential for MQTT and set the pub/sub topic names.
  7. Go to Other section if you need calibrate the 4-20mA acquisition electronic.

Configuration Web

Library Used

The configuration web page is based on the work of @futechiot https://github.com/futechiot/Configuration-webpage-esp32

4-20ma-wifi-bridge's People

Contributors

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