Skip to main content

Accelerometer Gyroscope


Introduction

Features

Accelerometer Gyroscope: Can accurately measure an object's angular velocity and acceleration, while real-time tracking of the object's rotation and tilting dynamics, ensuring precise motion sensing and smooth operation of devices.


Specifications

ItemParameter
NameAccelerometer Gyroscope
SKUEF16014
Connection TypeAnalog Output
Operating Voltage4.15V
Product Dimensions38.00mm × 28.20mm (Length × Width)

Appearance and Dimensions



Quick Start

Hardware Connection Diagram


Usage Tutorial

Programming Software

Microsoft MakeCode


MakeCode Programming

Step 1: How to Add Jacdac Extension

  1. Go to Microsoft MakeCode and click "New Project".

  1. Enter the project name in the pop-up window and click "Create".

  1. Click "Extensions" in the code drawer.

  1. Enter "Jacdac" in the pop-up interface and click the search icon. Select the Jacdac software library as shown.


Step 2:

  1. Connect the micro:bit to the computer using a data cable. Note: If the micro:bit is running a Jacdac program for the first time, please pre-install a blank Jacdac program on the micro:bit first; otherwise, skip this step.

  1. Connect the sensor. MakeCode will automatically recognize it and simulate its status. The sensor will provide real-time feedback in the simulation area.

  1. Click "ADD BLOCKS" for the sensor extension module. Note: When connecting a new sensor, repeat the operation of clicking "ADD BLOCKS" for the sensor extension module.


Program Example as Shown


https://makecode.microbit.org/_PPLLhc8vYHij

You can also download it via the embedded link:


Results

  • When the gyroscope tilts left, the micro:bit displays "×".
  • When it tilts right, the micro:bit displays "√".
  • When it tilts upward, the micro:bit displays "❤️".
  • When it tilts downward, the micro:bit displays "♡".
OSZAR »