Old BMS Software Thread
Moderators: GregsGarage, retepsnikrep
- retepsnikrep
- Posts: 1387
- Joined: Sat May 26, 2007 4:50 pm
- Location: North Yorkshire England
- Contact:
Re: Old BMS Software Thread
Post your modified code, what's all this reading from the eeprom talk?
Regards Peter
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Re: Old BMS Software Thread
The version we are first testing on the hardware is v27 of the master code, unmodified. We thought it would be wise to get that up and running before we load the modified code we are working on. Just so we can reduce any cause for error.
The eeprom I was referring to was
I'm assuming this may be where I'm going wrong.
When I power everything up a table comes up saying with variables such as voltage, before disappearing off the top of the screen and being replaced by the sort of characters I posted earlier. No splash screen appears, so I'm thinking something must have happened further upstream in the code.
We've managed to alter and correctly program the PICAXE, so is it possible that a setting in the Pickit 2 software which needs to be changed to fix the problem? I've even tried directly importing the v27 hex code which you posted up, just in case I was doing something wrong in pbpro, but the result was the same.
The eeprom I was referring to was
I2CREAD Scdeeprom,Sckeeprom,AT24C512B,I2CAddr,[Cells,Odo.Byte0,Odo.Byte1,Trip.Byte0,Trip.Byte1,_
Dist.Byte0,Dist.Byte1,Soc.Byte0,Soc.Byte1] 'Read data from I2c eeprom starting at addr 0
I2Caddr = 14 'Set to first available byte of I2C EEprom (First 14 bytes [0-13] reserved for BMS data)
'Manual I2C Temp Sensor initiate routine avoids start up temperature errors
owout DigitalTemp,1,[$55,$28,$B9,$11,$16,$01,$00,$00,$A4,$44] 'Start 1st temp sensor conversion
'Display Splash Screen, Software Version, CPU Speed & Number of Cells in System.
I'm assuming this may be where I'm going wrong.
When I power everything up a table comes up saying with variables such as voltage, before disappearing off the top of the screen and being replaced by the sort of characters I posted earlier. No splash screen appears, so I'm thinking something must have happened further upstream in the code.
We've managed to alter and correctly program the PICAXE, so is it possible that a setting in the Pickit 2 software which needs to be changed to fix the problem? I've even tried directly importing the v27 hex code which you posted up, just in case I was doing something wrong in pbpro, but the result was the same.
- retepsnikrep
- Posts: 1387
- Joined: Sat May 26, 2007 4:50 pm
- Location: North Yorkshire England
- Contact:
Re: Old BMS Software Thread
Post the full file name for the code you are testing.
Also post a link to it if you have it.
Also post a link to it if you have it.
Regards Peter
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Re: Old BMS Software Thread
This is the current code we are using for testing, I made sure to go into PIC16f886 config file to prevent the "overwriting previous address contents" error
The forum is not letting me upload a .txt file, but here is the full file name is you still have it on your computer
MASTER_V27_090211_185V_P
EDIT: I've compressed the files you posted and re-uploaded them
The forum is not letting me upload a .txt file, but here is the full file name is you still have it on your computer
MASTER_V27_090211_185V_P
EDIT: I've compressed the files you posted and re-uploaded them
- Attachments
-
- V27 Full.zip
- (37.24 KiB) Downloaded 848 times
- retepsnikrep
- Posts: 1387
- Joined: Sat May 26, 2007 4:50 pm
- Location: North Yorkshire England
- Contact:
Re: Old BMS Software Thread
Do you have at least two live slave's connected correctly to the master?
Do you have link wire between pin 7 on the watchdog chip and pin 9 on the master chip?
This is needed for the 1s pulse timing.
Have you used the menus (push button in when program starts) to adjust the number of cells in the master to match the number of slaves?
I haven't tried compiling the bms software using V3 of pbpro, the configs layout will have to be changed at least.
post a video on YT of what is happening when you turn on the power
Do you have link wire between pin 7 on the watchdog chip and pin 9 on the master chip?
This is needed for the 1s pulse timing.
Have you used the menus (push button in when program starts) to adjust the number of cells in the master to match the number of slaves?
I haven't tried compiling the bms software using V3 of pbpro, the configs layout will have to be changed at least.
post a video on YT of what is happening when you turn on the power
Regards Peter
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Re: Old BMS Software Thread
This is what the screen looks like from start up, we have also tried using the buttons to go to the sub-menu but the system is unresponsive.
Not really sure the cause of this problem
http://www.youtube.com/watch?v=UWWCl9gN ... ideo_title
Not really sure the cause of this problem
http://www.youtube.com/watch?v=UWWCl9gN ... ideo_title
- hohisilver
- Posts: 114
- Joined: Mon Jan 24, 2011 10:17 pm
- Location: Wells, Somerset
Re: Old BMS Software Thread
Looks to me like the baud rate to the video chip is getting changed somehow, it seems to be trying to update once a second.
A thought that did occur to me was whether some other component(s) got damaged when you inserted the EEPROM the wrong way round?
A thought that did occur to me was whether some other component(s) got damaged when you inserted the EEPROM the wrong way round?
Ian.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: Old BMS Software Thread
Try loading one of Peter's pre-compiled hex files. That would rule out a hardware issue if it fixes the display.
Greg
Greg
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
Re: Old BMS Software Thread
Peter,
I have an issue that has stumped me and wanted to see if you have ever seen anything like this. I am running V28 of the slave software. I have the CutInVD set to 365 and the CutOutVD set to 360 on both the master and slave software. Here is the issue. Cells 1 thru 16 turn on the bypass resistor at the appropriate voltage (3.66) and the "on" duty cycle (measured at pin 7 of the pic chip) for the bypass is about 800 mSec and the "off" is about 200mSec. Cells 17 thru 24 also turn on the bypass resistor at the appropriate voltage (3.66) but the "on" duty cycle is about 10mSec and the off is about 990mSec. I have reprogrammed the pic chips on cells 17 thru 24 but it still does the same thing.
Any ideas ?????
I have an issue that has stumped me and wanted to see if you have ever seen anything like this. I am running V28 of the slave software. I have the CutInVD set to 365 and the CutOutVD set to 360 on both the master and slave software. Here is the issue. Cells 1 thru 16 turn on the bypass resistor at the appropriate voltage (3.66) and the "on" duty cycle (measured at pin 7 of the pic chip) for the bypass is about 800 mSec and the "off" is about 200mSec. Cells 17 thru 24 also turn on the bypass resistor at the appropriate voltage (3.66) but the "on" duty cycle is about 10mSec and the off is about 990mSec. I have reprogrammed the pic chips on cells 17 thru 24 but it still does the same thing.
Any ideas ?????
- retepsnikrep
- Posts: 1387
- Joined: Sat May 26, 2007 4:50 pm
- Location: North Yorkshire England
- Contact:
Re: Old BMS Software Thread
I agree looks like it is trying to update at 1hz and baud rate for video chip has gone awry.
Try a new master pic and or a new video chip. You may have damaged it/them.
Remove the eeprom what happens then.
Record a longer video starting before you turn on the power and leave it running for at least a minute.
Steiner.
The cells loads can only turn off independently if the cell voltage falls below the fail safe low off V level, what is that set to in the slaves? You have to allow enough headroom for the voltage drop that occurs when the load comes on if you use flying leads. So the fail safe low v cutoff in the slaves needs to be pretty low say 3V. Is the wiring different (longer?) between the cells that works and the cells that don't?
ASFAIK the latest version of the slave software is "SLAVE_V10_270411_MPASM"
Try a new master pic and or a new video chip. You may have damaged it/them.
Remove the eeprom what happens then.
Record a longer video starting before you turn on the power and leave it running for at least a minute.
Steiner.
The cells loads can only turn off independently if the cell voltage falls below the fail safe low off V level, what is that set to in the slaves? You have to allow enough headroom for the voltage drop that occurs when the load comes on if you use flying leads. So the fail safe low v cutoff in the slaves needs to be pretty low say 3V. Is the wiring different (longer?) between the cells that works and the cells that don't?
ASFAIK the latest version of the slave software is "SLAVE_V10_270411_MPASM"
Regards Peter
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Two MK1 Honda Insight's. One running 20ah A123 Lithium pack. One 8ah BetterBattery Nimh pack.
One HCH1 Civic Hybrid running 60ah A123 Lithium pack.
Who is online
Users browsing this forum: No registered users and 26 guests