Sunday, 27 November 2022

Adafruit 4435 PCB Shape and Dimenstions

Introduction
This microblog provides the dimensions and clearances required when a circuit board is used with an Adafruit DIN rail holder circuit board holder, part number 4435.

Adafruit DIN Rail Board Holder (Courtesy Adafruit)
Adafruit DIN Rail Board Holder (Courtesy Adafruit)

Circuit Board and Keep Out Dimensions
The dimensions provided in the Adafruit 4435 datasheet are precise for the
circuit board shape however the information does not include any other clearances. For component placement on the circuit board, an area of 46.6 mm x 70 mm is available. The rails that hold the circuit board consume some board space. 

The purple line shown inside the object below (Keep Out Area) shows the area that can be used for components or hardware.

Adafruit (4435) Circuit Board Dimensions and Usable Board Area
Adafruit (4435) Circuit Board Dimensions and Usable Board Area

The distance between the bottom side of the example circuit board and the DIN rail holder is approximately 8 mm (assuming a 1.6 mm board). The separation between the faces is closer to 8.5 mm although factors such as thermal expansion and circuit board warping should be taken into account.

Adafruit (4435) Printed Example Circuit Board Showing Clearance to Case
Adafruit (4435) Printed Example Circuit Board Showing Clearance to Case

Keep Out Area Validation
In each corner of a example circuit board, at the edge of the keep-out region, an extruded feature was placed.

Circuit Board Positioning Feature
Circuit Board Positioning Feature

A 3D model of the circuit board was printed. For validation testing, this circuit board was fit into the Adafruit DIN rail holder. Using a feature on the printed model allows easy checking of tolerances, especially between horizontal and vertical faces.

Example 3D Printed Circuit Board in Adafruit DIN Holder (4435)
Example 3D Printed Circuit Board in Adafruit DIN Holder (4435)

 
Downloads

The files and models provided below are without the raised feature mentioned in this blog.

Circuit Board Shape and Component Keep Out for Adafruit 4435 (DWG)

 
Circuit Board Shape for Adafruit 4435 (STEP)

 

Saturday, 19 November 2022

EPEVER MPPT to Elfin EW11A Adaptor Circuit Board

Introduction
This blog follows on from a previous post relating to WiFi communication with an EPEVER MPPT. In this post, a DIN rail mount adaptor was created to power the Elfin EW11A (WiFi to RS485) device.

EPEVER MPPT to Elfin EW11A Adaptor
EPEVER MPPT to Elfin EW11A Adaptor

Wiring
In a previous post, the connection to an EPEVER MPPT was tested using an Elfin EW11A that was set up for station-mode WiFi operation. The test wiring described in this post was clumsy so a permanent fixture was designed.

DIN Rail Mount Solution
The connections required for the circuit board between the MPPT and EW11A were already established and tested. To power EW11A, a Texas Instruments DC-DC buck converter was selected. 

To mount the circuit board containing the aforementioned parts and rather than spinning up a 3D printed part, Adafruit’s DIN rail mount was used.

Schematic
The RS485 schematic connection between the MPPT and EW11A using RJ45 connectors is shown below.

Circuit Board Connections for EPEVER MPPT to Elfin EW11A
Circuit Board Connections for EPEVER MPPT to Elfin EW11A

In the power supply circuit shown below, a reverse polarity protection diode is at the front end of the design. Following the polarity diode is an optional transient diode (TVS) clamp and PI filter. Bypassing the filter is possible using the two optional bypass resistors which were added in revision 1 of the circuit board. Powering the EW11A is a DC-DC buck converter, notably the Texas Instruments LMR14203; no linear regulators here. At the time of writing the lead time of TI regulators exceeds a year so some equivalents could be the LMR16006X, LMR16006Y or MP2451DJ; these alternatives should be reviewed for compatibility.

Circuit Board Connections for Elfin EW11A Power Supply
Circuit Board Connections for Elfin EW11A Power Supply

For the sundry items on the board, a power LED was included but to conserve power this device could be unpopulated or the series current limiting resistor increased.
To reset the EW11A, a pair of circuit board pins were provided on the circuit board. Shorting the two pins provided on the circuit board will perform the reset.

Circuit Board (PCB)
The board shape was designed using the dimensions shown on the DIN holder datasheet (Adafruit website). The fitment of the circuit board in the DIN holder was accurate, although the placement of components near the edge of the circuit board was tight. A larger keep-out for the components from the edge of the circuit boards was included in the next revision of the board.

EPEVER MPPT to Elfin EW11A Circuit Rev 1 Board Top Layer
EPEVER MPPT to Elfin EW11A Circuit Rev 1 Board Top Layer

EPEVER MPPT to Elfin EW11A Circuit Board Rev 1 Bottom Layer
EPEVER MPPT to Elfin EW11A Circuit Board Rev 1 Bottom Layer

Testing
The populated circuit board was powered with DC 24 V and load-tested. No temperature, climate or similar tests were performed.

With no load, the DC output voltage was 5.02 V with a quiescent current of 5 mA (LED). The output voltage dropped to 4.98 V when the EW11A was powered by the regulator. Greater than DC 6 V should be provided to the DC-DC converter for stable operation.

EPEVER MPPT to Elfin EW11A Circuit Board Rev 0 Bottom Layer
EPEVER MPPT to Elfin EW11A Circuit Board Rev 0 Bottom Layer

A functional soak test of the circuit board over a 24-hours showed no issues. No dropped packets were detected by the virtual COM port application "HW Virtual Serial Port", version 3.1.2.

Downloads
Listed below are the MPPT to EW11A adaptor schematics, circuit board Gerber files and project Bill of Materials. The blank circuit boards can be made available at PCB Way using their Shared Projects option. The supplied schematic and Bill of Materials are for a fully populated circuit board.

Disclaimer: Please note that revision 0 of the the circuit board was tested in this post; no functional changes relating to the MPPT or EW11A connections were made in revision 1 of the circuit board.

Elfin to EPEVER Rev 1 Schematic
Elfin to EPEVER Rev 1 Schematic

Elfin to EPEVER Rev 1 PCB
Elfin to EPEVER Rev 1 PCB

Elfin to EPEVER Rev 1 BOM (Full)
Elfin to EPEVER Rev 1 BOM (Full) Excel

Elfin to EPEVER Rev 1 Gerber and NC Drill
Elfin to EPEVER Rev 1 Gerber and NC Drill

Tuesday, 8 November 2022

EPEVER MPPT to PC using RS485 or WiFi

Introduction
This blog provides two methods for connecting an EPEVER MPPT with RS485 capability to a Windows PC running Solar Station Monitor.

EPEVER Solar Station Monitor
EPEVER Solar Station Monitor

Direct Connection
Direct connection utilises hardware consisting of an FTDI USB to RS485 adaptor, part USB-RS485-WE with an RJ45 male to screw terminal adaptor to connect to the EPEVER MPPT.

Details for the various connections using the FTDI adaptor are pictured below.

RS485 connections A, B and 0 V were used; no termination resistor was added to the circuit.

FDTI RS485 to EPEVER MPPT
FDTI RS485 to EPEVER MPPT

Wired USB FTDI to RJ45 adaptor.

FDTI RS485 to RJ45 8-Way Screw Terminal for EPEVER MPPT
FDTI RS485 to RJ45 8-Way Screw Terminal for EPEVER MPPT

FTDI adaptor wiring from USB-RS485-WE manual.

USB-RS485-WE Connections (Courtesy FTDI)
USB-RS485-WE Connections (Courtesy FTDI)

 Pinout for RJ45 connector.

RJ45 Pinouts
RJ45 Pinouts (Courtesy Huawei)

There were no requirements to change the Windows setup for the FTDI adaptor. This device appears as a standard COM port. This COM port was then selectable in the EPEVER Solar Station Monitor application.

Wireless Connection
The wireless connection makes use of an Elfin EW11A. This device bridges RS485 and wireless station and or access point.

Elfin EW11A (Courtesy Hi-Flying)
Elfin EW11A (Courtesy Hi-Flying)

Also used in the hardware solution was the optional Elfin adaptor cable. For connecting to the EPEVER MPPT, an RJ45 male to screw terminal adaptor was utilised. Since the EW11A requires DC 5 V, an further connection to a power supply is also required.

 

Elfin EW11A to EPEVER MPPT
Elfin EW11A to EPEVER MPPT

Elfin EW11A to RJ45 8-Way Screw Terminal
Elfin EW11A to RJ45 8-Way Screw Terminal

The computer running EPEVER Solar Station Monitor required a software Ethernet to COM port bridge. The HW Virtual Serial Port application from HW-Group was used.
Side note. The EPEVER WiFi 2.4 G RJ45 A adaptor was tested separately however because WiFi Station mode was required, the EPEVER was not suitable.


Elfin EW11A Setup

This tests in this blog were geared towards verifying that wireless communications with the MPPT were practicable. The final goal was to interface the EPEVER with Home Assistant.

Using the I.O.T Workshop application from High-Flying, the EW11A was configured for station mode, TCP server and the port settings were configured for consistency with Home Assistant. Ethernet port number 8899 (MQTT) was used. The Comment and Application Guide from Eniris was used as the primary reference document.

Removed from the screen capture below are the login details (admin and password), wireless station ID and associated password.

EW11A Device Setup for EPEVER MPPT Using I.O.T Workshop
EW11A Device Setup for EPEVER MPPT Using I.O.T Workshop

No UART protocol was selected. Telnet was disabled and web interface was kept enabled.

EW11A Device Detail for EPEVER MPPT Using I.O.T Workshop
EW11A Device Detail for EPEVER MPPT Using I.O.T Workshop

The UART settings 115200, 8, N, 1 were left as default.

EW11A Serial Setup for EPEVER MPPT Using I.O.T Workshop
EW11A Serial Setup for EPEVER MPPT Using I.O.T Workshop

Virtual Serial Port
For this blog the
HW Virtual Serial Port application from HW-Group was used. The default configuration of the application required changes. For example, if the option Network Virtual Terminal (NVT) was enabled, communications with the EPEVER MPPT were sporadic or only specific values were received correctly. Other tools offering an Ethernet to COM virtual com port may offer similar configuration options which should be validated.

HW Virtual Serial Port Settings for EPEVER MPPT  and Elfin EW11A
HW Virtual Serial Port Settings for EPEVER MPPT and Elfin EW11A

Shown on the Virtual Serial Port page is the IP and port for the Elfin EW11A.

HW Virtual Serial Port Page for EPEVER MPPT with Elfin EW11A
HW Virtual Serial Port Page for EPEVER MPPT with Elfin EW11A

With the Elfin EW11A configured and powered, clicking Create COM in the virtual serial port application established the Ethernet link. Shortly after COM4 appeared in Windows Device Manager.

Serial Port Created Using HW Virtual Serial Port
Serial Port Created Using HW Virtual Serial Port

With a connection established to the EW11A and the EPEVER MPPT, the EPEVER application could communicate with the MPPT. This was indicated by the change in counter values (Rx and Tx).

HW Virtual Serial Port Connected to EPEVER MPPT with Elfin EW11A
HW Virtual Serial Port Connected to EPEVER MPPT with Elfin EW11A

Solar Station Monitor
No changes were made to the setup of the EPEVER Solar Station Monitor application other than configuring the required COM port to communicate with the Virtual COM port.
The default port settings were used.

EPEVER COM Port Settings
EPEVER COM Port Settings
 

After clicking Start Monitor in the application, data was exchanged within a few seconds.

The capture below was taken after sunset with the MPPT load active.

EPEVER Solar Station Monitor (Load Active)
EPEVER Solar Station Monitor (Load Active)

The capture below was taken during sunlight hours.

EPEVER Solar Station Monitor (During Daylight)
EPEVER Solar Station Monitor (During Daylight)


For the capture below, the EPVER monitoring tool was restarted to capture the transition between load OFF and ON.

EPEVER Solar Station Monitor Graphed Data Showing Load ON
EPEVER Solar Station Monitor Graphed Data Showing Load ON

EPEVER Solar Station Monitor Graphed Data Showing Load OFF
EPEVER Solar Station Monitor Graphed Data Showing Load OFF

Final Thoughts
This post offered two methods for connecting an EPEVER MPPT with a Windows PC running Solar Station Monitor application. The WiFi connection and subsequent testing using the Elfin EW11A served as preliminary work to develop a dedicated circuit board to bridge the EW11A with the EPEVER MPPT.