Linux Duracell CPU Load Monitor 327
Nixon8Pie writes "Know those little self-testing batteries? How would you like to monitor your computers load with them? Well, now ya can. 'These throwaway testers are quite clever: they use a layer of conductive ink that heats up when an electrical current runs through it, in combination with a layer of thermally-activated dye that turns transparent when heated up, revealing a third layer of colored ink underneath. Because the layers are printed with varying thickness from "0%" to "100%", parts of them become yellow before others, creating a bargraph effect that varies with the current applied, the battery's body itself sinking the heat produced by the conductive ink.' Pretty cool stuff."
Text of Page (Score:4, Informative)
Turning an AA on-battery tester into a CPU load monitor for Linux
You probably know those onboard testers found on Energizer and Duracell batteries : press the two white dots printed on the wrapper, and magically the battery's state appears on a yellow bar. No need for a separate battery tester, everything is included on the battery itself. While not very precise, it's good enough to know if a battery is brand new, so-so, or completely dead.
These throwaway testers are quite clever : they use a layer of conductive ink that heats up when an electrical current runs through it, in combination with a layer of thermally-activated dye that turns transparent when heated up, revealing a third layer of colored ink underneath. Because the layers are printed with varying thickness from "0%" to "100%", parts of them become yellow before others, creating a bargraph effect that varies with the current applied, the battery's body itself sinking the heat produced by the conductive ink. Informative details about those testers can be found here
HowStuffWorks
The Duracell Battery Tester
AA Battery Tester
Here are instructions to turn such a tester into a not-so-precise analog display to monitor the CPU load on a Linux system, controlled by a serial port.
What you need
# An AA Duracell battery with a tester. Energizer testers should work too, but I haven't tried. I got a pack of Duracell Ultra M3 batteries, product code LR6-MN1500.
# 1 x 3V power cube
# 1 x 2 KOhm resistor
# 1 x 4.7 KOhm resistor
# 1 x 10 KOhm resistor
# 1 x 4N25 or CNY17 optocoupler
# 1 x BC547A or 2N2222A transistor
# 1 x TIP41C transistor
# 2 x 1N4004 diode
# 3 x ON/OFF switche
# 1 x female DB9 connector
# 1 x large-ish breadboard
# 1 x clear plexiglas CD case
# 100 x patience
Instructions to make the display
Cleanly unwrap the tester off the AA battery. Be careful not to pull on any one side too hard, or you'll warp it and it'll be that much harder to connect on the breadboard. Personally, I lift both corners, gently unroll it on 3/4 mm, then use a knife and my thumb to finish taking it off the battery with an even pull. Here's what it should look like, before trimming the warped bit of the packaging
Here's the really hard bit : making a somewhat reliable connection between the tester's conductive ink points and the rest of the circuitry. To do that, place the tester on the breadboard, near the upper edge, and mark out precisely the breadboard holes the wrapper's white dots fall on. Spend some time aligning the right white dot (on the "minus" side), as the patch of conductive ink there is very thin and right on the edge of the tester. The dot on the left ("plus") side is less problematic.
To make the connectors, solder bits of "hairy" copper wire (like that found on common mains electrical cords) in the holes you marked, and leave the "hairs" sticking out where the tester will be installed. They'll help make a correct electrical contact with the tester's conductive ink. Cut out a piece of clear plexiglas from the CD case, tape one edge to the upper edge of the breadboard, and punch a small hole near the bottom edge. This makes a window to hold the tester and press it flat against the breadboad and the connector.
Solder the circuit's components at the bottom of the breadboard, under the window (there should be about 3 cm worth of breadboard left there). Here's the circuit's schematic:
Notice the 2 switches around the 1N4004 diodes : those diodes are there to reduce the voltage fed to the tester, but depending on the individual tester and the quality of the contacts with the conductive ink, you might need to overload the tester a bit to reach 100%, or make it more reactive. With the switches, you can short one or both diodes, adding 0.6V per shorted diode.
Once the circuit is done, feed it 3V and close all the switches. Then carefully align the tester on
Re:Text of Page (Score:5, Informative)
here [ttldkns.ath.cx]
A pity... (Score:5, Interesting)
Re:A pity... (Score:5, Interesting)
Re:A pity... (Score:5, Insightful)
Probably because the public isn't entirely stupid (Score:5, Insightful)
I'd guess it's because people weren't as stupid as the battery companies thought they were. Most people know full well the strip works by heating up, and that wastes the power of the battery.
On top of that, it's redundant; most consumer devices have battery gauges, the gauge can't be used when it's in the device, and when it runs out- you usually either have spares, or a quick trip to the quik-mart fixes the problem. That means that something that cost money to put on the battery was now raising the cost on the shelf versus the competition, or eating into the profit margin.
Not to mention, non-rechargeable batteries are useless to most product designers, because the devices are way too a)small and b)power hungry.
Ah-may-zing (Score:5, Funny)
Re:Ah-may-zing (Score:5, Funny)
Tongue as battery tester. (Score:5, Funny)
Re:Tongue as battery tester. (Score:2)
I've never had the opportunity or incliniation to attempt this oral test method on any of the cylindrical styles (AAA - D)
BTW, what ever happened to single-A and B batteries?
AAA - little tiny remote batteries
AA - smaller, walkman sized
C - medium, tape decks, etc (good for hiding in your fist to hit someone)
D - full-size flashlight size
Re:Tongue as battery tester. (Score:5, Funny)
I'm serious.
Thats the only reason they exist.
Re:Tongue as battery tester. (Score:3, Funny)
Re:Tongue as battery tester. (Score:5, Funny)
Re:Tongue as battery tester. (Score:2, Funny)
Re:Ah-may-zing (Score:2, Funny)
Re:Ah-may-zing (Score:5, Funny)
Re:Ah-may-zing (Score:2, Funny)
Re:Ah-may-zing (Score:2)
I can get a D battery that way. It is not too difficult. It helps to tell yourself the current makes it sterile and non gross as you make out with the battery. Otherwise it may make you feel sick to think about where it has been.
Re:Ah-may-zing (Score:5, Funny)
It helps to tell yourself the current makes it sterile and non gross as you make out with the battery.
Am I the only one that read that as "makes you sterile"?
Re:Ah-may-zing (Score:3, Funny)
Re:Ah-may-zing (Score:3, Funny)
Re:Ah-may-zing (Score:2, Insightful)
Re:Ah-may-zing (Score:5, Funny)
Re:Ah-may-zing (Score:2, Funny)
Re:Ah-may-zing (Score:3, Funny)
Re:Ah-may-zing (Score:2, Interesting)
Re:Ah-may-zing (Score:5, Funny)
When I was a kid the Goldblatts department store would advertise very-very-cheap almost-dead-when-they-cross-the-dock loss leader imported 9 volt batteries for 9 cents.
I bought two 10 pack boxes of them for a couple bucks, rusehd home, and connected them in series by snapping them together + to - to + ... in a lattice arrangement.
Once I had all 20 together... and knowing that I had, *gasp* 180 VOLTS! at my disposal ... I connected some wires to from the ends to a 25 watt 117VAC household light bulb and marvelled as it lit up brightly and then dimmed as it drained the batteries completely in a minute or two.
END --- Pathetic Geek story
Re:Ah-may-zing (Score:4, Informative)
Re:Ah-may-zing (Score:5, Funny)
WOW! now THAT was a JOLT! I would NOT recommend it to anyone. Save your tongue and find a telephone line tester!
as a geek, you live and learn, you live and learn, I guess.
Re:Ah-may-zing (Score:5, Funny)
Re:Ah-may-zing (Score:5, Informative)
Re:Ah-may-zing (Score:3, Informative)
I assure you you're wrong about the voltage. Cisco has 48VDC options on much of their equipment for a reason.
Re:Ah-may-zing (Score:3)
Once in college, the moron (for many, many reasons) physics teacher pulled out a fist-sized capacitor and dared one of the pupils up front to lick the terminals. I just barely managed to stop him by ripping the capacitor out of the teacher's hands and stick it to the metal crank of the pencil sharpener instead. It fused to it. Everyone suddenly went very, very pale.
Re:Ah-may-zing (Score:4, Funny)
Once, many years ago, a friend and I were in his parent's basement racing slotcars. He put his head on the track so he could watch his car zoom away, and the track lightly shocked his ear. Of course, as a regular test-the-9-volt-on-his-tongue kind of kid, he immediately had to try sticking his tongue to the track. Idiot.
No more for Duracell or others? (Score:3, Interesting)
Re:No more for Duracell or others? (Score:4, Informative)
Re:No more for Duracell or others? (Score:5, Informative)
Plus, since when is a clever hack not worthwhile just for the sake of doing it? I think it's neat. Next to worthless, but definitely neat.
You answered your own question (Score:2, Funny)
Next!
Wow (Score:4, Funny)
Re:Wow (Score:2, Funny)
Instantly slashdotted (Score:5, Funny)
Re:Instantly slashdotted (Score:5, Informative)
ps the admin is pcoupard at easyconnect.fr, so send him money to buy a bigger webserver. Or if you just want to mock the french.
And more importantly, the link to download the driver for the monitor is http://webperso.easyconnect.fr/om.the/web/duracel
battery/CPU meter (Score:2, Funny)
I hope he doesn't have one of those on the server (Score:5, Funny)
Are you happy now? Y'all have slashdotted a battery.
Frying the tester (Score:2)
Man, I hate when I forget to unshort my pins and I get majorly fried. It totally sucks...
Marketing Genius (Score:5, Interesting)
When those little battery testers first came out, I thought it was pure marketing genius. Not for the convenience, but for the self-depleting consumable. It ranks right up there with Caller ID.
"Here's a battery which you can wear out, even before you put it in your flashlight! You don't have to worry about shelf-life or temperature anymore, just squeeze the ends and you have a dead battery. No muss, no fuss, just two minutes from package to trashcan."
The Caller ID, in its original implementation, though... sheer brilliance. "Let's make them pay to see the information that's already sent to the the switchbox! And if they don't like that, make them pay to HIDE the information on the switchbox. But that doesn't really hide it, it just flags it, so make them pay to see the HIDDEN information, or make them pay to REALLY hide it. We can go on like this forever."
you're no genius (Score:5, Informative)
what are you talking about?
You can't drain the whole battery with a voltage tester in two minutes. It would take half an hour if you just shorted it out to drain it.
OBVIOUSLY, the tester is there to check to see if those batteries you threw in the drawer months ago are still good.
DUH
Re:you're no genius (Score:2, Informative)
New Yorkers rejoicing with this news... (Score:2)
Re:New Yorkers rejoicing with this news... (Score:2)
How about a /. effect monitor? (Score:3, Insightful)
A Mirror (Score:5, Informative)
http://home.cfl.rr.com/fnords/duracell_cpumon/ [rr.com]
I hope my ISP doesn't kill me...
Comment removed (Score:5, Informative)
/. effect tester (Score:2)
When I was a kid (Score:5, Funny)
Re:When I was a kid (Score:5, Funny)
Re:When I was a kid (Score:2, Funny)
Re:When I was a kid (Score:2, Funny)
Ah that's why (Score:2, Redundant)
that reminds me of a funny story... (Score:5, Funny)
That's how I burned my finger in a freezer.
(* I was thinking that didn't make too much sense because I knew icemakers were often add-on features, and replumbing the freon would be too complicated to do for an accessory)
The obvious puns (Score:5, Funny)
"Shocking!"
"If I add more power, can I overclock it?"
"An electrifying hack!"
"More power to him."
Re:The obvious puns (Score:5, Funny)
Re:The obvious puns (Score:2, Funny)
Useless on a quickly varying load. (Score:5, Insightful)
I would have RTFA, however it seemed to be down at the moment.
Comment removed (Score:5, Funny)
Re:Useless on a quickly varying load. (Score:2, Informative)
The load avg. on unix machines filter out 'spikes'
Re:Useless on a quickly varying load. (Score:2)
Re:Useless on a quickly varying load. (Score:2)
Damn, you beat me to it...
Actually, I had an LED bar in mind, rather than an LCD (better visibility in the dark), but same idea - More precise, costs about the same as a 4-pack of batteries, instant response, and WAY less kludgy.
Still, I have to admit, finding a use for the testers on a dead battery has a fairly high level of geeky coolness.
Or you can use software... (Score:3, Informative)
But a cheap hardware solution *is* pretty cool.
Now, if you could hook one of those Duracell indicators up to your date for the evening...
Re:Or you can use software... (Score:2)
Re:Or you can use software... (Score:3, Interesting)
Put it on top of your stereo or in your cabinet and be the uber-geek (mine's right next to [njit.edu] my PC so it m
Re:Or you can use software... (Score:2)
Driver that converts the load to one of 8 value ranges, raises one pin on the port for the value range in play, lowers the rest. The port value is latched and used to drive an LED.
Gideontech.com has a project for a hard-disc VU meter; with an analogue CPU-use signal, it could be adapted
Missing tester on batteries (Score:2, Interesting)
Who ever used these things ?
I for one did't and I don't know anyone who did.
Whats the point in measuring the power of throw-away batterys anyway ? On rechargeable batterys this would be useful but not on throw-aways....
Re:Missing tester on batteries (Score:2)
Re:Missing tester on batteries (Score:2)
Reading your manual will reveal that you should replace ALL of them at the SAME time. An imbalanced load can (probably won't, but can) cause battery leakage, explosions (not likely, unless you have multiple lithium ion rechargables, and you sit on it for ten hours simultaneously shorting the whole circut, in which case you are a nutjob (for buying rechargable lithiums for a remote (unless it has an LCD screen) not for sitting on the remote (unless is does have an LCD screen).
Re:Missing tester on batteries (Score:3, Insightful)
Re:Missing tester on batteries (Score:2)
Old School ... (Score:5, Interesting)
This is exactly what brings me to the nostalgia of what I like to see on slashdot, a story about some guy who attached some wires to a battery tester and then made a LINUX program to pop out the correct varying voltage to display on the battery itself.
This is cool, and you want to know why? Its innovative, sometimes we go so long and things start to get stagnant that it takes these wonderfully clever people to come up with a new innovative way to do something. Is it practical, well no, but that doesnt mean its not cool.
I for one would like to see more things like this and an SCO category so I can start to delete those stories from the front page. I like the true hacker stories, its fun to see how people are innovative. Really was something pleasant to read.
Good Show!!
Re:Old School ... (Score:3, Offtopic)
So, go here
Go down to "Exclude stories from the homepage", and under "Topics" check the box next to Caldera.
Then go all the way down and click "Save".
There. No more SCO stories for you.
Neat. But WHY? (Score:5, Insightful)
This same circuit could be adapted to:
Vary the brightness of a small light bulb.
Vary the speed of a small motor.
Drive an old-style swing needle meter.
(Variant of above) Drive a tachometer.
Heck, why not interface to a slot-car and have it go faster the higher your load average is?
Re:Neat. But WHY? (Score:2, Insightful)
You answered your own question.... (Score:4, Insightful)
This same circuit could be adapted to:
Vary the brightness of a small light bulb.
Vary the speed of a small motor.
Drive an old-style swing needle meter.
(Variant of above) Drive a tachometer.
Heck, why not interface to a slot-car and have it go faster the higher your load average is?
I am sure you can take his code and modify it to do just that if you like. (and that answers part of your WHY question). The other part is just "because". This is true hacking.
I do like the idea of an analog gauge to show the CPU load.
Re:Neat. But WHY? (Score:2)
How? Cool idea! Maybe even on the drivers stations.
Slot Cars in St. Louis, MO [mgpmrc.org]
System Monitor (Score:3, Insightful)
Cost for running system monitor: $0.0
Time for setting it up: 00:00:30
Cost for Duracell load monitor: $9.95
Time for setting up: 04:21:23
Re:System Monitor (Score:5, Funny)
Time for setting it up: 00:00:30
Cost for Duracell load monitor: $9.95
Time for setting up: 04:21:23
Slashdotting the French: Priceless.
Re:System Monitor (Score:3, Funny)
For everything else - there's Slashdot.
Temperature-sensitive Leucodyes (Score:5, Interesting)
Battery testers.. (Score:4, Interesting)
Another electronics idea (Score:5, Interesting)
Here's something I did to help visually monitor my CPU temperature (and it doesn't require any software). You could extend it to monitor the temperature of any part that tends to overheat.
Grab yourself a basic comparator such as the LM339 [national.com] and a temperature sensor such as the LM135 [national.com]. Make a circuit that compares the temperature sensor's voltage to a pre-defined threshold, and lights the LED if the temperature rises too much. The 'Typical Application' section of each datasheet pretty much shows you exactly how to wire up the parts.
You can put this circuit in your computer's case (run it off a spare +5 voltage connector) and use a spare LED you find, like the Turbo light ;)
More useful than measuring load... (Score:2, Interesting)
Re:More useful than measuring load... (Score:3, Interesting)
I note that some batteries (like the ones in my old Toshiba 486) had + and - clearly marked on the unit
Netcraft has confirmed: Duracell is dying (Score:3, Funny)
Yet another crippling bombshell hit the beleaguered Duracell community when
recently IDC confirmed that Duracell accounts for less than a fraction of 1
percent of all servers. Coming on the heels of the latest Netcraft
survey which plainly states that Duracell has lost more market share, this
news serves to reinforce what we've known all along. Duracell is collapsing
in complete disarray, as fittingly exemplified by failing dead last in
the recent Sys Admin comprehensive networking test.
You don't need to be a Kreskin to predict Duracell's
future. The hand writing is on the wall: Duracell faces a bleak future. In
fact there won't be any future at all for Duracell because Duracell is dying.
Things are looking very bad for Duracell. As many of us are already aware,
Duracell continues to lose market share. Brown ink flows like a river of
shit.
Let's keep to the facts and look at the rumors.
Cum laude Theo states that there are 7000 users of Duracell. How
many users of Caldera are there? Let's see. The number of SuSe versus
Caldera posts on Usenet is roughly in ratio of 5 to 1. Therefore there
are about 7000/5 = 1400 Caldera users. Connectiva posts on Usenet are about
half of the volume of Caldera posts. Therefore there are about 700 users
of nig cum. A recent article put TurboLinux at about 80 percent of the Duracell
market. Therefore there are (7000+1400+700)*4 = 36400 TurboLinux users.
This is consistent with the number of TurboLinux Usenet posts.
Due to the troubles of SCO, abysmal sales and so on, TurboLinux
went out of business and was taken over by SCO who sell another
troubled OS. Now SCO is also dead, its corpse turned over to yet
another charnel house.
All major surveys show that Duracell has steadily declined in market share.
Duracell is very sick and its long term survival prospects are very dim. If
Duracell is to survive at all it will be among OS hobbyist dabblers. Duracell
continues to decay. Nothing short of a miracle could save it at this
point in time. For all practical purposes, Duracell is dead.
Fact: Duracell is dead
in case you can't get to their site anymore... (Score:3, Funny)
Here's a live feed:
E |==============X| F
Get some thermochromic ink (Score:3, Funny)
1) Write on the side of your CPU heatsink the words "If you can see this , it's too hot!"
2) Paint that side with black thermochromic ink that changes temperature at 60 degrees C.
3) Profit!!!
Or, as the temperature drops from the bottom to the top of the heatsink, you could put things like "cool..." "warm..." "warmer..." "Hot..." "FUCK!" up the side of the heatsink. One glance and you'd know. Handy for those clear cases
Re:Well, (Score:2)
OT: Your sig... (Score:2)
GTRacer
- Nice Python ref, BTW
Wrong bunny (Score:2)
Chip H.
Re:Too Much Time (Score:5, Funny)
Re:new discovery (Score:2)
And to think they say there's never any interesting stuff on
Math (Score:2, Funny)
But... but... but... I like math AND destruction!