- LTC6802-120919.pdf
- (97.5 KiB) Downloaded 1464 times
LTC6802 based 12 cell slave.
Moderators: GregsGarage, retepsnikrep
-
- Posts: 870
- Joined: Tue Apr 01, 2008 5:27 pm
- Location: Galashiels, Scottish Borders
- Contact:
Re: LTC6802 based 12 cell slave.
More progress, updated schematic with new optos, pull-up for MCLR pin, new 16F1825 pic and MMB pin on U1 tied to Vreg. I think thats all that needs changing.
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: LTC6802 based 12 cell slave.
I've just sent the new gerbers to China. It may take a while as they are going on holiday for a week.
Here's some 3D views of the new layout.
The main changes are new optos, new pic, test points labeled better, errors from previous layouts fixed (I hope ) and surface mount leds changed to a single through hole bi-colour led which can be mounted vertically or horizontally. Also the isolation distances are better on this board.
The schematic has also seen some changes, here's the latest version.
Here's some 3D views of the new layout.
The main changes are new optos, new pic, test points labeled better, errors from previous layouts fixed (I hope ) and surface mount leds changed to a single through hole bi-colour led which can be mounted vertically or horizontally. Also the isolation distances are better on this board.
The schematic has also seen some changes, here's the latest version.
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: LTC6802 based 12 cell slave.
Looks good. I should have used usb connector on my boards
My A123 boards won't be sent until 9th October
My A123 boards won't be sent until 9th October
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: LTC6802 based 12 cell slave.
retepsnikrep wrote:Looks good. I should have used usb connector on my boards
I just thought of a potential problem of using usb cables on the original style slaves. The master bus and slave bus are at very different voltage potentials. The slave bus is at pack potential and the usb connectors/cables probably aren't rated for this. I've been able to use them because I've moved the isolation between pack and master completely onto the slave board, so both master and slave bus share a common earth. Just a thought.
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: LTC6802 based 12 cell slave.
Good point, i was just wondering who would be the first to spot that!! LOL
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: LTC6802 based 12 cell slave.
While waiting for the boards, nothing else to do but work on the software. Here's an initial version. It still needs work, mainly in the configuration of the pic but this should give a rough idea of how it will work.
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: LTC6802 based 12 cell slave.
Code looks interesting, didn't spot any glaring issues.
I haven't used SPI
I haven't used SPI
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: LTC6802 based 12 cell slave.
The SPI caused me the most grief, the original optos where to slow so I couldn't use the SHIFTIN/SHIFTOUT commands because the clock signals weren't getting through. These pbp routines have a 10uS pulse for the clock instead of an even square wave. So I tried to use the pics built in hardware spi, only clocking it really slow. After going round and round trying to get it to work I discovered that the 16F886 has a silicon bug that affects the SPI mode I needed to use.
In the end new optos sorted out the spi bus. I am using the SHIFTIN/SHIFTOUT commands because they are easy, data rate is 50kHz. Using the built in SPI bus would enable 1mHz data rate, but there is no need for that.
The 16F1825 is just relaying commands between the SPI and master/slave buses. I want to add some smarts to the pic so that for example if you ask for the cell voltage register without first starting an A/D conversion it would do the A/D then read the cell voltage register. I should also be able to add multiple 6802s onto a slave making 24, 36 and 48 cell slaves possible on one board. But first I need to get this simple version working. Next week I am going to work on some Maximite master software. I am also mid-butcher of a toaster oven from ALDI to do re-flow soldering of the boards. I'll post some pictures of that soon.
In the end new optos sorted out the spi bus. I am using the SHIFTIN/SHIFTOUT commands because they are easy, data rate is 50kHz. Using the built in SPI bus would enable 1mHz data rate, but there is no need for that.
The 16F1825 is just relaying commands between the SPI and master/slave buses. I want to add some smarts to the pic so that for example if you ask for the cell voltage register without first starting an A/D conversion it would do the A/D then read the cell voltage register. I should also be able to add multiple 6802s onto a slave making 24, 36 and 48 cell slaves possible on one board. But first I need to get this simple version working. Next week I am going to work on some Maximite master software. I am also mid-butcher of a toaster oven from ALDI to do re-flow soldering of the boards. I'll post some pictures of that soon.
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: LTC6802 based 12 cell slave.
Latest slave hand soldered. The plan is to make 6 of these up with reflow soldering in my newly butchered toaster oven.
Lots to do on the software, but I've managed to get the maximite talking to the slave and the 16F1825 talking to the 6802, shame I haven't managed it all at the same time, but I'll get there.
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: LTC6802 based 12 cell slave.
I've been doing some baking, although the wife wasn't impressed that the results were inedible.
Some pictures of how I did it.
So there you have it. I've ordered the connectors I need to finish the boards. Well that would nearly finish the boards, except for a small goof I made. In Kicad when you run a design rules check in pcbnew, the results are shown in 2 tabs. The first tab shows clearence problems, tracks to close to pins, etc. I got those sorted out, but didn't realize I needed to click on the second tab that shows unconnected pins. I had accidentally deleted 2 vias the connect the 6802 earth pins to cell 1 negative. So each board needs 2 small holes drilled and the pins connected to the ground plane. Not enough of a problem to warrant new boards for testing. I'll fix the problem and tidy up the silk screen layer some more, as long as I lock the smt components I can use the same stencil.
EDIT: Added PartsPlaced.jpg
Some pictures of how I did it.
So there you have it. I've ordered the connectors I need to finish the boards. Well that would nearly finish the boards, except for a small goof I made. In Kicad when you run a design rules check in pcbnew, the results are shown in 2 tabs. The first tab shows clearence problems, tracks to close to pins, etc. I got those sorted out, but didn't realize I needed to click on the second tab that shows unconnected pins. I had accidentally deleted 2 vias the connect the 6802 earth pins to cell 1 negative. So each board needs 2 small holes drilled and the pins connected to the ground plane. Not enough of a problem to warrant new boards for testing. I'll fix the problem and tidy up the silk screen layer some more, as long as I lock the smt components I can use the same stencil.
EDIT: Added PartsPlaced.jpg
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 24 guests