PocketLab user Martin Isaksson used his PocketLab to measure the magnetic field generated by the motor of a washing machine. Check out his results below. Pretty cool!
Washing apparatus ready detection
Using a PocketLab put on the top of a washing machine, we measure the magnetic field generated by the motor. The magnitude of this vector is used to detect if the motor is on, and when the motor has been off for some time, we say that the cycle is finished.
Read data from PocketLab CSV and calculate magnitude from x, y, and z components. Then use an Exponential Moving Average filter to remove the trend (seems like the sensor does not return to zero when the washing machine motor turns off).
Rearrange and plot x, y and z components.
Plot the magnitude
Plot the magnitude trend
Plot the adjusted magnitude (removed magnitude trend).
Plot the normalized absolute magnitude.
Using zero as a threshold, plot on or off status.