Measuring magnetic field of washing machine motor using PocketLab

 

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

Martin Isaksson

Abstract

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.

Checkpoint

Libraries

Read data

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).



timexyzmagnitude
0.000.06103520.0610352-0.30517580.3171480
0.020.0610352-0.0305176-0.12207030.1398491
0.080.15258790.0915527-0.33569340.3799408
0.160.03051760.12207030.06103520.1398491
0.260.00000000.0305176-0.03051760.0431584
0.360.00000000.0000000-0.39672850.3967285



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.

Attachments

Photos (14)

Robert Douthitt
Director of Curriculum and Community Engagement
thepocketlab.com

Add Comment

Comments (0)

×
×
×
×