--Boundary_(ID_P7aS37tfu8RqhkTODIhf6A) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Kieren Johnstone wrote... >I want to create a "low battery" warning LED, to warn me when the >voltage drops below say 4V (from 4.5 supplied from 3xAA)... I >told my brain to work something out, the best it came up with >was putting some very high resistance resistor feeding the +ve >supply to the base of a transistor, then the collector-emitter >current would die (supposedly) so I could do that inverter thingy :) >Then I told my brain to construct an example, it built what I just >described (minus an inversion), all that arose was an LED slightly >dimmer than the "power on" indicator LED. Anyone wanna help me >solve this? :) For a more or less practical (depending on what precision you're looking for) low-battery indicator circuit, try the attached. R1 will probably have to be adjusted to get the right trip voltage, since transistors differ in the base-to-emitter voltage needed to get them to conduct (typically this is about 0.6 volts, but can be as low as 0.45 volts or as high as 0.75 volts depending on the transistor). Make R1 larger to increase the trip voltage, smaller to reduce it. Resistor R5 can be omitted if desired; it just gives the circuit a slight amount of hysteresis for a "snap-action" response. Be aware that with a cheap-and-dirty circuit like this, the trip voltage is going to change a bit with temperature, to the tune of roughly -0.3% per degree celsius. This may or may not be acceptable depending on your needs. Hope this helps a bit... DD --Boundary_(ID_P7aS37tfu8RqhkTODIhf6A) Content-type: image/gif; name=lowbatt.gif Content-transfer-encoding: base64 Content-disposition: attachment; filename=lowbatt.gif R0lGODlhCgEOAYAAAAAAAP///yH5BAEAAAEALAAAAAAKAQ4BAAL+jI+py+0Po5y02ouz3rz7D4bi SJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpWAJmDxXEqnqWjAamhSt9wQFnvtiseYbwJM TqsVZgR6DU9b0e+4nesE5+v3vv8PGCg4SFho6AW1l+V02FjzBnnA50h5EsnmVqm5AskombkZanJ5 Bip6ioipGoba+rEXBbuo5Vpre4ubq7vL2+v7C8zUoJcnWRx8S7tqrHzliVz7bOrW7DwJXXk8neWc WY0tqrg998kN3ipbbl5K2LZ+Ti3OOr8d6H4hHQ0b+67eblrtSb551x7IE3Iwwj4tBQ/xG0fOH70K CYFU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pFFtyehens57fj36aw/XLRcMRu9UE2mlzwuXh7mbv6Jp895ZielI4QZnjLIflmU3r LjmgMxPP38SHKbX0vkq+pJQaXWIj7XYjL0PR49f7fEsDGi/x4wzupz7zAL2st99U9H7gF+bv671c LSVraDsZswKImLYVUGm2kl+2znYaBtYNfSuDIG7ShjIEsgB+bjtfBQnoKo6F0ILfGhnYWnfCIq1v gwocode4JLr3TPCDKvwXC0k4LsoxbnGrweHbjnQ9HfYQhA8kCpd8R5a5lI4Tn5ucNWJYGeEs0TGx 4yD+blaHxZBoMBlTrEIVpfg6xdkOZuITFougY8Kl6Qp44sPOnADHjfCFTWjNQxItmqcgOB6RexWz UB6z9IkgWiN77RMeH38BtVK4x19GIV/wFmTFCKYQkuyD47TqIUcU0vCJ9bvj/c6Yv8Eh0XHpas4m 1UiyAaawgR7cnCY7uMoZwvKUrKSgK1H5MQl2y4El9KEue0lEi2DwgLzMYTCHmT7bfNGAGbSl0FrI zLlBM5qKmyY1IXe2g3SxS9fchRzbl8xutoU8h8PmL/sYKDS+LZZq85H+bnhOYtaLh/BkJ9kaFDoA JdKa8UyeL2/5zH+60J67fOcT3+g5cXoTkF+T0ff9+onONOJTewmF6FO+ZrhZXM6iAMSonB4SJIXa go1tQqghoyjSkaLHZaEsk8JSqtItOoafHDXnMWs6P4EOlJavFCZMA9fKgPb0gj9FXFB3istZAlSW CyRoM4/6wJviNIE6FapVmSpJnhbUmUitZS6dKk+uRnWOWV3qVr+q1XtCFZhkJepUSSlWtg7VrWCN aFyN2VafvnWcxVznXPVaV32k5BH84kRhbYPYxCqWMySJ10j40tjFSnaylPVDRq6oyrospLKc7axn yRDGqECRcKP9rGlPi9rUqna1rG2ta18L29jKdra0ra1tb4vb3Op2t7ztrW9/C9zgCne4MygAAAA7 --Boundary_(ID_P7aS37tfu8RqhkTODIhf6A)-- -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.