V10 good spot
Not sure about CellS
CellS is used to store the unloaded cell voltage from a known acquisition with the loads off.
The sequence goes
1) Turn off loads.
2) Measure cell voltages and store CellV in CellS. Report V to master
3) Turn on loads according to CellS
I'll look at it. Suggest try is as is first to get it working.
If we have thickish short wires to the cells we may be able to revert to the older software where we did not have to turn off the loads to take the cell V
Multi-Cell Slave-Version 2
Moderators: GregsGarage, retepsnikrep
- retepsnikrep
- Posts: 1387
- Joined: Sat May 26, 2007 4:50 pm
- Location: North Yorkshire England
- Contact:
Re: Multi-Cell Slave-Version 2
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.
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: Multi-Cell Slave-Version 2
VData was/is the low byte of the CellV word variable. But if you define VData as a separate byte variable, unrelated to CellV, then you can use the statement VData = CellV - DLow. CellV stays unchanged so you can still use it later instead of CellS. CellS becomes redundant, so we can get rid of it, freeing up a whole 2 bytes of memory.
EDIT: Actually it only saves 1 byte, I forgot that VData needs a byte.
EDIT: Actually it only saves 1 byte, I forgot that VData needs a byte.
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: Multi-Cell Slave-Version 2
retepsnikrep wrote:If we have thickish short wires to the cells we may be able to revert to the older software where we did not have to turn off the loads to take the cell V
We could have both options in the software. Add another command like this
Code: Select all
if Command = 14 then 'If command = 14 then send voltage data on Master Bus and turn on loads as required
if CellV >DHigh or CellV <DLow then 'If V >4.30V or V <1.75V set out of range
VData = 0 'Set VData = 0 Cell error out of Voltage range condition
low Load 'Turn off bypass resistor and bypass led in case of cell error
else
VData = CellV - DLow 'Convert Word (CellV) data into Byte (VData) for output
if CellV > CutInV then 'If stored cell voltage CellV > CutInV then
high Load 'Turn on bypass resistor and bypass led
endif
if CellV < CutInV then 'If stored cell voltage CellV < CutInV then
low Load 'Turn off bypass resistor and bypass led
endif
endif
endif
By adding a new command we keep compatibility with the existing master software. The new functionality will require changes in the master software, but the new slave software will still work with the older master software, you just don’t get the new features. It also means you have more flexibilty in wiring. You are not required to use thicker, shorter wires if you don't want to by using the command 2, 1, 3 combination. Note, I haven't yet upgraded my pbp to the latest version so I can't test these changes. Also, this example uses my idea of ditching the CellS variable, but it would be simple to change this.
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: Multi-Cell Slave-Version 2
I just saw this video on pick and place process, note the battery holders are at a 45 degree angle.retepsnikrep wrote:Looks nice but for auto assembly in china can the machines cope with parts at an angle I've only ever seen pcb's with stuff at 90 degrees or aligned vertically or horizontally?
http://www.eevblog.com/2012/04/04/eevblog-264-pcb-pick-place-assembly/
EDIT: pcbs have been shipped! I'm away next week, hopefully they will be waiting for me when I get back.
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Boards have arrived!
Got the pcbs today.
I've been away over the Easter holidays and haven't had time to order the components yet. Hopefully will be able to order the bits later this week.
I've been away over the Easter holidays and haven't had time to order the components yet. Hopefully will be able to order the bits later this week.
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
- retepsnikrep
- Posts: 1387
- Joined: Sat May 26, 2007 4:50 pm
- Location: North Yorkshire England
- Contact:
Re: Multi-Cell Slave-Version 2
Looks good www.pcbcart?
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.
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: Multi-Cell Slave-Version 2
These came from itead.
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: Bill of Materials
I've ordered enough parts for all 10 pcbs. I'll build a few of them to start with and some more when we know it works.
I found a mistake in the BOM, the Farnell part no for the opto was incorrect, I've fixed it below.
I found a mistake in the BOM, the Farnell part no for the opto was incorrect, I've fixed it below.
Code: Select all
4 Cell Slave Version 2 Rev A
part # price qty value ref
1833888 0.082 4 100n C10x
1738662 0.220 4 10R 3W R10x
9332650 0.011 4 160R R20x
9332804 0.025 4 220R R30x
9332383 0.025 4 1K R40x
9846662 0.074 4 BC818-40 Q10x
2001671 0.160 4 LED D10x
1971857 0.530 4 PIC12F1822 U10x
8310750 0.240 8 TCLT1009 U20x/U30x
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
- retepsnikrep
- Posts: 1387
- Joined: Sat May 26, 2007 4:50 pm
- Location: North Yorkshire England
- Contact:
Re: Multi-Cell Slave-Version 2
I'll have to start on the 12F683 Master now!!
Good effort Greg
Good effort Greg
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.
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: Multi-Cell Slave-Version 2
I had a go at building a couple of boards. I still need to work on getting the correct amount of solder paste on the pads and also the right amount of heat, U301 got a bit too much!
It's not good enough to go in something at the moment but I could try and program it for starters. Peter do you have a hex file I could try? I haven't updated my pbp yet.
It's not good enough to go in something at the moment but I could try and program it for starters. Peter do you have a hex file I could try? I haven't updated my pbp yet.
Greg Fordyce
Daewoo Matiz
http://www.evalbum.com/4191
Daewoo Matiz
http://www.evalbum.com/4191
Who is online
Users browsing this forum: No registered users and 1 guest