-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About RS485/GPS #6
Comments
Sorry for the confusion. I tried to make it as clear as possible.
Yes! I connected the ESP32 directly to the BMS using the
IMO the
Some photos to inspect the RS485 converter: https://github.com/syssi/esphome-jk-bms/tree/main/images/rs485-adapter
The RS485 adapter converts the TTL signal to RS485. The voltage shift (0V/3V to -12V/+12V or -7V/+12V) happens here. We aren't interested in a -12V/+12V signal so we don't use the RS485 adapter. If your setup requires long wires you could use the RS485 adapter plus some RS485 arduino module to shift the levels back to 3.3V:
I tried to make it clear by this schematics: https://github.com/syssi/esphome-jk-bms#schematics I will add a photo too :-) |
JK-BMS RS485-TTL jack (4 Pin, JST 1.25mm pinch)i use this schematics, work for me. |
I am new to home assistant and I am trying to get this working. I have attached the jk bms to my esp32 but I am not sure what I need to do in the program to make it work? Any help would be appreciated. |
If you use Home Assistant use the
By the
If you flash the yaml to your esp32 by |
So this is not possible through esp home integration? |
Do you mean the Esphome Dashboard? https://esphome.io/guides/getting_started_hassio.html Should be possible. I don't use the dashboard so I cannot help here much. Just follow the official esphome docs. As soon you are able to flash/install a generic esphome device you are also able to use this component. |
I dont have to use esp home. I am not sure how to go about it doing it the other way. Is it something I do in the configuration.yaml? |
This implementation requires esphome. Could you try to flash a basic configuration.yaml to an ESP? Just to get a better understanding what esphome is and how it works. You will see there is no additional code required. Esphome plus the yaml file generates/assembles everything. |
Ok thanks. I will try it tonight. |
Does this look right to you?
|
Please don't use |
I would use mqtt and not api. So would i just remove the api and everything else looks good? |
If you use Home Assistant the |
So leave out the mqtt portion and just do api? |
So this is my configuration.
|
This is fine because your configuration doesn't have a
You could wire/solder some sensor (f.e. a BH1750) to your ESP and expose the values as If this is working pick your ESP32 or stick to the ESP8266 and connect some GPIO to
|
That was awesome. Thanks. I took all the sensors examples and plugged them in and configured. I am getting a lot of data back now. I do see a couple of issues though. 1. actual battery capacity show 512 and on the bms app I have it 560. |
I don't think so. The firmware of the BMS isn't perfect and this custom component publishes values received from the BMS most of the time 1:1 (untouched). Let's talk about specific sensors (names) and let's try to compare the device response with the sensor value. It is possible to enable some debug output to make the UART traffic visible. Do you like to dig deeper into it? I will provide some instructions. Please create a new issue per problem. |
I would love to do some debug what do i need to do? |
Please create new issue first. Do not longer abuse this issue. This issue is about RS485/RS232 and TTLs. ;-) |
ok Thanks |
Hi, do you know if we can connect directly to the GPS/485 port our rx/tx pins of an esp8266/arduino/esp32?
I mean. What is the protocol that have that port? I suppose that it is TTL232 or RS232, as they have a RS485 converter.
Otherwise, what is the 485 converter converting? What is it converting "from"?
May be more photos of the RS485 converter (ICs) could be significant to understand what it is doing and which "protocol" has the raw GPS/485 port.
You say: "The RS485-TTL jack of the BMS can be attached to any UART pins of the ESP. A hardware UART should be preferred because of the baudrate (115200 baud)"
But, sorry I am wrong, does RS485 be TTL? it is not a -12 +12v communication?
May be a photo of your connections (or schema) could clarify a bit more the readme.md file.
Thanks a lot.
The text was updated successfully, but these errors were encountered: