Old BMS General Thread

Threads relating to the BMS system begun by Peter Perkins

Moderators: GregsGarage, retepsnikrep

User avatar
retepsnikrep
Posts: 1387
Joined: Sat May 26, 2007 4:50 pm
Location: North Yorkshire England
Contact:

Analogue proportional charger control

Postby retepsnikrep » Thu Aug 14, 2008 3:27 pm

Ok we now have three software options for the Slave boards 8)

1) Digital option which works with Master board and gives all the nice info and control etc, drives Video/lcd output. Communicates via Master Bus and Slave Bus.

www.solarvan.co.uk/bms/SlaveDigital120808_v200.txt


2) Analogue with simple on/off charger over V control via parallel Master Bus & simple on/off under V control via parallel Slave Bus.
(No Master reqd)

www.solarvan.co.uk/bms/SlaveAnalogueOnO ... 8_v200.txt


3) Analogue with proportional charger over V control via parallel Master Bus & simple on/off under V control via parallel Slave Bus.
(No Master reqd)

www.solarvan.co.uk/bms/SlaveAnalogueProp140808_v202.txt
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.

wjdennis
Posts: 17
Joined: Tue Aug 05, 2008 5:27 pm

Slave PCB Order

Postby wjdennis » Thu Aug 14, 2008 7:09 pm

Peter,
I've got 35 200Ah cells and 35 90Ah cells in my EV, so I'd definitely be interested in 80 or so slave pcbs. Can they be delivered to the USA? I guess it would be prudent for me to pick up 2 masters, too. Do you see any reason, though, why a regular PC wouldn't work as a master instead of separate master board?

Thanks.

Bill Dennis

User avatar
retepsnikrep
Posts: 1387
Joined: Sat May 26, 2007 4:50 pm
Location: North Yorkshire England
Contact:

Re: Slave PCB Order

Postby retepsnikrep » Thu Aug 14, 2008 7:36 pm

wjdennis wrote:Peter,
I've got 35 200Ah cells and 35 90Ah cells in my EV, so I'd definitely be interested in 80 or so slave pcbs. Can they be delivered to the USA? I guess it would be prudent for me to pick up 2 masters, too. Do you see any reason, though, why a regular PC wouldn't work as a master instead of separate master board?

Thanks.

Bill Dennis


Do you have a 200ah and a 90ah cell in parallel then those two in series with another set etc. so a parallel/series string. If so then you only need one slave per pair of cells as long as there + & - terminals are tied together, or do you have two seperate series strings?

I've not designed the Slaves to work simply with a PC :shock: you can do what you like with them but no results are guaranteed. I suppose if you send the expected serial commands along the slave bus at the right baud rate and design an interface for your PC serial ports then it may work in the Digital mode. I won't be helping with that project for the forseeable future though. :wink: The software is freely available for you to tinker with.

It may be best to wait until I have a few up and running before commiting yourself to such a large purchase. I can re-order the boards later and may be able to despatch them straight to the USA.
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.

wjdennis
Posts: 17
Joined: Tue Aug 05, 2008 5:27 pm

Capacitors and Serial Communications

Postby wjdennis » Thu Aug 14, 2008 7:52 pm

Peter,
I really appreciate all you're doing here, and I'm learning a lot. I'm new to circuit-builidng, and I wonder if you could answer two questions for me:

1) I notice you started with a single decoupling capacitor, but you then increased to 2 in parallel, and now 3 in parallel. Why three separate capacitors?

2) I'm just wondering about the timing of the serial communications. The Slave In bus is used in two different ways: first as an on/off signal, and then immediately afterward as a serial bus. There's no hardware or software handshaking. Both slave and master have dual 10ms delays. When the Slave In pin goes high, the Slave could be anywhere in the Main routine from the very top still having to go through its 10 ADC reads), to the statement that checks the pin. So what insures that the master won't start sending its data before the slave is ready?

Thanks.

Bill Dennis

wjdennis
Posts: 17
Joined: Tue Aug 05, 2008 5:27 pm

Temperature Sensor

Postby wjdennis » Thu Aug 14, 2008 7:58 pm

Well, it's my day to post, apparently. Peter, have you considered adding a temperature sensor to the Slave Board? It seems like you could either change J1 to a 4-pin connector, or put another connector in parallel with J1 into the RXD pin. Then you could read the input from a DS18B20, for example, to get the temperature of each cell and transmit it to the master along with the voltage.

Bill Dennis
Last edited by wjdennis on Thu Aug 14, 2008 8:02 pm, edited 1 time in total.

wjdennis
Posts: 17
Joined: Tue Aug 05, 2008 5:27 pm

Re: Slave PCB Order

Postby wjdennis » Thu Aug 14, 2008 8:00 pm

The cells are two parallel strings, with connections only at pack positive and pack negative, so I'd need one Slave per cell.

Bill

User avatar
retepsnikrep
Posts: 1387
Joined: Sat May 26, 2007 4:50 pm
Location: North Yorkshire England
Contact:

Re: Capacitors and Serial Communications

Postby retepsnikrep » Fri Aug 15, 2008 5:28 am

wjdennis wrote: 1) I notice you started with a single decoupling capacitor, but you then increased to 2 in parallel, and now 3 in parallel. Why three separate capacitors?


I added the extra capacitors to minimise any noise/supply/spike issues, also the Slave pcb's have a big ground plane to help prevent noise interference. An EV is a nightmare electrical noise environment so I wanted to be safer. Of course it may still not work and I may need to add inductors/filters etc to further reduce noise in the real world. None of this has been tested in my Honda Insight Yet :(

wjdennis wrote: 2) I'm just wondering about the timing of the serial communications. The Slave In bus is used in two different ways: first as an on/off signal, and then immediately afterward as a serial bus. There's no hardware or software handshaking. Both slave and master have dual 10ms delays. When the Slave In pin goes high, the Slave could be anywhere in the Main routine from the very top still having to go through its 10 ADC reads), to the statement that checks the pin. So what insures that the master won't start sending its data before the slave is ready?


That's why the delay is adjustable in the software so I can set the delay to cope with the speed of loop execution and the real world execution speed of the software. It's not set in stone and almost certainly will need adjusting when I have tested how long the loop you mention takes to execute.

I might add a real interrupt back into the Slave code which will sort that issue, but have to be very careful about the data it then sends to the Master as it can jump out of that main loop at any point and send invalid data. That's why I removed the interrupt earlier in the Slave software development. It does seem sensible to put it back in now in the light of the below and the potential timing issue :shock:

What I might do is store the previous value for the Cell V so that the next time through the 10 x adc loop if it's interupted it send the previous value so we know that's good data. It's all a work in progress at the moment.

wjdennis wrote: Have you considered adding a temperature sensor to the Slave Board? It seems like you could either change J1 to a 4-pin connector, or put another connector in parallel with J1 into the RXD pin. Then you could read the input from a DS18B20, for example, to get the temperature of each cell and transmit it to the master along with the voltage.



Yes I did consider this but it depends very much on where you mount this on the slave board or all you do is get 50 readings of the ambient temp next to the cell. It would have to be fastened to one of the terminals really or ideally burrowed into the cell body itself somehow. The Master can read from many DS18B20 temp sensors in parallel using the I2C bus so that's why I put it on the Master board, of course I haven't written any of that code yet :roll: it just reads ones DS18b20 at the moment on the TEMP SENSOR INPUT. Regarding J1, the DS18B20 needs a 4k7 pull up so that would interfere with the programming input on the Slave board unless a jumper/switch was fitted. I don't think you can use RXD pin as a standard input either on the PIcaxe.
Last edited by retepsnikrep on Fri Aug 15, 2008 5:31 am, edited 1 time in total.
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.

User avatar
retepsnikrep
Posts: 1387
Joined: Sat May 26, 2007 4:50 pm
Location: North Yorkshire England
Contact:

Re: Slave PCB Order

Postby retepsnikrep » Fri Aug 15, 2008 5:29 am

wjdennis wrote:The cells are two parallel strings, with connections only at pack positive and pack negative, so I'd need one Slave per cell.

Bill


You mean series surely?
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.

wjdennis
Posts: 17
Joined: Tue Aug 05, 2008 5:27 pm

Re: Slave PCB Order

Postby wjdennis » Fri Aug 15, 2008 7:03 am

There are two strings of cells. Each string has 35 cells in series. One string is 90Ah cells. The other string is 200Ah cells. The two strings are in parallel with each other.

Bill.

User avatar
retepsnikrep
Posts: 1387
Joined: Sat May 26, 2007 4:50 pm
Location: North Yorkshire England
Contact:

Postby retepsnikrep » Fri Aug 15, 2008 10:42 am

IC, so you would need 70 slaves then in your current configuration.

Sounds a potential nightamre with two Masters, I think it would be better to connect in Parallel/Series if cells are same chemistry/voltage, then use 35 Slaves (One per pair) and One Master. That should work IMHO.
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.


Return to “BMS thread”

Who is online

Users browsing this forum: No registered users and 42 guests