Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP32 help
#1
Do any of you know somebody familiar with ESP32 dev boards? I'm trying to get data from my 'Smart' Chinese BMS. I have the ESP32 but have no idea how to make this work.
Seattle, USA
14S120P 48V battery - Magnum PAE4048 inverter/charger - MidNite Solar Kid MPPT - 1.4KW Solaria panels
Reply
#2
Where are you stuck? What have you done? How have you wired it up?

I would say this is not really about esp32 as such since you will most likely do the same thing on arduino bords, esp8266 or others if you use same code.

Arduino IDE?
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 100kWh LiFePo4 | 20kWh 14s 18650 |  66*260W Poly | ABB S3 and S5 Trip breakers
Upcoming: 14S 18650~30kWh
Reply
#3
As daromer said what are you trying to do ?

Get data from a cheap chinese BMS. We got that.
 What is the BMS model what does it have for outputs or interfaces. WIFI, Bluetooth, TCP, UDP, Modbus, Canbus, Serial? 
Where do you want the data to go? Influx, Mqtt, SQL Node-red, Cloud?
How do you want to visualize this data excel, grafana, web dashboard, phone app?
Questions that need answers so we can answer your question.  Smile

Wolf
For Info Google Drive

Great ABB shunt breaker seller River City Industrial
Great prices and superb service.
 [Image: em2566%20(1)__19172.1521541365.jpg?c=2]

Not your average Wolf       
            Cool
Reply
#4
Photo 

BMS currently has a bluetooth communication dongle. I'm looking to swap that out with wifi capabilities of my ESP32 dev board. I researched the following three github apps: 
https://github.com/CRaccani/smart-BMS-NodeMCU
https://github.com/tomcosk/BMSBatteryMonitor
https://github.com/simat/BatteryMonitor

Presumably, if I get one of these running on my ESP32, I will be able to at least monitor the info via a web page on my home network? CRaccini seems to have control capabilities which would be awesome!
Seattle, USA
14S120P 48V battery - Magnum PAE4048 inverter/charger - MidNite Solar Kid MPPT - 1.4KW Solaria panels
Reply
#5
With ESP32, you can't use BT and WiFi at the same time. The only way you could do this is to (rapidly) switch back and forth between connection types. This is a lot of overhead and will be prone to bugs and dropped packets on either radio.
Proceed with caution. Knowledge is Power! Literally! Cool 
Knowledge is Power; Absolute Knowledge is Absolutely Shocking!
Certified 18650 Cell Reclamation Technician

Please come join in general chit-chat and randomness at Discord Chat (channels: general, 3d-printing, linux&coding, 18650, humor, ...)
(this chat is not directly affiliated with SecondLifeStorage; VALID email req'd)
Reply
#6
(06-25-2020, 03:13 AM)Korishan Wrote: With ESP32, you can't use BT and WiFi at the same time. The only way you could do this is to (rapidly) switch back and forth between connection types. This is a lot of overhead and will be prone to bugs and dropped packets on either radio.
I don't want to use bluetooth anymore, since it requires me to be in the shed with my batteries.
Seattle, USA
14S120P 48V battery - Magnum PAE4048 inverter/charger - MidNite Solar Kid MPPT - 1.4KW Solaria panels
Reply
#7
I thought you were gonna try to use BT to communicate with the BMS and then WiFi to send it out.

Are you trying to hardwire the EPS32 into the bms?
Proceed with caution. Knowledge is Power! Literally! Cool 
Knowledge is Power; Absolute Knowledge is Absolutely Shocking!
Certified 18650 Cell Reclamation Technician

Please come join in general chit-chat and randomness at Discord Chat (channels: general, 3d-printing, linux&coding, 18650, humor, ...)
(this chat is not directly affiliated with SecondLifeStorage; VALID email req'd)
Reply
#8
And how much have you done?

Connection? Code?

Or do you expect us to do the work for you?
completelycharged likes this post
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 100kWh LiFePo4 | 20kWh 14s 18650 |  66*260W Poly | ABB S3 and S5 Trip breakers
Upcoming: 14S 18650~30kWh
Reply
#9
(06-24-2020, 07:35 PM)Sleonard2649 Wrote: .............I researched the following three github apps: 
https://github.com/CRaccani/smart-BMS-NodeMCU
https://github.com/tomcosk/BMSBatteryMonitor
https://github.com/simat/BatteryMonitor

Presumably, if I get one of these running on my ESP32, ..........................CRaccini seems to have control capabilities which would be awesome!
CRaccani solution was portet from mega256 to esp8266 not esp32.
tomcosk solution involves a linux box or a raspi.
simat solution is on a beaglebone or another linux platform

Guess you are gonna have to start from scratch.
Personally I would use the (noble)bluetooth palette in node-red to see if you can communicate with the BMS. If that works grab the decode info from simat and get busy. Wont need an esp32 just a raspi............

Wolf
For Info Google Drive

Great ABB shunt breaker seller River City Industrial
Great prices and superb service.
 [Image: em2566%20(1)__19172.1521541365.jpg?c=2]

Not your average Wolf       
            Cool
Reply
#10
ESP8266 almost work out of the box on esp32. You dont need to do that big changes unless the libraries used only exist on one place. Then you have to redo some smaller code.
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 100kWh LiFePo4 | 20kWh 14s 18650 |  66*260W Poly | ABB S3 and S5 Trip breakers
Upcoming: 14S 18650~30kWh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)