Skip to content

This project allows remote control of motors and servos using a Micro:bit via Bluetooth. Commands like "up", "down", "left", "right", "stop", and "servo" are sent over Bluetooth to control motion and servo angles in real-time.

Notifications You must be signed in to change notification settings

ALNezar/Micro-bit-Bluetooth-Motor-Control-Robocon-I-Coursework-

Repository files navigation

Bluetooth Motor & Servo Control with BBC Micro:bit

This project was developed as part of UQD10801 – ROBOCON I coursework.
It demonstrates real-time hardware control using a BBC Micro:bit, receiving commands over Bluetooth and driving DC motors and a servo.


Overview

The Micro:bit interprets UART commands over Bluetooth (e.g., up, down, left, right, stop) and converts them into PWM and digital signals to control motors and a servo.
This setup can be used to control small robotic vehicles or prototypes requiring simple remote actuation.

Features

  • Bluetooth UART command handling
  • PWM-based DC motor speed and direction control
  • Servo angle control
  • Real-time response suitable for small robotic platforms

Hardware Example

Micro:bit motor driver wiring

BBC Micro:bit starter kit used for the project.

Prototype robotic vehicle

  • vehicle*

Development Environment

  • Platform: Microsoft MakeCode (TypeScript)
  • Target Device: BBC Micro:bit
  • Hardware: DC motors, standard hobby servo, motor driver module

Getting Started

To explore or modify the firmware:

  1. Go to MakeCode for Micro:bit
  2. Click Import → Import URL
  3. Paste: https://github.com/alnezar/kart-microbit-motor-control
  4. Open the project and view or edit the code directly in the browser

Key Learnings

  • Parsing and handling Bluetooth UART commands on a constrained device
  • Implementing PWM for motor speed and servo angle control
  • Understanding timing and responsiveness limitations of Micro:bit hardware
  • Basic integration of software commands to physical actions

About

This project allows remote control of motors and servos using a Micro:bit via Bluetooth. Commands like "up", "down", "left", "right", "stop", and "servo" are sent over Bluetooth to control motion and servo angles in real-time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published