arduino-libraries / Arduino_USBHostMbed5

Apache License 2.0
4 stars 11 forks source link

Reading Battery data from the DALY BMS in the Portenta machine control #51

Closed Vasanth28897 closed 11 months ago

Vasanth28897 commented 11 months ago

Hi, i want to read a battery data from DALY BMS thru USB-A port in the arduino portenta machine control act as a USBHost for this particular one. So, i noticed this Arduino_USBHostMbed5 library could help on this, and i referred this to read the data from the Daly BMS, here's the output of serial monitor for the program

Starting USB File Read example...
Press any key and hit enter to query data from the BMS...
Basic BMS Data:              0.00V 0.00I 0.00% 
Package Temperature (C):     0.00
Highest Cell Voltage:        #0 with voltage 0.00
Lowest Cell Voltage:         #0 with voltage 0.00
Number of Cells:             0
Number of Temp Sensors:      0
BMS Chrg / Dischrg Cycles:   0
BMS Heartbeat:               0
Discharge MOSFet Status:     0

but first thing the arduino has to act as a usb host. Which example i can prefer on the given?