Also, I'd like to add my two cents to this amazing project.
I've prepared a summary connection diagram for those who are going to use the M5Stack—a nice product that simplifies the wiring and connections, making the hardware part almost plug and play.
Both configurations have been tested and...
I don't use EspHome to compile and load the firmware on my M5Stack Atom S3 since the compilation process runs on my old Raspberry Pi and lacks sufficient resources.
It's much simpler and more straightforward to use the command line so I can run the process on my powerful Windows desktop PC...
Continuing with the "LEGO" approach, I've upgraded from the M5Stack Atom S3 Lite to the version featuring a small yet brilliant 0.85" TFT display.
Now, the ESP32 Atom S3 not only handles protocol conversion (I opted for the BLE version for enhanced hardware simplicity), but also serves as a...
Hy Guys
Just a simple reference connection schema for wireless and wired option using M5stack Atom and CAN base
and here my "wireless implementation" with Deye and 16xLifePo4 DIY pack with JK BMS
test will continue !
br
Davide
Sure more than happy to contribute !
I will compile the BT version also on the Atom Lite version ESP32 Pico and let you know
Davide
PS S3 version seems quite stable
Exactly !
I just edit few parameters in the original yaml file
here are the modifications
# GPIO pins your CAN bus transceiver ATOMIC CANBus Base (CA-IS3050G)
can_tx_pin: GPIO22
can_rx_pin: GPIO19
# GPIO pins your JK-BMS RS485(TTL) is connected to the grove port of ATOM lite
tx_pin...
I'd like to share a neat and simple hardware alternative for implementing the protocol converter.
I utilized components from M5stack
ATOM Lite, an ESP32 pico controller
ATOMIC CANBus Base (based on CA-IS3050G transceiver)
By simply connecting the 'grove' port to the JK-BMS TTL GPS port with...
Right ....will restart some troubleshooting session to understand why Atom S3 doesn't work with wired RS485 version (compilation is OK) :unsure: :unsure:
Hi Guys,
Another step forward in this cool project, thanks to the support from @Sleeper85
Now, the simple and compact solution with M5stack Atom and CAN base works WIRELESSLY.
I have successfully compiled on the Atom S3 the Bluetooth version of the JK-CAN adapter via ESPhome, and it works...
Now I see !!! 🫣
what a mess...😧
I copy paste the settings from Andy (off grid garage) and I'm quite sure the start balance was 3.45v...than I did so many manipulation, tests, new setup, integration with HA that somehow I change that value
please help me to re-balance my loved battery bank 🙏
PS...
I believe Deye has same behaviour
I have a good understanding of the meaning of 'BAT' in the Time of Use table; empirically, it serves as the threshold for grid activation (no Grid charging flag).
However, I'm still uncertain about the relationship between this and the 'LOW BAT' parameter in...
Hi Guys
just for my info, do you know if the open source / DIY via ESPhome version of this cool project is still supported :unsure:??
on github page it seems the ESPhome YAML files are no longer available :(
thanks
Davide
I try to close this point, at least "empirically"
I compile the BT version on Atom Lite (ESP32 Pico) and
Using Arduino framework
compilation OK but "unstable" BLE connection
Using ESP-IDF framework option (various versions)
errors during compilation
@Sleeper85 maybe can investigate erros...
I have created on HA a simple "status" widget to monitor the adapter communication either CAN and BT
BT as reported (on Atom S3) seems quite stable
CAN has periodic disconnection/reconnection every 2h (quite regular)
Is this normal ?
Davide
Hi Guys
I'm getting crazy to tune the battery charging parameters of my Deye 5Kw hybrid inverter and don't find a reliable source to understand the exact behaviour of each single parameter
My 5kw Deye Inverter connected to DIY battery bank made by 16 * 160Ah cells and JK active BMS
No CAN/rs485...
Thanks for your suggestion and I'm trying to implement communication between JKBMS and Deye Inverter
nevertheeless I'm "curious" to understand the LOGIC behind the 5 parameters
It's something coded in the SW...so the effects/behaviour/algorithm should be well known ..but no clear reference
any...
many thanks ...fog is becoming more clear
Numbers 2 and 3 are self-explanatory and clear.
As per your explanation, Number 5 appears to involve a sort of calibration process to establish the SOC=0 level for my battery bank, like using 2.5 multiplied by 16 to achieve 40V.
Regarding Number 1, in...
Here the link to main components
CAN BUS base
ATOM S3 Lite module
Suggest also to buy an adatper to solder the cable from JST1.5mm from JK-BMS
there is also official aliexpress store if is more convinient for you
the mangement of multiple BMS depends on the SW more than HW !
code use the...
Great work indeed !
It's exactly what I'm looking for my project to enable the communication of my Deye inverter with DIY battery pack (16 cells ) and BMS
I try to understand what commercial BMS like Daly,JBD,JK BMS are compatible with Deye phiscal interface and application protocol but I...
Very cool!
I'm working on something similar but would like to add a display to this "all-in-one box" for real-time monitoring of main parameters (SoC, voltage, current, charging status..)
This way, the JK-CAN-BMS SW will serve a dual purpose: protocol conversion/adaptation for JK-BMS and...
Just a comment to this checkout list
if you want to use BLE version and no wiring to the JK-BMS RS485 port better to use Atom S3 LITE instead of Atome Lite (ESP32 pico)
exactly same ESPhome FW compilation and uplad procedure as per ESP32 dev boards
just update in the yaml file the CanBus and TX/RX pin assignement as per my schema
as I wrote is not only a matter of HW !!
To open web interface locally you need to enable the web serve on ESP32 and modify the yaml file (by default that section is commented)
web_server:
port: 80
I suggest to use HomeAssistant integration to mange your settings and not the web page
I suggest to compile the Yaml file using...
Exactly test in progress !!
up to now everthing quite stable with my Atom S3 Lite and Arduino framework
this is the board definition I used
BT connection stable since last eveneing
Br
Davide
Super appreciated (y)
I will install it tomorrow after completing the test session on BLE stability on ESP32 Pico Atom Lite. I don't want to mix up so many tests and configurations.
So, just set again on the BMS, start the balance at 3.45V, and then enable the balancing function. How long does...
This afternoon, I achieved a 100% State of Charge (SoC) for the first time since installing the protocol adapter, thanks to today's sunny weather. However, I'm noticing some strange behavior and am a bit concerned about the battery charging process.
Here's the sequence of messages I collected...
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
If you use the EXTERNAL adapter connected to Atom Groove port you need to assign the proper GPIO as reported in the sticker
can_tx_pin: GPIO2
can_rx_pin: GPIO1
Davide