Example Code for MBT0050-AA
Last revision 2026/02/28
This document provides a collection of practical example codes for Maqueen Plus V3, covering motion control, RGB lighting, line tracking, PID speed control, sensor applications, and autonomous behaviors. It helps users understand robot control principles and quickly develop educational and robotics projects using MakeCode.
1. Example Code for Starting Maqueen Plus V3
This article offers practical example code for programming the Maqueen Plus V3 robot to move forward at a specified speed and control its RGB vehicle lights using the MakeCode Editor, providing insights into hardware and software setup for optimal performance.
2. Example Code for Car Turning and RGB Light Control
This article explains how to control car turning using differential motor speeds and advanced RGB lighting setups, featuring the Maqueen Plus V3 and optional micro:bit V2 buzzer activation.
3. Example Code for Quick Line Tracking
The article provides an example code for the Maqueen Plus V3 robot to follow a black line using a built-in line-tracking algorithm, allowing micro:bit to handle additional tasks like obstacle avoidance and music while showcasing vehicle lights with seven colors and customizable RGB LED settings.
4. Example Code for Regular Line Tracking Program
The article showcases example codes for Maqueen Plus V3's line tracking program using digital and analog sensors, explaining hardware and software setup, logic overview, and result interpretation for precise robot navigation.
5. Example Code for PID Control and Vehicle Speed Detection
This article demonstrates how Maqueen Plus V3 uses magnetic encoders for PID-controlled motion and real-time speed feedback, with example code for autonomous and sensor-driven behaviors.
6. Example Code for Light Sensor – Light-Avoiding and Light-Chasing Robots
This project shows how to use light sensors on the Maqueen Plus V3 robot to create light-following or light-avoiding behaviors, with example code and basic setup instructions for educational robotics projects.
7. Example Code for Infrared Remote Control
This article demonstrates how to use infrared remote control with Maqueen Plus V3 robot by decoding IR signals and mapping them to actions like moving and turning. It includes example codes for reading remote signals and controlling the robot, facilitating custom programming and enhancing user interaction with robots.
8. Example Code for Intersection Recognition
This project demonstrates hardware-level intersection recognition on the Maqueen Plus V3, enabling simple and reliable autonomous navigation using MakeCode.
9. Example Code for Matrix Laser Ranging Sensor
This article demonstrates how to use the Matrix Laser Ranging Sensor on Maqueen Plus V3 for accurate obstacle detection and autonomous behaviors with example code.
Was this article helpful?
