Meowbit’s Accelerometer

Meowbit has a built-in accelerometer for measuring rotation and acceleration of the device, as well as detecting different gestures.

../../_images/accel6.png

MakeCode Arcade Coding Tutorial

../../_images/acbanner1.png

Load Controller Extension

Blocks for Controller Extension

../../_images/light2_1.png

Detecting rotation

../../_images/accel1_1.png

The rotation value ranges from 0 to 1023.

Sample Code Link

Detecting gestures

../../_images/accel2_1.png

Sample Code Link

Kittenblock Coding Tutorial

mainBoard/functional_module/PWmodules/images/kbbanner.png

Blocks for onboard sensors

../../_images/kb10_1.png

Getting the acceleration

../../_images/accel3_1.png

Getting the rotational acceleration

../../_images/accel4_1.png

Getting the tilting degree

../../_images/accel5_1.png

../../_images/accel7.png ../../_images/accel8.png

Detecting gestures

The gestures can be detected in 2 ways.

../../_images/accel9_1.png

../../_images/accel10_1.png