diy solar

diy solar

JK BMS CAN bus comms now possible for inverters that support Goodwe and Pylontech batteries

I am about the only person not managing to get this to work and i have so many of the Atom Lite chips lying around -this is now a little frustrating

anyone can find out what i might be doing wrong

i perform first use 1st to have the DHCP release ip which i have used as the static config on the wifi section

Code attached .....
 

Attachments

  • JKBM-S3-Atomlite.zip
    14.9 KB · Views: 1
I am about the only person not managing to get this to work and i have so many of the Atom Lite chips lying around -this is now a little frustrating

anyone can find out what i might be doing wrong

i perform first use 1st to have the DHCP release ip which i have used as the static config on the wifi section

Code attached .....
how ever if i do an OTA update process after adding to network it flashes - but i dont think it will remain persistent after disconnecting the device


1714927617934.png
 
O.k - i figured it out -solved my own problem

means I was one of the first if not the first to really know how to flash an S3 on this project as i was one of the first to purchase it for this process and i did exactly what i did now except i didn't follow it all the way through to the final step which is to do an update over the wireless.
 
O.k - i figured it out -solved my own problem

means I was one of the first if not the first to really know how to flash an S3 on this project as i was one of the first to purchase it for this process and i did exactly what i did now except i didn't follow it all the way through to the final step which is to do an update over the wireless.

OK.

Sorry but I don't have Atom S3 board.
 
I have documented the process in the below link:


Hope it helps other HA EspHome users.
 
I have documented the process in the below link:


Hope it helps other HA EspHome users.

Thank you for taking the time to document your procedure.
 
Working on JK BMS B1A24S15P + Deye sun 6k sg03lp1 + DIY Battery 16S

Problem (attention test), the pinout of the wires in the connector is different than in the diagram
8.jpg

9.jpg
10.jpg
11.jpg
12.jpg
 
hello again why in the config with ATOM esp32 lite need to use:

Code:
# +--------------------------------------+
# | ESP32 CAN/serial port pins           |
# +--------------------------------------+
# GPIO pins your CAN bus transceiver ATOMIC CANBus Base (CA-IS3050G)
  can_tx_pin: GPIO5
  can_rx_pin: GPIO6

but connection is like on pic below GPIO 1 and 2 or i dont know smth :)

View attachment 212773

Be careful of GPIO asignement

the GPIO 5 and 6 are used if you use the ATOMIC CAN Base where you "plug" the ATOM S3
1715707686911.png

If you use the EXTERNAL adapter connected to Atom Groove port you need to assign the proper GPIO as reported in the sticker

Code:
can_tx_pin: GPIO2
can_rx_pin: GPIO1

Davide
 
Be careful of GPIO asignement

the GPIO 5 and 6 are used if you use the ATOMIC CAN Base where you "plug" the ATOM S3
View attachment 215366

If you use the EXTERNAL adapter connected to Atom Groove port you need to assign the proper GPIO as reported in the sticker

Code:
can_tx_pin: GPIO2
can_rx_pin: GPIO1

Davide
as You can see my ATOM S3 lite is connected different with this CANBUS and i'm using 1 and 2 GPIO it is direct connected to these GPIO-s but with CAN described on github it seems to use 5 and 6 so as You said - look at hardware and pineout :) my setup is working

im using these

with
 
as You can see my ATOM S3 lite is connected different with this CANBUS and i'm using 1 and 2 GPIO it is direct connected to these GPIO-s but with CAN described on github it seems to use 5 and 6 so as You said - look at hardware and pineout :) my setup is working

im using these

with

Yes it works but:
  1. The solution is less pretty than using Atomic CAN base
  2. GPIOs 1 and 2 can no longer be used to connect a BMS via UART

So why not buy Atomic CAN base?
 
Yes it works but:
  1. The solution is less pretty than using Atomic CAN base
  2. GPIOs 1 and 2 can no longer be used to connect a BMS via UART

So why not buy Atomic CAN base?

it was not avaiable on my country and when i look with esp code (CA-IS3050G)
i just found this, i dont use UART (GPS) so with BT works OK. Maybe later i'll find Atomic CAN base to use with parralell JK-BMS

and i bought JK-BMS HEAT/CAN version and they dont give me cable to UART port :))) so BT was easier to me for now
 
What JK BMS parameters do these data correspond to?

# Float Voltage : corresponds to the voltage at which the battery would be maintained at the end of the absorption phase. (53.6V = 3.35V/Cell for 16S battery)
float_v: "53.6"
# Bulk / Absorption Voltage : corresponds to the Bulk voltage that will be used to charge the battery. (55.2V = 3.45V/Cell for 16S battery)
bulk_v: "55.2"
# Rebulk voltage, voltage less than FLOAT at which BMS requests rebulk. (52.8V = 3.3V/Cell for 16S battery)
rebulk_v: "52.8"
 

Attachments

  • зображення_viber_2024-06-29_14-04-12-434.jpg
    зображення_viber_2024-06-29_14-04-12-434.jpg
    51.1 KB · Views: 2
The Latest JK PB BMS has 2 charge voltage settings that correspond to bulk and float.

Volt Cell RCV is bulk and on mine set to 55.2V for 16S LFP

Volt Cell RFV is float and my setting is 53.6V and there is another setting that sets the time at RCV before the RFV becomes the charge to voltage which I have as 1hr called RCV Time. For float the time is RFV Time and I have it set to 6 hrs.

I can confirm it works in closed loop with SMA Sunny Island and the FSS Canbus protocol.

As I only use PV for charging then each sunny day the voltage increases until it reaches 55.2V and then the SI curtails production and maintains the 55.2V. After 1 hour the Canbus message from the JK for target voltage drops from 55.2V to 53.6V and the SI adjusts its charging output to allow the V to drop to 53.6V which it then maintains whilst the is enough PV output. The battery then is drained over night and the cycle starts again.

Other inverters seem to have issues with the JK PB Canbus, mainly the Chinese ones using Pylontech Canbus so be aware just because it works for SI's it may not for others.
 
Last edited:

diy solar

diy solar
Back
Top