diy solar

diy solar

JK-BMS-CAN with new Cut-Off Charging Logic (open-source)

If using an M5 Stack Atom module, first download the drivers (select OS): https://docs.m5stack.com/en/download
Then download/install esphome, clone the repository (follow instructions in the Readme)
Then use your IDE of choice, I use Python on CLI on MacOS. I use VIM to modify file and the following commands:
  1. esphome config esp32_wire_jk-bms-can.yaml (allows to verify config)
  2. esphome run esp32_wire_jk-bms-can.yaml (builds and deploys config over USB for my implementation)
i actually already have this setup previously from other projects
1709580516736.png
 
its doing all this

how will it know what com port the M5 stack device is plugged into - i dont remeber stating it anywhere

1709583359225.png
 
Have you put in the M5 stack device specific configuration from the config folder and overwrite the default config in your yaml?

Your SS above shows "esp32doit-devkit-v1" but it should be "esp32-s3-devkitc-1" for the Atom S3 Lite ESP32-S3 board

I don´t have an m5 Stack hardware - sorry
 
Have you put in the M5 stack device specific configuration from the config folder and overwrite the default config in your yaml?

Your SS above shows "esp32doit-devkit-v1" but it should be "esp32-s3-devkitc-1" for the Atom S3 Lite ESP32-S3 board

I don´t have an m5 Stack hardware - sorry
do i need to change the GPIO ?

I remember i was told GPIO32 and 26

1709631150390.png
 
The only thing you need to know is that @arzaman who carried out the tests with Atom S3 has not yet managed to connect to JK-BMS via Wire for an unknown reason. Normally Atom S3 should be able to do this. On the other hand, Atom S3 is much more stable than Atom Lite with the Bluetooth version.

Atom S3 is more powerful and I don't see why it wouldn't be possible to make the UART connection work with JK-BMS.
We will definitely find a solution.
 
It flashes but no light blinks any more after flashing and it is detected not detected repeatedly by windows - i dont know how to use github, i am not a coder , i think i have gone too deep already


and then this
I have never got ESPhome to work reliably on my network, I think it is because of a network extender I have between the garage where HA/SA and my solar system is and the rest of my network inside the house.
Do you have any network extenders or switches in your network ?
 
I have never got ESPhome to work reliably on my network, I think it is because of a network extender I have between the garage where HA/SA and my solar system is and the rest of my network inside the house.
Do you have any network extenders or switches in your network ?
Thanks for you input.

this is not Network related issue - rather this is to do with how we flash the image into the Atom-Lite-S3 module
bcos if i do simple "prepare for fist use" i can succesfully connect to my network and ping its IP
1709644421144.png
 
Code:
# *** These are the specific settings you need to change in the YAML if you use the Atom S3 Lite ESP32-S3 board ***

# 1) Choose the configuration file you want to use:
#    - esp32_ble_jk-bms-can.yaml :  If you don't want to connect a wire between the BMS and the ESP32 choose the Bluetooth version.
#    - esp32_wire_jk-bms-can.yaml : If you prefer to use a wired connection between the BMS and the ESP32 choose the Wire version.

# 2) Edit the YAML file you have chosen with the information below :

# +--------------------------------------+
# | ESP32 CAN/serial port pins           |
# +--------------------------------------+
# GPIO pins your CAN bus transceiver ATOMIC CANBus Base (CA-IS3050G)
  can_tx_pin: GPIO5
  can_rx_pin: GPIO6
# GPIO pins your JK-BMS UART-TTL is connected to the grove port of Atom Lite
  tx_pin: GPIO1
  rx_pin: GPIO2

# +--------------------------------------+
# | ESP32 settings                       |
# +--------------------------------------+
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
    version: 2.0.14
    platform_version: 6.5.0
  variant: esp32s3
 
@chaosnature, that YAML contains the instructions that you need to follow. It is not the full code.

I assume you are trying the wired or BLE versions for li-ion batteries. I'll PM you with the adjusted YAML for you to use, rather than share it here. Your settings will not be the same as a typical LFP battery and I don't want other users incorrectly applying it to their setups.
 
@chaosnature, that YAML contains the instructions that you need to follow. It is not the full code.

I assume you are trying the wired or BLE versions for li-ion batteries. I'll PM you with the adjusted YAML for you to use, rather than share it here. Your settings will not be the same as a typical LFP battery and I don't want other users incorrectly applying it to their setups.
thanks
 
Back
Top