Build an Autonomous Obstacle-Avoiding Robot Car Using MOTION:BIT

Build an Autonomous Obstacle-Avoiding Robot Car Using MOTION:BIT

Are you ready to meet the newest member of our family? Say hello to MOTION:BIT! This awesome micro:bit expansion board lets you create all kinds of robots with different movements and functions using DC motors and servo motors. In today's video, we'll show you how to make a super cool obstacle-avoiding robot car using MOTION:BIT!  So, let's get started and have some fun!

 

Video Tutorial

 

Components Required

Hardware Components

 

Connection

 

Code

Connect your micro:bit to your computer and open MakeCode editor to start programming.

  • Add “MOTIONBIT” extension
  • Add "Ultrasonic" extension
  • then follow the code block in the picture above
  • After completing the code, download it on microbit

You can also view and edit the code by clicking here!

 

Car chassis

The car chassis was 3D printed using Artillery Hornet. You can find the STL files Here

 

Project Complete

When you press Button A, the car will start moving. An ultrasonic sensor is constantly monitoring the area in front of the car. If the sensor detects an obstacle less than 15cm away, the car will immediately stop and steer away from the obstacle to avoid collision.

 

If you press Button B, the car will come to a complete stop and the RGB LEDs will turn off, ensuring that the car is no longer in motion and conserving battery power.


Related Posts

Getting Started with MOTION:BIT & Projects Guide

Getting Started with MOTION:BIT & Projects Guide

This guide will show you how to kick start your MOTION:BIT project with some guides or example code to utilize the key features of the micro:bit expansion board..
CONTROL OMNI ROBOT CAR WITH MOTION:BIT USING BLUETOOTH APP

CONTROL OMNI ROBOT CAR WITH MOTION:BIT USING BLUETOOTH APP

This tutorial will show you how to create a robot using MOTION:BIT that can move and respond to your commands. Get ready to unleash your creativity!..