Well, for whoever is interested, here's a simplified schematic, parts/cost list, and instructions:
Parts List:
=======
D1 - 1N4001 1 Amp Rectifier Diodes (RS 276-1101) $0.99 (2)
VR1,VR2 - 10K Ohm 15 Turn Trimmer Pots (RS 271-343) $2.69 (ea)
C1 - 100uF 50V Electrolytic Capacitor (RS 272-1044) $1.49 (ea)
R1 - 220 Ohm 1/2W Carbon Film Resistor (RS 271-1111) $0.99 (5)
R2 - 2200 Ohm 1/2W Carbon Film Resistor (RS 271-1325) $0.99 (5)
D2 - T1 3/4 5mm Full Color LED (RS 276-028) $2.99 (ea)
U1 - LM158 Dual OpAmp Nearest Equivalent TL082 Dual JFET OpAmp (RS 276-1715) $1.99 (ea)
U2 - 78L05 Fixed 5 Volt Regulator (TO-92 Package) Nearest Equivalent LM7805 (RS 276-1170) $1.59 (ea)
So, if you need to purchase all of these parts, they'll run you about 15 and a half bucks. However, since I'd assume that most folks interested in this type of project already have a stash of junk-box parts on hand, the actual cost would probably be much less. Additionally most of the part tolerances are really not that critical, so you could, for example, use a 270 or 330 ohm resistor for R1, a 50uF cap for C1, etc. If you substitute other components for U1 and/or U2, however, please be advised that the pinouts could change as well.
Of course, if you don't have a soldering iron and all the necessary paraphernalia, then that'll add to the cost as well. In so far as the construction, I used one half of a dual 213 hole mini board (RS 276-148) that goes for $1.99
Circuit Description:
===================
As this circuit does not have an on/off switch, power must be provided via a connection to a switched source (the ignition switch, for example) so as to prevent the battery from being slowly drained over time. A suitable connection to ground (such as the battery's negative terminal is also required.
Diode D1 serves to protect the circuit from damage should its power leads be accidentally connected to the wrong polarities.
Capacitor C1 serves to provide some power smoothing (ripple reduction). The power is then fed to potentiometers VR1 and VR2, as well as to operational amplifier U1 and voltage regulator U2.
Potentiometer VR1 controls the voltage at which the RED component of LED D2 turns OFF, while potentiometer VR2 control the voltage at which the GREEN component of that LED turns ON.
The output of voltage regulator U2 (a constant 5 volts) is fed to operational amplifier U1 where it is used as a basis for comparison to the voltages from potentiometers VR1 and VR2.
The regulated 5 volts from U2 is also fed (via current-limiting resistor R1) to the common anode of LED D2. This is what provides the actual power to all three of the LED's color components.
Resistor R2 serves to reduce the intensity of the LED's BLUE component so that it is, from a visual standpoint, OFF whenever either of the other two color components is ON.
Calibration:
===========
I believe that most of our scooters use AGM-type sealed batteries that typically measure between 12.6 and 12.8 volts, fully charged, with no load. I measured mine while it was on my workbench, and it indeed proved to be 12.6 volts. Additionally, even though our scooters have 12 volt electrical systems, the actual voltage coming out of their regulator/rectifiers is usually something in the neighborhood of 14 to 14.5 volts. Taking these two factors into consideration, I decided that I'd set up the circuit's color transitions as follows (YMMV):
0 to 12.6 volts: RED - Charging system or battery problem (totally not charging)
12.6 to 13.6 volts: BLUE - Possible problem, but could be normal under excessive load or when idling.
13.6+ volts: GREEN - No problem, battery charging properly.
Now, the circuit's calibration is pretty straightforward, but requires a variable voltage source and a voltmeter (if the source doesn't have one built-in:
1) Set the voltage source down to zero and turn it off.
2) Connect the circuit to the voltage source (observing polarity).
3) Turn the voltage source on and adjust it to the voltage at which you want the RED portion of the LED to turn OFF.
4) Adjust VR1 up or down until the RED portion of the LED just turns OFF.
5) Now set the voltage source to the voltage at which you want the GREEN portion of the LED to turn ON.
6) Adjust VR2 up or down until the GREEN portion of the LED just turns ON.
Providing that you've set up your threshold voltages far enough apart, you should see the LED transition RED-BLUE-GREEN as you increase the voltage source from 0, and GREEN-BLUE-RED as you then decrease the voltage source to 0. (Actually, the circuit doesn't really light anything up until there's about 5 or so volts applied to it since the voltage regulator (U2) requires that as its minimum operating voltage. However, if your electrical system has reached the point where it can't even crank out 5 volts, you won't need a little red light to tell you that something's seriously wrong.)
Disclaimer:
==========
I assume no responsibility for any damages or injuries resulting from the construction and/or use of this circuit, whether that construction proves to be faulty or not. This circuit is presented merely as a DIY project, and the consequences of its use or misuse lie solely upon those individuals who choose to do so. That being said, I've run the sucker up to 20 volts and
I've still got most of my fingers left.
Questions:
=========
If you've got any questions, observations, or suggestions pertaining to this circuit and/or its description, please feel free to get in touch with me. I've been married for 22 years, and working at the same job for 17, so nothing you could say or do would have even the slightest impact upon my self-esteem.[/img]