![Embarassed :oops:](./images/smilies/icon_redface.gif)
![Cool 8)](./images/smilies/icon_cool.gif)
The code is here, https://github.com/Greg-Fordyce/evBMS. You don't need an account to view and download files, but it is quite simple to setup one and install the software for the full git experience.
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
Moderators: GregsGarage, retepsnikrep
GregsGarage wrote:Next item will be a current sensor connected to the master/slave bus. I can use the same basic design but instead of using a 6802 put a allegro or similair current sensor on the slave. The pic can be set to take current readings every 10ms maybe and keep a tally of amp hours in out and then send the data back on the master bus when requested. We can have a separate command for reading current data that is ignored by voltage monitoring slaves (they would just relay the command on the slave bus) and vice-versa for current commands. There is no reason you couldn't have multipile sensors, one for motor, one for charging if you wanted.
Code: Select all
' Command $01 (WRCFG) = Write configuration register group
' Command $02 (RDCFG) = Read configuration register group
' Command $03 = Report Slave Software Version Number
' Command $04 (RDCV) = Read cell voltage register group
' Command $07 = Turn On Slave Load for 0.5 seconds (Flash Led)
' Command $08 (RDTMP) = Read Temperature register group
' Command $10 (STCVAD) = Start Cell Voltage A/D conversion
' Command $20 (STOWAD) = Start Open-Wire A/D conversion
' Command $30 (STMPAD) = Start Temperature A/D conversion
' Command 200 = Start Cell A/D and read cell voltages in one command
' Command 201 = Start Temp A/D and read temperatures in one command
' Command 202 = Start current sensor A/D and read amps in one command
Users browsing this forum: No registered users and 5 guests