Skip to the content
6 layers90 × 90 mmSolarDataLogger AddOnBoard Template, the printed circuit board in 3D

SolarDataLogger AddOnBoard Template

brokebit/SolarDataLogger

Firmware for custom data logger for Victron MPPT charge controllers via the Ve.Direct port/protocol.

Size
90 × 90 mm
Copper layers
6
Thickness
1.65 mm
Parts
8
Nets
6
Pads
30
Tracks, vias
27, 6
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
19 Jan 2025
Updated
17 Feb 2025

Overview

SolarDataLogger AddOnBoard Template is an open-source printed circuit board by brokebit, from the brokebit/SolarDataLogger repository on GitHub, published under the CC0-1.0 licence. It is a 6-layer board of 90 × 90 mm with 8 parts on 6 nets, routed with 27 tracks and 6 vias.

It is built around the HY2541WV-N-2X3P.

Main components

1

README

Readme.md

alt text

This repo has submodules

  • To clone: git clone --recurse-submodules -j8 REPO_URL
  • To pull latest versin: git pull --recurse-submodules

What is all this

Firmware for custom data logger for Victron MPPT charge controllers via the Ve.Direct port/protocol.

Features

  • Power via 9v-20v input or USB
  • ESP32-C6 RISC-V CPU
  • Wifi 6 support and provisioning credentials via BLE
  • Receive, parse, and publish data from a Victron MPPT controller
  • Publishes: panel voltage, battery voltage, panel current, battery current, serial number, etc
  • Publish data via MQTT in InfluxDB line protocol format
  • Onboard temperature and humidity sensors (AHT20)
  • Support for optional add on board with current sensor (INA226) and solid state relay (CMX60D10)
  • WS2812 LED for status information
  • CP2102N USB Uart for programing and logging
  • USB port direct to ESP32-C6
  • Remote control via MQTT command channel

Supported Victron MPPT Controllers

Supports both the smaller MPPT controllers that have load output and control:

  • MPPT 75/10
  • MPPT 75/15
  • MPPT 100/10
  • MPPT 100/20

Also support larger MPPT controllers without load output via a INA226 Current sensor on an add-on board:

  • MPPT 100/30
  • MPPT 100/50
  • MPPT 150/35
  • MPPT 150/45
  • MPPT 150/60
  • MPPT 250/70

The Details

This is a Platform IO project. Last tested with ESP IDF 5.3.1

  • /lib contains drivers and victron parser
  • /src contains main program

Edit platform.ini to set some global variables and config parameters.

  • INA226_PRESENT: Set this to one if you have a INA226 connected. Otherwise 0.
  • AHT20_PRESENT: Set this to 1 if you have a AHT20 connected. Otherwise 0.
  • SENSOR_LOCATION: Set this to any string you want. It will be included in the mqtt message. No more than 24 characters
  • SENSOR_TYPE: Set this to whatever you want. i.e. ESP32-C6 or ESP32-S3. No more than 24 characters

alt text

MQTT

Channels

  • Influx data is sent to MQTT_TOPIC
  • Command should be submitted to the channel named mac address + "-cmd" i.e. FFEEDDCCBBAA-cmd
  • Commands responses are sent to the channel named mac address. i.e. FFEEDDCCBBAA

Support remote MQTT Commands

  • ota - Perform an OTA Update
  • rbk - Roll back to previous version
  • rst - Reboot
  • png - Get a pong back
  • tmp - Get current temp in C
  • hum - Get current humidity
  • mem - Get free heap memory
  • ver - Get firmware version

OTA

  • Firmware is download via https from any URL. The firmware looks for a file that is the mac address in all caps.
  • Firmware URL is defined in : OTA_BASE_URL (without the filename)
  • Rememeber you need to configure partitions.csv 1mb partition is not enough.

WiFi Provisioning

  • To make a QR Code for provisioning use the following JSON string and fill in appropriate values: {"ver":"v1","name":"PROV_123456","pop":"abcd12345","transport":"ble"}
  • Use the mobile app called "ESP BLE Provisioning"
  • In menuconfig make sure that: Component config -> Bluetooth -> Bluetooth controller -> Controller Options is set to BLE not Dual Mode.

What can you do with it?

Grafana Dashboard Example

alt text

To Do

  • Fix math for INA226 current sensor and address twos compliment
  • CMX60D10 Relay Driver
  • Some way to configure it without recompiling
  • Redo design in KiCad instead of EasyEDA and add to repo
  • Finish add onboard with INA226 and CMX60D10
  • Code clean up. Comments, proper error handling, review memory managment, null point checks, etc
  • Add remote commands for reading voltage and current data
  • MQTT TLS Support

Done

  • WS2812 Driver
  • OTA Updates
  • Wifi Provisioning via BLE

Parts

8
QtyValueFootprintReferences
6MountingHole_PadMountingHole:MountingHole_3.5mm_Pad_TopBottomH1, H2, H3, H4, H5, H6
1HY2541WV-N-2X3PConnector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_Vertical_SMDU1
1HY2541WV-N-2X3PConnector_IDC:IDC-Header_2x03_P2.54mm_Vertical_SMDU7

More from brokebit/SolarDataLogger

1
  • 6 layers90 × 90 mmSolarDataLogger, the printed circuit board in 3D

    SolarDataLogger

    brokebit/SolarDataLogger

    Firmware for custom data logger for Victron MPPT charge controllers via the Ve.Direct port/protocol.

    70 partsCC0-1.0

Similar boards

  • 6 layers20 × 20 mmRect 20 20, the printed circuit board in 3D

    Rect 20 20

    miniscope/MiniscopeZero

    Miniscope Zero hardware and software

    8 parts2CERN-OHL-S-2.0
  • 6 layers120 × 56 mmAdapter board, the printed circuit board in 3D

    Adapter board

    Abner0907/imx568_4_pairs_stereo

    Four hardware-synchronized stereo pairs (8 × Sony IMX568-AAMJ-C, 5.1 MP mono global shutter):

    8 parts
  • 6 layers10.5 × 20.7 mmUsb adapter, the printed circuit board in 3D

    Usb adapter

    MicroLind-Developers/microlind-hw

    Hardware repository for the microlind project

    8 partsCERN-OHL-P-2.0
  • 6 layers169.7 × 51.9 mmKicad new, the printed circuit board in 3D

    Kicad new

    pale-shadow/badge-2017-bsidesindy

    We did this as a workshop during @indybsides in March 2017.

    8 parts
  • 6 layersBlower 50w, the printed circuit board in 3D

    Blower 50w

    zetikh/statorforge

    Open PCB stator motor CAD: spec in, verified axial-flux PCB stator design + manufacture-ready Gerbers out

    8 partsMIT
  • 6 layers60 × 135.8 mmV2A2.0, the printed circuit board in 3D

    V2A2.0

    Down2Derive/SLAC-SM-25

    7 parts
  • 6 layers12v smps, the printed circuit board in 3D

    12v smps

    charlieh0tel/ee_stuff

    7 partsBSD-3-Clause
  • 6 layers53 × 36.5 mmBatteryBoard 10sNp V1, the printed circuit board in 3D

    BatteryBoard 10sNp V1

    BradleyCanty/Parametric-21700-Battery-System-V1

    A do-it-yourself 21700 battery system for use in UAVs or UGVs

    7 partsMIT

Questions

How big is the SolarDataLogger AddOnBoard Template PCB?

It measures 90 × 90 mm and has 6 copper layers, 1.65 mm thick.

What parts does the SolarDataLogger AddOnBoard Template use?

8 parts, built around the HY2541WV-N-2X3P. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the SolarDataLogger AddOnBoard Template KiCad files?

From the brokebit/SolarDataLogger repository on GitHub, at the commit this page was made from: the board is hardware/SolarDataLogger-AddOnBoard-Template/SolarDataLogger-AddOnBoard-Template.kicad_pcb and its schematic hardware/SolarDataLogger-AddOnBoard-Template/SolarDataLogger-AddOnBoard-Template.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SolarDataLogger AddOnBoard Template design in my own project?

Its repository publishes it under the CC0-1.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).