View on GitHub

pxt-orientbit

MINT Genie OrientBit extension can be used with the breakout board with blocks or functions for communicating with FC-03 wheel encoder, MPU9250 IMU, TCS34725, moving towards a given direction heading and microbit gpio. This is beta version.

Open this page at https://mintgenie.github.io/pxt-orientbit/

image image

Here is the OrientBit - used to change the orientation of MicroBit on certain Robots so that the built-in Compass can be used. It can also be used to add a I2C OLED Display (SSD1306), 2 Wheel encoders, a TCS34725 color sensor and MPU9250 IMU.

Use this extension along with https://github.com/fizban99/microbit_ssd1306 for OLED

Usage Example 1: Here is an example implementation of reading out the Number of Rotations of wheel from the Encoder and displaying it on the OLED Display - image

Usage Example 2: Here is an example of using the Maqueen extension and with the onboard Compass to orient the Maqueen to a particular direction - image link: https://makecode.microbit.org/_fuP0f2UTicXt The course correct block returns 2 values as an array which are each the speeds of left and right motors.

Use as Extension

This repository can be added as an extension in MakeCode.

Edit this project Build status badge

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Metadata (used for search, rendering)