nygma2004 / growatt2mqtt

Growatt Solar Inverter Modbus Data to MQTT Gateway
MIT License
136 stars 33 forks source link

Spf5000es? #12

Open Roadkill69 opened 1 year ago

Roadkill69 commented 1 year ago

Howzit man, nice project,

I have been trying to get an esp working with an spf5000es, the comm port is a usb type A which connects to the dongle. Check the thread below, others have managed to flash the dongle (which has an esp chip) and use with esphome.

Any ideas on how to get Comms with this from the usb A port and an esp32, possible wiring?

https://community.home-assistant.io/t/esphome-modbus-growatt-shinewifi-s/369171/51

nygma2004 commented 1 year ago

Well, SPF5000ES looks like a nice inverter. I like that it can also use lead acid batteries, not just Litium. Anyway, within the thread they mention that the Shine Wifi dongle uses GPIO 1 and 3. So in the settings.h you can define it here:

define MAX485_RX 14 // D5, RO pin on the TTL to RS485 converter

define MAX485_TX 12 // D6, DI pin on the TTL to RS485 converter

so instead of 14 and 12 it should be 1 and 3. I can never tell which one should be which so you have to try.

I also had a quick look at the documentation and it looks like you have an RJ45 plug and that is the modbus connection on that inverter. So you can use that as well.