Linux Duracell CPU Load Monitor
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."
The amazing Linux Duracell CPU load monitor
:
:
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
A pity that Duracell seems to not be interested in putting these testers on their batteries or in their packaging anymore. Saw a whole rack expiring March 2010 with not a single tester.
Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
So that's how they does it. I personally use my mouth. I'm sure I'll regret it someday.
clifgriffin > blog
I haven't seen a tester for months, on any kind of battery. I don't think they are being made anymore, does anyone else know otherwise? I thought a gauge like that would be great for cpu physical temperature as well.
stuff |
They must be using the batteries to run the site. Slashdotted already.
less than 5 posts and the French webserver has already surrendered.
that's hosting that website, or this could be the first slashdotting to start a small fire.
Are you happy now? Y'all have slashdotted a battery.
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."
[
It's neat, but rather than skin a battery, I wonder if those same things which were, and maybe still are, in the plastic packaging would be easier to work with
A feeling of having made the same mistake before: Deja Foobar
... to keep our French friend's bandwidth down... ;)
http://home.cfl.rr.com/fnords/duracell_cpumon/
I hope my ISP doesn't kill me...
In case the site shuts down under the load, I've mirrored the page (including the Video,) to our SQ7.org project server.
Mirror
Good luck, and a cool project. A Hacker in the coolest sense of the word.
Colin Davis
The only battery affordable meter we had was for 9 volt batteries. And it was your tongue! And we liked the small spark it gave you to tell you it was working!
"His design is utterly revolting!"
"Shocking!"
"If I add more power, can I overclock it?"
"An electrifying hack!"
"More power to him."
If "disco" means "I learn" in Latin, does "discothèque" mean "I learn technology"?
I find this to be amusing and all, however pretty pointless. These strips take almost a full two seconds to register a full change. Spikes in usage (good to know sometimes) will be completely missed. Plus I am willing to bet you need to recalibrate it often if your room temp changes by more than a few degrees.
I would have RTFA, however it seemed to be down at the moment.
Sigs? We don't need no stinking sigs!
such as Gkrellm, which is available for Linux, FreeBSD, Mac OS X, Net BSD, OpenBSD, Solaris, and Windows... if you install gtk, gdk, glib, etc.
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...
Many of you complain about the missing tester on newer batteries - but be honest
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....
Spelling mistakes: My is english spoken not tongue of mother.
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!!
Ignore the "p2p is theft" trolls, they're just uninformed
OK, this is neat, but WHY?
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?
www.eFax.com are spammers
For cpu load average, I run System Monitor. It displays a pretty bar graph in the panel at the stop of my screen.
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
Where law ends, tyranny begins -- William Pitt
"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."
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
The activiation temperature of battery testers is a pleasantly toasty 100-120 F.
Two wrongs don't make a right, but three lefts do.
one day I noticed the icemaker in our freezer made the sound it does before it drops the cubes into the bucket. So, I looked in to see if I could watch it work... then I noticed that an extra metal tube went under the ice cube mold. I thought, wow, that's kinda neat - they must circulate a little extra freon through there to make sure the cubes are super-cold*. So, I decided to touch it to see how cold it was. It turns out that it wasn't a cooler, but a heating element that was used to slightly melt the edge of the cubes to release them from the mold. And it was very hot.
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)
HIV Crosses Species Barrier... into Muppets
Hope he didn't build a set to measure his throughput. It might overflow and explode.
You put a wet finger on the negative end and touch the postive end with your tongue. For 1.5 volt batteries only. Don't try this on 90 volt batteries.
You used to be able to purchase those strips for a buck, although they were much better than the lousy ones they stuck onto the batteries.
I'm a 2000 man.
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 and a temperature sensor such as the LM135. 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 ;)
...would be measuring the battery life of my laptop. (Stupid APM kernel oopses.) Just think: using a battery tester to... test... a battery!
It is now official - Netcraft has confirmed: Duracell is dying
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
GNAA rocks - cumming to your town soon!
I wonder if the CPU meter is showing max load now?
Next!
A feeling of having made the same mistake before: Deja Foobar
OK, this is neat, but WHY?
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.
My beliefs do not require that you agree with them.
For those of you who noticed the site's not available, there's a little bar graph on their server.
Here's a live feed:
E |==============X| F
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.
Please help metamoderate.
Hmmm, the circuit looks like it will work, but it's rather overdone... You don't need the optoisolator, or the first transistor, just use a plain old 3 amp MOSFET. And then you don't need the diodes or the switches and you can lower the supply voltage to 1.5 volts, as the MOSFET is a near-perfect switch. I havent tried it yet, but it looks like you can replace the whole shebang with a 100K resistor, a power MOSFET, and a 1.5 volt D cell.
If I was a heatsink manufacturer, I'd .....
;-)
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
You are in a twisty maze of processor lines, all alike.
There is a lot of hype here.