GithubHelp home page GithubHelp logo

guillaumejenkins / pxt-motorbit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tinkertanker/pxt-motorbit

0.0 1.0 0.0 172 KB

ElecFreaks MakeCode motor:bit package for micro:bit. Works with motor driver boards too.

License: MIT License

TypeScript 100.00%

pxt-motorbit's Introduction

Motor:bit Package

This ElecFreaks Motor:bit package was developed by ElecFreaks with minor assistance from Tinkercademy.

The ElecFreaks Motor:bit is an integrated motor driver and breakout board for the BBC micro:bit. With an integrated motor driver chip TB6612, your micro:bit can drive two DC motors with 1.2A max single channel current.

The Motor:bit also features the Octopus series "GVS" connectors, allowing for easy direct connection to compatible Octopus sensors and outputs. Among these connectors, P0, P3-P7, P9-P10 support sensors with 3.3V power voltage only; P13-P16, P19-P20 support 3.3V or 5V sensors. You can change the output voltage by sliding the switch on the board.

If you're using your own breakout board or motor driver, connect your driver such that P8 and P12 control direction, and P1 and P2 control speed.

User Guide

ELECFREAKS Motor:bit User Guide

Code Example

basic.forever(() => {
    motorbit.forward(70)
    basic.pause(2000)
    motorbit.back(50)
    basic.pause(2000)
    motorbit.turnleft(50)
    basic.pause(2000)
    motorbit.turnright(50)
    basic.pause(2000)
    motorbit.brake()
    basic.pause(2000)
    motorbit.freestyle(-40, 30)
    basic.pause(2000)
})

License

MIT

Supported targets

for PXT/microbit (The metadata above is needed for package search.)

pxt-motorbit's People

Contributors

elecfreaks1 avatar lvsongsongsong avatar yjsoon avatar

Watchers

 avatar

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.