The latest project is now coming along nicely.
A colleague at work designs lithium/nicad/Nimh battery pack chargers and he pointed out a very useful chip from Dallas (now Maxim). Its a Battery Monitor type DS2438 and is a part of the 1-wire family of devices some of you may be familiar with from a couple of weather stations that use these chips.
Two problems - getting 1-wire communications to the chip and bridging the 100m gap between the battery bank and the house where I could see what is going on.
Both problems solved with a Linksys wireless router that is available with GPL Linux software which is not only available for free but the complete development environment is also available so (if you have the necessary skills) you can write your own software. The model is the WRT54GL and they can be had for about US$60 so not going to break the bank!
So how does this solve both problems? The 100m is no problem for wifi with a decent aerial and the 1-wire problem just requires the addition of a converter board on the hidden serial port of the router. Hidden because its a set of pads on the PCB that requires a connector soldering in and then just plug in the add-on which contains another Dallas chip that converts serial (uart) comms to 1-wire - a DS2480B chip.
So all this effort gives me what exactly? I can use an external shunt to measure current in/out of the battery bank 30 times a second and accumulate the total state of charge within the monitor chip. I can add two resistors and measure the voltage to within 30mV on my 24 volt bank up to 100 times a second (not that you can read the chip this fast!!) and I can measure the temperature of the battery enclosure. If that is not enough is can accumulate the total charge in and out of the battery over its lifetime.
So far, all the individual parts are working, these being:
* 12volt switch mode regulator to power the router from the battery bank
* 5 volt regulator from the 12volt supply to power the 1-wire chips
* a redundant prototype PCB out of a battery pack with the monitor chip on it
* PCB with the serial to 1-wire converter on it
* software loaded onto the router to drive the 1-wire system and read the monitor chip
Since my mill is down awaiting a new tower, I expect to fire it up on the battery bank tomorrow with the mains charger I'm using to keep the bank topped off.
Watch this space for pictures, schematics, PCB layouts and software.