← Back to Explore

Minotaur: A Program with Lego Mindstorms NXT Using C++ to Solve a Maze and Recover an Object

JSHS · 2022

Overview

The researcher will be programming a robot so that it can solve a maze autonomously. The researcher will learn Lego Minestorm NXT (this program uses C++) to program the robot. To solve a maze, it is very important to not give circles because you will never find an exit, this is the reason why my robot will not be employing a single sensor. My robot will be equipped with three sensors, one will be located on the left side, and it will be a distance sensor. The other two sensors will be button sensors, located at the front of the robot. The robot will have a car-like shape, with two chain wheels so that it will be able to give accurate turns by retroceding on one of the wheels. The ideated code will detect an opening to the left, and will always take it, if the wall doesn’t have an entrance the robot will encounter a wall eventually on his front, if this happens both tactile sensors will get triggered and the robot will retrocede and give a 180 degrees turn and will proceed to check for entrances on the other wall that used to be on its right side, but now on the left. With this code, based on my analysis, the robot should be able to solve any maze. At the end the researcher found that only one sensing sensor was not enough the robot needs one on both sides to work properly and this will be the future work of the researcher, upgrade the robot to complete the maze and in addition fix the code to also grab an object at the end of the maze and return it to the start.

Competition history

  • JSHS 2022 Category not listed

Resources

Related projects

Closest projects by meaning, across every fair and year in the corpus.

Source: Junior Science and Humanities Symposium

Save projects to your library

Sign in with Google to keep track of projects you find interesting, organized into folders. An account also raises your daily allowance for “Has this been done?”, and lets you create a key for the MCP server with a much higher limit than anonymous use. Browsing stays public.

Continue with Google