diy solar

diy solar

DIY Battery via Smart shunt to inverter integration (Solis etc)

In that one diagram, who ever drew it, had the CS wire going to GPIO5. The code in CANBUS.h has it going to GPIO2. Look up the GPIO to pinout on your esp board, make sure that is correct. Might as well map all of them while you're at it.

Example, here is my board GPIO to PIN. Yours may be different, I found this one in a box.
I got it working for a few minutes, now it's saying the recieved data is incorrect. Any ideas? Does that mean I need to add a resistor? It seems odd because it worked fine for a couple minutes.
 

Attachments

  • 20240318_204043.jpg
    20240318_204043.jpg
    460.4 KB · Views: 8
I got it working for a few minutes, now it's saying the recieved data is incorrect. Any ideas? Does that mean I need to add a resistor? It seems odd because it worked fine for a couple minutes.
No loose connections? Are you using a jumper on J1?

1710810604960.jpeg
 
Also looks like the ESP can’t access the WiFi access point.
I set it up at my house but was using it at my sister's and didn't change the wifi to her access point. Does it need a internet connection to operate? I didn't think it did.
 
No loose connections? Are you using a jumper on J1?
It looks like the 'received data' error is not getting the data from the SmartShunt correctly, rather than an issue on the CANBus side of things.
 
We’re up at our cabin now, I can try compiling and deploying with wrong WiFi, see what happens. Can’t get to this till tomorrow.
Good news Chris! I got my thingamajig doing its thing in the 6000xp!
Got my SOC, charge/discharge parameters ect all doing good.
Only interesting thing that happened was got it all hooked up, turned on grid, and as soon as I did the 6000xp said EPS overload with frowny face.
The discharge limit was at ZERO lol
I didnt even know how to change that. I read thu all the relevant post many times and no one explicit said that you can simply log into the ip address of the esp32 and change things LOL I just tried it and it worked hahah

Thats why the wifi is there.
 
Last edited:
Good news Chris! I got my thingamajig doing its thing in the 6000xp!
Got my SOC, charge/discharge parameters ect all doing good.
Only interesting thing that happened was got it all hooked up, turned on grid, and as soon as I did the 6000xp said EPS overload with frowny face.
The discharge limit was at ZERO lol
I didnt even know how to change that. I read thu all the relevant post many times and no one explicit said that you can simply log into the ip address of the esp32 and change things LOL I just tried it and it worked hahah

Thats why the wifi is there.
@ScrotusGobbleBottom Wait. I didn’t know you can log into it over WiFi and change things. How the heck do you do it??? I thought Wi-Fi was there only for getting mqqt messages sent and data to home assistant.
 
Last edited:
@ScrotusGobbleBottom Wait. I didn’t know you can log into it over WiFi and change things. How the heck do you do it??? I thought Wi-Fi was there only for getting mqqt messages sent and data to home assistant.
I just logged into my router, found the new connection, went to my computer on the same network, typed in the IP address and thats it!
Technically, I logged in using a wired computer to the wireless esp32.
 

Attachments

  • Screenshot 2024-04-06 at 20-29-57 DIY SMART BMS.png
    Screenshot 2024-04-06 at 20-29-57 DIY SMART BMS.png
    45.3 KB · Views: 13
  • Screenshot 2024-04-06 at 20-30-05 DIY SMART BMS.png
    Screenshot 2024-04-06 at 20-30-05 DIY SMART BMS.png
    61 KB · Views: 13
  • Screenshot 2024-04-06 at 20-30-13 DIY SMART BMS.png
    Screenshot 2024-04-06 at 20-30-13 DIY SMART BMS.png
    31.5 KB · Views: 11
  • Screenshot 2024-04-06 at 20-30-28 DIY SMART BMS.png
    Screenshot 2024-04-06 at 20-30-28 DIY SMART BMS.png
    57.3 KB · Views: 13
I just logged into my router, found the new connection, went to my computer on the same network, typed in the IP address and thats it!
Technically, I logged in using a wired computer to the wireless esp32.
Odd, I can't get that to come up. I am simply typing the IP address in my browser and no luck. Now I must figure this out!
 
Odd, I can't get that to come up. I am simply typing the IP address in my browser and no luck. Now I must figure this out!
Must be on the same network name. I would try an Ethernet connected computer. Phones have a hard time with ip addresses in my experience.
Are you trying on a phone?
 
Must be on the same network name. I would try an Ethernet connected computer. Phones have a hard time with ip addresses in my experience.
Are you trying on a phone?
I have the IP address on a DHCP reservation on my router (pseudo static IP). I get nothing. Think I’m going to restart it.
 
@ScrotusGobbleBottom , can't get a web page. I know I have the right IP address. This is all I get in a browser: Not found: /

Is there an <ipadress>/'something' for the URI? I even refreshed with no luck via usb and visual studio code.

How are you flashing and are you using visual studio? Other then the web page (which I want now), this works fine
 
@ScrotusGobbleBottom , can't get a web page. I know I have the right IP address. This is all I get in a browser: Not found: /

Is there an <ipadress>/'something' for the URI? I even refreshed with no luck.
No, nothing special in the URL. Are you sure your esp32 is connected to wifi?
It was never terribly clear to me that mine was connected when I was using the esp32 access point.
I didnt know until i looked in the router logs
 
That may be the issue. It was slow and janky when using it as an AP and adjusting settings. Perhaps it can do only one or the other.
Did you adjust any settings our just use the project build and modified the config.h? Not sure how to adjust the ESP as an AP or not.
It is definitely registered with and IP on my network just like my other devices.
 
Did you adjust any settings our just use the project build and modified the config.h? Not sure how to adjust the ESP as an AP or not.
It is definitely registered with and IP on my network just like my other devices.
Coming into this I didnt know anything. I did not adjust or modify any code.
I cloned the repository in visual studio code and somehow managed to figure it all out after a lot of trial and error.
The esp is only an AP when you first flash the code and that is where you set it up to your wifi network.
Is the IP address on the same subnet as your computer? When I logged into the esp32 AP it was 168.192.4.*
 
Coming into this I didnt know anything. I did not adjust or modify any code.
I cloned the repository in visual studio code and somehow managed to figure it all out after a lot of trial and error.
The esp is only an AP when you first flash the code and that is where you set it up to your wifi network.
Is the IP address on the same subnet as your computer? When I logged into the esp32 AP it was 168.192.4.*
yup, funny similar subnet here. Thing pings all day, reports CAN messages find to inverter, just no webpage. Maybe I redo it all from scratch, blow away current repository, redownload and flash.
 
Right, could be code added after you put your together.
Well just to make sure it was clean, setup a new profile on computer, installed visual studio code, cloned repo, updated config and flashed. Same result. Controls inverter just fine but no web page from ESP. I wonder if it’s my board.

Do you mind linking the esp32 module your purchased, @ScrotusGobbleBottom ?
 

diy solar

diy solar
Back
Top