Coder Social home page Coder Social logo

gevcuweb's Introduction

GEVCU - Web

by Michael Neuweiler

A replacement for the buggy GEVCU iChip. Use an ESP32 to connect via the existing serial interface of the GEVCU. It provides the GEVCU web-site and data via websocket to a web browser.

Advantages

  • The operation is much more stable
  • The communication is much faster because it's binary between GEVCU and ESP32. Thus the json data for the web-browser is generated by the ESP32, not GEVCU - off-loading GEVCU from time consuming work and reducing strings of 10-20 bytes to 2-3 bytes
  • With SPIFFS' 1.5MB there's three times more space for web-content than on iChip. With an SD card we're talking GB's and the possibility to store and present statistical data.

The configuration of the ESP32 is stored in data/config.json. Adjust it to your own needs.

Connect with a laptop, mobile phone, tablet or Raspberry Pi to the WiFi network of the ESP32 ("GEVCU" by default) and in a web-browser open http://gevcu.local

Required libraries

Required hardware

  • ESP32 board with GPIO 12-17 exposed - if possible with SD card reader integrated (then only 16,17 are required) - a good choice is https://www.aliexpress.com/item/4000133143167.html - although an SC card is not mandatory for operation, future extensions like storing statistical data will require it.
  • SD card with FAT file system to store the web site data on (you may also use 1.5MB SPIFFS instead). Upload the contents of the directory "data" to the root of the file system.
  • GEVCU (General Electric Vehicle Control Unit) to connect to via Serial2 interface.

BoardTop BoardBottom

Note: To ensure flawless operation, increase the "max_files" config in SD_MMC.cpp from 5 to 20 ! (in SDMMCFS::begin() , around line 72)

Upload Parameters

  • Board: ESP32 Dev Module
  • Upload Speed: 921600
  • CPU Freq: 240MHz
  • Flash Freq: 80MHz
  • Flash Mode: QIO
  • Flash Size: 4MB (32Mb)
  • Partition Scheme: Default with SPIFFS (1.2MB App, 1.5MB SPIFFS)
  • Core Debug Level: none
  • PSRAM: disabled
  • Port: gevcu at 192.168.3.1 (for over the air update once a working copy has been installed via USB)

Connect to GEVCU

The ESP32 must be connected the following way to GEVCU's wifi/iChip socket: Schema

With a simple adapter you can plug the ESP32 board right into the original socket. When creating the adapter board, make sure everything will fit in the GEVCU casing. And while you're at it, modify the board and attach an external antenna (like described here External Antenna) Adapter

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.