Skip to content

Remote controller code for omni:bit controller car

Notifications You must be signed in to change notification settings

timnew/omni_bit_remote

Repository files navigation

Open this page at https://timnew.github.io/omni_bit_remote/

Introduction

This is project for to control a Mecanum Wheel robot car with a remote controller communicated via MicroBit bluetooth protocol.

The whole project requires:

The software part contains 2 projects:

What is the difference from the offical solution

  • It is similar to the offical solution at the core, but is more elegent and graceful.
  • It inherits the responsiveness from the official solution, no response delay.
  • It reads the joystick analog reading on the control pad, and control the car with analog signal. So you can control the speed or the car with joy stick, also allow you to move the car in any direction as joystick points.
  • This project redsign the communication protocol, it depends on MicrBit's built-in key value pair signal instead of the clucky string based protocol.
  • By dropping the clucky string protocol, code is hugely simplifed.
  • The right buttons also controls the car to move forward and backward at full speed.
  • Button control and joystick control can seamlessly works at the same time.

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)

  • 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>