Perl uses a multimeter to report power consumption


Article from Issue 83/2007

Today’s digital multimeters can do more than measure current and voltage. Multimeters also measure capacity and temperature. An inexpensive multimeter can talk to your PC via the serial port, and simple Perl scripts let you read and visualize data in neat charts.

I was browsing a mail order catalog for electronics the other day when I noticed a couple of low-budget, digital multimeters with RS 232 interface. I discovered the MAS-345 model by Mastech on eBay for US$ 35 and quickly pressed the “buy-it-now” button.
When the device arrived, it came with just a Windows CD. After a quick search on the web, I discovered the Marsh project, which uses a bit of C code to address the Mastech MAS-345 among other multimeters.

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Saving Power

    Save power by choosing the right system and software configuration.

  • Charly's Column: Smart Meter Monitoring

    If you've been forced to deliver Linux magazines to pay for your last electric bill, we’ll help you discover why, assuming you have a state-of-the-art electricity meter.

  • Perl: Plotting GPS Data

    Perl hackers take to the hills with a navigation system that provides a graphical rendering of a hiking tour.

  • Perl: Arduino Project

    With a few lines of self-written firmware and a simple Perl script, Perlmeister Mike Schilli trains one of his Linux computers with a plugged in Arduino board to switch electrical equipment on and off using a relay. Enchanting.

  • Perl: Temperature Sensors

    Linux lets tinkerers connect their hardware creations to computers. We’ll show you how you can use a simple Perl interface to check the temperature of your home or office while you’re away.

comments powered by Disqus

Direct Download

Read full article as PDF: