Code Monkey home page Code Monkey logo

mintgenie / drive-by-compass Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.45 MB

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

Home Page: https://mintgenie.github.io/drive-by-compass/

License: MIT License

Ruby 0.60% Makefile 0.57% TypeScript 98.83%
mpu9250 tcs34725 gpio-pins smbus

drive-by-compass's Introduction

Open this page at https://mintgenie.github.io/drive-by-compass/

image

Here is the OrientBit - used to change the orientation of MicroBit on certain Robots so that the built-in Compass can be used.

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.

The Course_correct block is used for driving in the direction of a particular heading angle. This heading angle has to be passed as parameter to "preferred_heading". The Course_correct block returns an array of speeds for the left motor and right motor. Assign the value of array[0] to left motor and value of array[1] to right motor.

THe available functions are shown below:

image and image

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)

  • for PXT/microbit
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

drive-by-compass's People

Contributors

mintgenie avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

microbit-mark

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.