Your shopping cart is empty!
Build an Autonomous Obstacle-Avoiding Robot Car Using MOTION:BIT
- Abdulrahman Alhamed
- 26 Mar 2023
- Tutorial
- Beginner
- 1644
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
- MOTION:BIT - Simplifying Motion Control with micro:bit
- 4 TT Motor with Wheel Kits
- 3V-5.5V Ultrasonic
- Qwiic Cable
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.