Cellphone Logging of Relative Power Line Noise

The typical method of determining the source of power line noise involves the use of a directional antenna (typically a yagi) and a VHF or UHF AM receiver. Though power line noise typically causes problems on HF, the detection of the source is done on VHF or UHF because at HF frequencies the power lines act as a large antenna with standing waves causing there to be high field strengths at locations other than the source. Due to length, the power line is not a good antenna for VHF or UHF, so the highest field strength comes from the source instead of somewhere else. Another possible method of locating the source of the power line noise is to map the field strength of the power line noise. The source is then identified as the location on the map with the highest field strength. The web applications on this page capture the level of power line noise along with GPS coordinates (and other data), then map the noise level contours to reveal the noise source.

This project started in the DSP Terminal Unit. The relative noise concept was developed for the DSP TU and is described below. But perhaps more interesting than the noise at a fixed point is how the noise varies with position. If we can map the relative power line noise level, we can probably determine the source of the noise. A cellphone has a GPS receiver in it and the browser can run DSP code in javascript, so the cellphone is the ideal candidate for mapping the noise level. The code was generated by Google Gemini in this AI conversation.

For more on power line noise, including audio samples, scope photos, links to further resources, etc. click here.

Power line noise has a distinctive 120 Hz (in the US, 100 Hz in some countries) buzz to it. However, receivers often have a 300 Hz high pass filter in the audio (or in the sideband filter), so there is no 120 Hz component present. We can think of the noise source (whether due to arcing or a noisy switch mode power supply that generates noise on the AC line peaks) as a noise generator (such as an arc transmitter) that is keyed 120 times a second (or 100 times a second in 50 Hz regions). On the receiver output, this appears as noise bursts 120 times per second.

The block diagram at the right illustrates the DSP code used to quantify power line noise measurement. The block diagram includes the ADC used in the DSP Terminal Unit. The cellphone also has an ADC in its audio codec. Javascript code reads the ADC and converts it to a stream of floating point numbers that are then passed through the javascript DSP functions as shown in the block diagram.

The digital audio samples are passed through a 300 Hz high pass filter to remove any DC bias. The resulting audio samples are passed through a full wave rectifier (fabs() function). This is envelope detection or AM detection of the wide band noise from the receiver. The FW rectifier drives a 1 Hz low pass filter whose output is the average (not RMS) of the wide band noise. The output of the full wave rectifier also drives a 120 Hz bandpass filter (100 Hz for 50 Hz countries) with a Q of 10. The output of this filter is the 120 Hz component of the "demodulated" noise. The bandpass filter output is run through another full wave rectifier and 1 Hz low pass filter to determine the relative amplitude of the power line noise (120 Hz component in the "demodulated" noise). Finally, the ratio of the Power Line Noise to the Wide Band Noise is determined and output to the user.

The use of the PLN Ratio makes the directional characteristics of the receive antenna, AGC settings, etc. irrelevant. The PLN ratio compares the noise generated by power lines (noise bursts at 120 times per second or 100 times per second) to the broadband noise. A higher ratio indicates worse power line noise.

PLN Mapper captures the time, latitude, longitude, location accuracy in meters, the PLN ratio (above described narrow band noise level divided by wide band noise level), the narrow and wide levels, the peak level, and the input gain setting. This data is captured each second into a CSV file.

In my installation, I have a 3.5 mm TRS cable plugged into the headphone jack on the back of the IC-7100 control head. The other end of this cable plugs into a 3.5 mm Y adapter (two 3.5 mm female jacks to one 3.5 mm male plug). The 3.5 mm male plug is plugged into the AUX jack for the car radio. Running the audio through the car radio eliminates the issue of the IC-7100 shutting down due to voltage drop on the cable to the transceiver when the audio volume is high. Another 3.5 mm TRS cable is connected to the microphone jack on the TRRS to dual TRS adapter. The TRRS plug is then plugged into the cellphone.

Reasonable results can probably be accomplished by acoustically coupling the receiver audio to the cellphone microphone. Just set the cellphone near the receiver speaker, adjust the audio levels as necessary, and start capturing data. I expect the electrical connection described above to yield better data, but acoustic coupling may be fine.

The IC-7100 was set to about 150 MHz AM. The mapper gain (top right corner) was set to 1x Gain. The IC-7100 audio gain was adjusted to provide a valid level into the Mapper software on the cellphone. The bargraph is green if the level is good. Too high a level results in a red bar and audio clipping. The line frequncy (60 Hz for US) is also set on the top right corner of the screen. Once a reasonable audio level is set, click Start Monitoring and drive around.

If your mobile transceiver does not support AM on VHF, you could use an aircraft band portable receiver to get AM demodulation of a VHF frequency.

PLN-Contour imports the the CSV file generated by PLN-Mapper. Using the PLN Ratio values and the GPS coordinates, it draws noise contours on the map. The sample map at the right shows a drive through my neighborhood. The highest noise level is when the car is immediately under a motion activated light in the carport. Luckily, the level is low enough that it is not audible on my HF receiver in our house when driven by the vertical antenna in the front yard.

To get the files from my cellphone to my desktop computer, I copied the files from the cellphone to Google Drive. I then accessed them from Google Drive to import them into PLN-Contour. You can, of course, use any other method available to get files from the phone to your desktop or laptop computer, such as a USB file transfer, etc.

The Choose Files button brings up a file browser that lets you select files on your local computer. If more than one is selected, the files are concatenated. This can be used to combine the data from several runs, expanding the coverage area of the study. In addition, files on the server can be loaded using the files= query. Browsers generally only allow the fetch to be from the same domain name that provided the javascript, so, unfortunately, your PLN runs cannot be loaded through the files query. But, if there is interest, people can submit their CSV files, and I'll add them to the W6IWI server. We can PLN map the world through contributed CSV files.

Cellphone Power Line Noise Mapper