Coder Social home page Coder Social logo

rvsmartcontrol's Introduction

RV Smart Control

RV Smart Control is a LIN-bus based control system for recreational vehicles. It runs on an ESP32 (NodeMCU-ESP32/ESP32 DEVKITV1), utilizes an extra LINBUS Breakout board and a CJMCU-111 rotary input device. (I wrote an Arduino demo which shows the latter one interrupt driven.) Furhtermore an ILI9341 Display (320x240 px) is used to show the menu driven control and a combined sensor board is connected to aquire environmental information.

Part List

Please note: The links are just to showcase the components. You may buy your parts elsewhere, of course.

Software

This is a PlatformIO project, developed using VSCodium editor with PlatformIO IDE extension. To install PlatformIO IDE extension you might need to activate the M$ extension maketplace for VSCode This procedure is described here: https://github.com/VSCodium/vscodium/blob/master/DOCS.md#how-to-use-the-vs-code-marketplace.

Prerequisits

Prior to compile you need to run once the following commands to install dependencies:

  • pio pkg install -l "adafruit/Adafruit ILI9341"
  • pio pkg install -l "adafruit/Adafruit BMP280 Library"
  • pio pkg install -l "hideakitai/MPU9250"
  • pio pkg install -l "adafruit/Adafruit BusIO"

The complete code is auto formatted using "atom-beutify", which is installed like this: apm install atom-beautify Selected auto formatter is "uncrustify" with default settings.

3rd Party Libraries

RvSmartControl uses the RemoteDebug library make serial debugging obsolete and uses a websocket over WiFi instead. On the remote side you can use RemoteDebugApp to receive debug messages and even control the debugging behaviour.

Hardware

This hardware description comes from https://github.com/frankschoeniger/LIN_Interface as I found it very good and the this project is slightly inspired by "LIN_interface". This description uses an Arduino Nano running the code.

Wiring Of The Components

TODO: Create Fritzing project to illustrate the wiring.

LINBUS Breakout - skpang.co.uk

PIN LIN PIN NodeMCU-ESP32
GND GND
CS D12
FAULT not connected
TxD TX2
RxD RX2
VCC D14

Connector 2 on LIN Breakout

PIN LIN PIN IBS / Car
UBat Battery +12V
LIN IBS PIN 2
GND GND terminal of IBS

Hella IBS 200X Sensor

IBS PIN IBS / LINBUS breakout
PIN1 Battery +12V
PIN2 LIN

ILI9341 TFT Display

PIN Display PIN NodeMCU-ESP32
VCC D27
GND GND
CS D32
RESET D25
D/C D33
SDI(MOSI) D23
SCK D18
LED D26
SDO(MOSI) D19

GY-91 Sensor

PIN GY-91 PIN NodeMCU-ESP32
VIN not connected
3V3 D13
GND GND
SCL D22
SDA D21
SDD/SAO D4
NCS not connected
CSB not connected

Things to do

There are allways things that one want to see included into this project. So for a long term plan I put some use cases to remember here:

If you have done some work on that allready or if you just want to contribute to the project in any way, feel free to file a pull request or open an issue.

rvsmartcontrol's People

Contributors

chrisphl avatar

Stargazers

 avatar  avatar

Watchers

 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.