Wed 23 Jul 2008
I spent tonight writing software for the battery monitors.
Warning! Warning! Super technical discussion ahead. If you are put off by such talk, turn back now!!!
For the most part everything seems to be working well. There is only one outstanding issue. I designed the circuit with a Schottky diode on the positive battery rail. This diode serves a couple purposes. First, it protects the circuit if its polarity is reversed. Second, it helps with noise immunity by allowing the 100uf filter capacitor to power the circuit during brief power glitches on the battery rails (I am not sure this will be needed, only driving will tell). The problem with the diode, is the fact that it is a diode. And like all diodes, it has a voltage drop. In this case .4v. The batteries are basically dead at 2.5v and the processor is good to 2v. So, it is not a problem for the processor. However, the output pins on the micro seem to output at a voltage roughly 1.1v less then the supply. The problem shows itself when I send data out of the processor through the opto-isolator (connected to the UART for communication). The opto wants a minimum of 1.5v. This means that with .4v+1.1v worth of voltage drop, my comms start dropping out if the battery voltage is below 3v. I am trying to think of options. I could ditch the diode, but that might come back to haunt me. What to do?
