Skip to content

Pekaway/VAN_PI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

ALL IN ONE RASPBERRY BASED MOBILE SMART HOME ENVIRONMENT

Explore the docs

View Frontend Demo

Forum

### This repository is currently under construction and not yet finished!

Table Of Contents

About The Project

This project has resulted from a hobby DIY VAN project to combine the variety of displays and hardware in the VAN and caravan area and to make the easy installation possible.

Everything is built around the Raspberry PI, both software and hardware.

We took care of a simple startup to make this project also accessible for non-programmers. Take a look at the Quickstarts.

For the developers is a Node-RED backend and various Python scripts for expansion and improvement ready.

you can find the hardware for this project in our store, or just built it yourself

Logo

SHOP NOW

Releases

VAN PI OS 2.0.0 will be released in April 2024

Installation Script

If you don't want to use the system as a headless system you can use our installation script.

Pekaway Hardware for VAN PI

VAN PI CORE

Core of the system that brings all devices together.

Pekaway/VAN-PI-CORE (github.com)

VAN PI DIMMY

7 Channel PWM Dimmer Board Works wired without an extra chip. You can use it with an ESP32 (wemos) as a standalone Board and you can also use connect it via PekawayMOTA (Tasmota) per Wifi/MQTT to the VAN PI OS.

Pekaway/DIMMY: dc PWM LED Controller (github.com)

Pekaway Smart Shunt ESP32-C3

ESP32-C3 INA2226 200A Shunt. Works with the VAN PI OS via BLE but you can also use it standalone.

Pekaway/ESP32-BLE-WIFI-SHUNT: ESP32-C3 Battery Monitor Shunt (github.com)

Pekaway Touchscreen

7" capactive Touchscreen. Based on Nextion and the Nextion Studio. Connect to the System VAN PI System via "RJ45 UART"

Advantages compared to an Andorid/IOS tablet. -> much lower standby power, fast wake-up time, easy integration, is permanently installed and can therefore not be used for other things and is therefore always in the same place.

Pekaway Touchdisplay

Pekaway IOT Bridge

Connect the system via Wifi to the Mobilnetwork. Comes with build in SIM. The Bridge uses the local http api. So also here if you want your own software stack. You only have to provide the VAN PI OS API to use the bridges to.

  • 2G Version

    • entry variant
    • fast enough to read the data from the system. Good network coverage. Switching off 2G will still take a while (EU)
  • 4G Version

    • uses the normal LTE 4G network. LTE-M is still not available in many countries. NB-IOT is not stable for our application due to the high latency.
    • GPS
    • GPS ALARM possible
  • 4G+

    • same functionality as the 4G version, but with battery backup. The system continues to run even if the main battery is switched off.

Supported Devices

Battery

  • Bluetooth BMS:

    • JBD BMS SYSTEMS e.g. Liontron Batterys - dual setup possible check our tutorial page
    • DALY BMS (in development)
    • VICTRON SMART SHUNT BLE in development
  • wired:

    • VICTRON SMART SHUNT VE.Direct
    • DALY BMS UART BLUETOOTH (6pin)
    • DALY BMS UART MONIT (3pin)
    • JBD BMS UART PORT
  • analog Shunt *obsolet -> only works with the old Relayboard


- Measuring the voltage drop across a SHUNT using the ads1115 on the VAN PI relayboard and the VAN PI HAT. Voltage measurement is done using a voltage divider. A Python script reads the data and makes it accessible by providing a Bottle webserver (port 8080), Node-RED then checks the endpoint(s) to get the values. Data remains in the RAM and is written to the SD-Card every 5min.

Heater

Displays

  • Web interface:

Using the Node-RED web interface, any device can be used as a display. Here it can be reached under http://"IP":1880/ui or alternatively under http://van.pi.

  • HDMI:
    VAN PI OS is based on a headless Debian/Raspbian image. You can install the software stack on Ubuntu/Debian based desktop versions with the install script and then use the normal webinterface as your display. Please be aware that manual adjustments may need to be done.

  • Nextion via UART:

With the RJ45 UART adapter we can connect a Nextion display to the Relayboard/HAT via an RJ45 ethernet cable. It provides 5V DC and 3.3V UART for communication. We do not have an official VAN PI Nextion image yet. You can find information about the protocol in the docs to build your own .tft file. Or just use our Pekaway Touchscreen Pekaway Touchdisplay

  • Sonoff NS Wifi Panel:
    We support the NS Panel and have prepared a VAN PI tft file for it. The data is send with MQTT. Please check this installation quide in development

  • Pekaway APP
    Control the device via our App. The App is using the http&MQTT API. So if you planing your own software stack. If you provide our API (build in Node-Red) The app will also work on your software.

GPS

  • GPS via RJ45UART

    • You can connect a GPS module to the VAN PI Core using the RJ45 UART. All you need is a 3.3V module and a 12V -> 3.3V voltage converter. The module then sends the data to UART1 and is evaluated in Node-Red. Pay attention to the baud rate and check it in the connections Flow if necessary.
  • GPS via Pekaway IOT Bridge 4G and 4G+

Other

Software

Node-RED

Node-RED is used as the backend, doing all the calculations and connections. It also serves the frontend dashboard on port 1880. Check the Wiki to get an overview on how the system works.

Python

Using some python scripts we can evaluate data coming from the shunt and different sensors. We decided to use Python instead of Node-RED itself to make use of another CPU core, since Node-RED, being a NodeJS application, only uses a single thread. Get more information about the Python scripts here. The scripts are included in the "home_pi_pekaway_files.zip" in the VanPi-OS folder if you want to read through them.

Communication

VanPi OS offers a HTTP and a MQTT API, which can be used to read and write data. See Communication. Please be advised to not change the existing API functions in Node-RED, because several other hardware/software parts we offer use the API too, such as the IoT Bridge. Feel free to add more endpoints though, in case you need to.

FLASHTOOLS

Here you can flash your ESPs with our preconfigured software pekawayMOTA .

Online flasher - connect your ESP via USB to your computer and use Google Chrome to flash the device using the online flasher.

Onboard Flasher - You'll find it in the webinterface of the VanPi OS, go to config > system > flashtool. It'll start a different set of flows which will allow you to flash your ESP device when it is connected directly to the Raspberry Pi.

SD IMAGE flash

We recommend to flash the images with either Balena Etcher or Win32DiskImager

OTHER SOFTWARE STACKS

Software stack based on VAN PI OS Node-red "Core" functions, supports also the RPI5 and a lot of cool other Features.

MQTT Connector for HomeAssistant etc.

Support the Project

This project lives from its community. We look forward to your support. Only with your support can the project continue to grow and offer you exciting hardware and software.

Patreon

We run a german patreon account on which we publish further tutorials. These tutorials will be uploaded to our public homepage about 6 months later.

If you like our project feel free to support it:

VAN PI by Pekaway | All In One Campercontrol System | Patreon

Links

Forum --- Instagram --- Homepage --- YouTube --- Contact