SAW MACHINE
SAW MACHINE
Use accelerometer to control the movement of DC motor.
Start an event handler (part of the program that will run when something happens). This handler works when you do a gesture (like shaking the micro:bit).
On Shake
An accelerometer is a tool that measures proper acceleration across 3 axes. Proper acceleration is the acceleration (the rate of change of velocity) of a body.
Accelerometer can used to detect shaking event or position of an object. Accelerometer are widely used in smartphone's screen orientation, car cash detection and drone stabilization.