Power Analyzer

Measuring power line voltage and power consumption can be accomplished with cheap power point line monitors. However, when it comes to extracting those measurement to put into to a computer the price heads in to the stratosphere.

For a mere hand full of dollars you can build your own and even have a certified electrician connect it up in the in the meter box. With the arrival of the Raspberry Pi Zero with WiFi connectivity it's even low risk as an electrical fault can't blow up your computers.

The power analyzer is composed of:

1) Raspberry Pi Zero W (wifi)
2) Audio input board supporting LineIn standard
3) Plugpack 5 volt
4) 240 to 9v cetre tapped voltage sensing transformer (the cause of some issues)
5) Rasbian
6) ALSA audio
7) Apache httpd (you're talking to it right now to see the waveform - below).

Problem with the waveform is possibly related to the iron core in the transformer. I'm looking for some expert opinion on the subject. I don't think it's the audio processing but you never know.

OK so the expert opinion is that this waveform is actually pretty good. Here is a video of a "shit" waveform out of London.

Spectral analysis

Raspberry Pi - Accelerating Fourier transforms using the GPU: ( Click link )

This should work on the Raspberry Pi Zero since it's pretty much a Pi 1.