Old BMS Software Thread

Threads relating to the BMS system begun by Peter Perkins

Moderators: GregsGarage, retepsnikrep

GregsGarage
Posts: 870
Joined: Tue Apr 01, 2008 5:27 pm
Location: Galashiels, Scottish Borders
Contact:

Re: Old BMS Software Thread

Postby GregsGarage » Mon Jun 06, 2011 9:35 pm

I've been needing to do a few adjustments to my master software so this was the perfect opportunity. V29 looks good so far, programmed my master with it just now. I also adjusted the software to work with my 50a allegro sensor. I like the charger on/off just by pressing the button down. 8)
Greg Fordyce

Daewoo Matiz
http://www.evalbum.com/4191

GregsGarage
Posts: 870
Joined: Tue Apr 01, 2008 5:27 pm
Location: Galashiels, Scottish Borders
Contact:

Suggestion for Master V30

Postby GregsGarage » Tue Jun 07, 2011 10:50 am

Suggestion for Master V30, how about moving the cell voltage menu to the now unused slot on the first menu. I find I use that quite a lot.
Greg Fordyce

Daewoo Matiz
http://www.evalbum.com/4191

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

Re: Old BMS Software Thread

Postby retepsnikrep » Tue Jun 07, 2011 12:49 pm

OK
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: Old BMS Software Thread

Postby retepsnikrep » Tue Jun 07, 2011 6:03 pm

Master V30

This has the voltage display moved up one level to the vacant menu1 slot.

Also added a slight delay after charger on/off toggle, if your finger lingered on the button it could turn off again straight away. :roll:
Attachments
MASTER_V30_070611_185V_P.zip
(28.32 KiB) Downloaded 1223 times
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.

GregsGarage
Posts: 870
Joined: Tue Apr 01, 2008 5:27 pm
Location: Galashiels, Scottish Borders
Contact:

Re: Old BMS Software Thread

Postby GregsGarage » Thu Jun 09, 2011 7:06 pm

I'll give it a try at the weekend. Another thing I was going to suggest was to swap the charge toggle and fault bit display functions. What I am finding is that when you are scrolling through the cell voltages, it is quite easy to toggle the charge bit if you leave your finger on the button too long. So charge would be up and last fault would be down.
Greg Fordyce

Daewoo Matiz
http://www.evalbum.com/4191

User avatar
hohisilver
Posts: 114
Joined: Mon Jan 24, 2011 10:17 pm
Location: Wells, Somerset

Re: Old BMS Software Thread

Postby hohisilver » Mon Jul 18, 2011 9:26 pm

Now it looks like I'm finally going to be charging more regularly I want to see about adding remote display support to my C software, but I'm puzzled by this line in the PBP code Peter?

serout DriveInhibit, N2400, [85, 85, 85, 85, 85] 'Txd 5 byte preamble to clear Rxd
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....

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

Re: Old BMS Software Thread

Postby retepsnikrep » Tue Jul 19, 2011 1:03 am

The TX/RX pair I used had some demo picaxe code as far as I remember which recommends sending a few dummy bytes to synchronise the TX/RX and clear any garbage out of the buffer. It seemed to work well. I suggest you keep it in.

There are some newer options for the actual TX/RX gizmos now. i have just bought these after good reports on the insight website.

http://rover.ebay.com/rover/1/711-53200 ... MEWAX%3AIT

http://www.insightcentral.net/forums/mo ... post191793

More data on them is spread over several pages of the thread.
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
hohisilver
Posts: 114
Joined: Mon Jan 24, 2011 10:17 pm
Location: Wells, Somerset

Re: Old BMS Software Thread

Postby hohisilver » Tue Jul 19, 2011 7:18 am

They do look good, trouble is I already bought the components for the remote display while I was ordering the bits for the main BMS :roll:

Another thing I am going to do to my software is inhibit the controller until the reference current reading has been read - I took the scooter out for a run last night and I must have pulled away before it had initialised properly, and all my current readings were skewed by about 15A!
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....

User avatar
hohisilver
Posts: 114
Joined: Mon Jan 24, 2011 10:17 pm
Location: Wells, Somerset

Re: Old BMS Software Thread

Postby hohisilver » Thu Aug 04, 2011 7:33 pm

Just a quick update:

Remote display built, boxed and working nicely. So nice not to have to keep running out to the garage to check on charging progress :D

However, due to the seriously bloaty nature of my C software (I could probably have made it much smaller at the expense of its interrupt-driven nature) I am now up to 97.8% of program space in the master :shock:

So I've been looking around and the PIC18F2550 looks like almost a drop-in replacement with 16k words of program space and 2k bytes of RAM, so I'm thinking of modifying my master board (again!) to reassign some of the pins. RA7 is no longer (now a dedicated clock input) so I'm also thinking of sticking in a 20MHz ceramic resonator I bought while I'm at it.

I've recompiled my C software for this chip and it reports that it now takes up 41% of program space :) Of course I've no way of knowing if the software will actually run at this point. The other interesting feature of the PIC18 is the on-board USB so, space permitting (and quite a steep learning curve methinks :roll: ) I'm going to see if I can implement logging to a USB memory stick :)
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....

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

Re: Old BMS Software Thread

Postby retepsnikrep » Fri Aug 05, 2011 5:22 am

Sounds good Ian some pics please of your nicely boxed remote and a look at your C source please.

You can log direct to your house pc into a spreasheet with a serial usb/led from the remote don't forget.

I have looked at logging to sd card etc there are a few routines in pbpro so it is possible i just never got round to 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.


Return to “BMS thread”

Who is online

Users browsing this forum: No registered users and 35 guests