Skip to the content
2 layers127.3 × 54.1 mmESP32 SolarBox, the printed circuit board in 3D

Read data from SRNE solar charge controllers.

Size
127.3 × 54.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
34
Nets
84
Pads
183
Tracks, vias
253, 0
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
12 Jun 2021
Updated
17 May 2023

Overview

ESP32 SolarBox is an open-source printed circuit board by cole8888, from the cole8888/SRNE-Solar-Charge-Controller-Monitor repository on GitHub. It is a 2-layer board of 127.3 × 54.1 mm with 34 parts on 84 nets, routed with 253 tracks and 0 vias.

It is built around the MAX3232ID and ESP32-DEVKITC-VE. Its parts include 17 capacitors, 7 connectors, 6 resistors and 4 ICs. It belongs with the power boards and the ESP32 and ESP8266 boards of this library.

Main components

2

README

README.md

SRNE-Solar-Charge-Controller-Monitor

Read data from SRNE solar charge controllers via modbus over RS232.

This repository contains several example programs for reading data from SRNE solar charge controllers using Raspberry Pi, ESP32, ESP8266 and Arduino Nano / Uno.

Based on the modbus manuals, this should also work with some Renogy controllers, but I don't have one to test with. Also, verify the wiring is compatible with your controller.


Example Setups:

Here are some example programs to get started. If you follow the setup instructions in the readme files of each directory, you should be able to talk to your controller. If you are just getting started, don't use the MQTT ones.

Raspberry Pi

ESP32

ESP8266

Arduino Nano / Uno


Web-Interface and MQTT

I've included an example web interface you can use in combination with the MQTT-enabled example programs. To use it, you will need to setup an MQTT broker such as Mosquitto or use a cloud broker. You will also need to set all the appropriate settings in the chosen program and the index.js file.

Web-Interface-Screenshot

I also included my custom web interface which I am using for my setup. It has the ability to read data from and control smart plugs flashed with Tasmota.


My Current Setup:

The setup I use is a customized version of the ESP32 Example, I also designed a custom PCB. Have a look at My-Current-Setup if you want some inspiration for your own setup!

ESP32 PCB Image


Troubleshooting:

If you notice lots of timeouts, or other errors, try some these steps before creating an issue:

  • Try a different power supply and USB cable. My ML2440 does not respond when I use one of my USB power bricks, but it does with another.
  • Try increasing the modbus timeout value.
  • Try using a shorter cables and moving them away from interference.
  • Verify you are using straight cables and not ones that reverse from one end to the other.
  • Try using HardwareSerial instead of SoftwareSerial. I've found HardwareSerial is more reliable, configure the program to use it if you are having problems.

If these don't help or if you need clarification, feel free to create an issue and I'll see what I can do!


Other notes:

Parts

34
QtyValueFootprintReferences
90.47uFLibrary:C_Disc_D4.7mm_W2.5mm_P5.00mmC3, C4, C7, C9, C10, C13, C14, C15, C17
61KLibrary:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R4, R5, R6
66P6CLibrary:RJ12_Amphenol_54601J2, J3, J4, J5, J6, J7
30.1uFLibrary:C_Disc_D5.0mm_W2.5mm_P2.50mmC11, C12, C16
310uFLibrary:CP_Radial_D6.3mm_P2.50mmC2, C5, C8
3MAX3232Library:DIP-16_W7.62mmU2, U3, U4
21000uFLibrary:CP_Radial_D12.5mm_P5.00mmC1, C6
1ESP32-DevKitCLibrary:ESP32-DevKitCU1
1Screw_Terminal_01x03Library:TerminalBlock_Phoenix_PT-1,5-3-3.5-H_1x03_P3.50mm_HorizontalJ1

Similar boards

  • 2 layers85.1 × 53.3 mmReceiver, the printed circuit board in 3D

    Receiver

    mvanbrab/water-level

    A project to measure the water level in a water reservoir, using a waterproof ultrasonic sensor

    17 parts5
  • 2 layers189.5 × 204.9 mmSmartSpin2k Panelized, the printed circuit board in 3D

    SmartSpin2k Panelized

    doudar/SmartSpin2k

    Transform your spin bike into a Smart Trainer!

    749 parts292GPL-2.0
  • 2 layers193 × 113 mmSerial hat, the printed circuit board in 3D

    Serial hat

    colinleroy/a2tools

    Stuff I write for my Apple //c

    35 parts92
  • 2 layers81.6 × 44.5 mmELTerm, the printed circuit board in 3D

    ELTerm

    zephray/ELTerm

    ANSI/VT100-compatible serial terminal built with Raspberry Pi Pico and EL640.480-AM/AG screen

    31 parts92MIT
  • 2 layers87 × 71 mmSocket, the printed circuit board in 3D

    Socket

    eddyem/STM8_samples

    Some code samples and ready projects based on STM8 (deprecated)

    89 parts80
  • 2 layers100 × 93 mmSpeeduino base, the printed circuit board in 3D

    Speeduino base

    Tjeerdie/SPECTRE

    Speeduino compatible engine control unit (ECU) based around black STM32F407VET6 board.

    213 parts59GPL-3.0
  • 2 layers33.1 × 43.8 mmThrottleBlaster, the printed circuit board in 3D

    ThrottleBlaster

    scrapcomputing/ThrottleBlaster

    A Turbo circuit with a MHz display that can slow down the CPU speed

    34 parts57GPL-2.0
  • 4 layers98.8 × 85.1 mmSsc, the printed circuit board in 3D

    Ssc

    jmthompson/ssc

    Simple Serial Card, an Apple Super Serial Card clone

    25 parts37

Questions

How big is the ESP32 SolarBox PCB?

It measures 127.3 × 54.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP32 SolarBox use?

34 parts, built around the MAX3232ID and ESP32-DEVKITC-VE. 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 ESP32 SolarBox KiCad files?

From the cole8888/SRNE-Solar-Charge-Controller-Monitor repository on GitHub, at the commit this page was made from: the board is My-Current-Setup/PCB and Schematic/ESP32_SolarBox.kicad_pcb and its schematic My-Current-Setup/PCB and Schematic/ESP32_SolarBox.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP32 SolarBox design in my own project?

Its repository states no licence, so its author keeps all rights: ask cole8888 before reusing the design.