Giter Site home page Giter Site logo

serialfi's Introduction

SerialFi

Introduction

SerialFi allows you to stream serial data from a micro-controller board to browser clients using any ESP8266 based board. The firmware is developed and tested on a NodeMCU board but should work on any ESP8266 based board with little or no modifications. The firmware also allows to send textual data back to the device from the wen interface, allowing two-way communication with the micro-controller board.

Connection

The figure below shows a NodeMCU board with SerialFi firmware connected to an Arduino Uno. Since the Arduino is a 5v device, a Zener diode (1N4148) is used on the TX pin of the arduino for level shifting as the NodeMCU is only 3.3v tolerant. SerialFi uses the SoftwareSerial library on the pins below for serial communication.

ESP8266 pin GPIO # Function
D1 GPIO5 TX
D2 GPIO4 RX

Schematic

Usage

Upon startup, SerialFi tries to connect to the last used WiFi network. If it is unable to connect or this is the first boot, it creates a network called SerialFiXXXX where XXXX is a hex string based on the ESP8266 chip id. When connected to this SSID, it redirects to the WiFi setup page to facilitate the connection to the local WiFi network. Once connected to this local WiFi network, just visit the web app at http://ip.address.of.esp8266/. Here you can select the baud rate that the ESP8266 Software UART would connect with the micro-controller. If all gows well, you should start to see the serial data from the micro-controller in the web app.

The figure below shows the screenshot of the web interface of SerialFi.

Screenshot

Arduino Shield

The arduino folder contains the Kicad design files for the SerialFi Arduino shield. This shield uses a Wemos D1 Mini or compatible ESP8266 dev board. It also has a small prototyping area with +5V, +3.3V and GND traces.

Schematic

Schematic

Rendering

Shield

serialfi's People

Contributors

nhasan avatar

Watchers

 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.