Design of MM
Design of MM
The general outline of the micromouse design combines multiple small systems to effective
performance. The system is designed with a structure of processes, which starts with power
delivery, sensor input, initialization and then processing along with output actions.
Key Components and Subsystems:
Power Supply:
o The system begins with a reliable power source, typically a battery, to energize
all components. Power supply is one of the most important components in a
micromouse as it directly influences other components’ stability and strength.
The power supply’s size is also the biggest, so it takes up most space on the
micromouse. Therefore, careful consideration to balance the power strength
and volume of the power supply is imperative.
o Voltage regulators are also important to the system as they provide stable
power levels for the microcontroller and peripherals to ensure consistent
operation by keeping the power source for the MCU (microcontroller unit)
stable.
Initialization: This initialization step lays foundation for the interaction between
sensors, actuators, and computational processes. Specifically, the microcontroller
initializes the system by configuring necessary hardware peripherals such as clocks,
GPIO pins, ADC, and communication interfaces (SPI, I2C, or UART).
o System Clock Initialization: Setting the system clock to define the operating
speed of the microcontroller.
o Peripheral Initialization: setting up timers for tasks, initializing
communication interfaces protocols for sensor data acquisition and inter-
device communication.
o Pin configuration: configuring General-Purpose Input/Output pins for
interfacing with sensors and actuators.
Libraries: These are software modules or pre-written code that provide functions to
simplify programming and control of the hardware. They interact with the hardware
peripherals efficiently.
o ADC (Analog-to-Digital Converter): Converts analog signals (e.g., from
sensors measuring distances, light intensity, or other continuous values) into
digital data that the microcontroller can process. In the micromouse, it
measures sensor data such as proximity or distance to walls and ensures the
microcontroller receives precise input for decision-making.
o GPIO (General Purpose Input/Output): Provides configurable digital
input/output pins to connect and control external devices like LEDs, switches,
or other hardware components. In the micromouse, it helps communicate with
other peripherals.
o Timers/PWM (Pulse Width Modulation): Timers are used for precise control
of time-dependent tasks like managing motor speed. PWM controls the
voltage delivered to components like motors to adjust speed and torque.
o Encoders Library: Read and interpret data from rotary encoders attached to the
motors. Specifically, it tracks wheel rotations and position to estimate the
micromouse’s current location and orientation.
Peripheral Components: The micromouse includes various peripheral devices which
are hardware components interfacing with the microcontroller to provide data, control
outputs, or display information, such as:
o IR sensors (Infrared sensors): Detect obstacles or walls by emitting infrared
light from the IR emitters and measuring the reflection. It is commonly used in
micromouse projects because of its short range but high accuracy and low
cost.
o Motors (DC Motors): To control the physical movement and turning of the
micromouse to navigate the maze.
o Display: Can show sensor readings, battery status, or the micromouse’s current
decisions during navigation. It is useful for developers during testing and
development.
Algorithmic Processing: The micromouse employs a maze-solving algorithm, such as
the Flood-Fill Algorithm, to determine the optimal path to the center. The process
focuses on enabling the micromouse to navigate the maze quickly with minimal
energy use, allowing quick adaptability to new obstacles and ensuring accurate
movements along with reliable pathfinding. The process includes:
o Data Analysis: The micromouse continuously processes data collected from
sensors to build a map of the maze and make navigation decisions. This
involves wall detection, maze mapping and path evaluation which is the
continuous assessing of possible routes based on the maze’s current map to
update strategies.
o Path Planning: Identifying the best route to the goal using algorithmic
methods. Key considerations are finding the shortest path, improving
efficiency and dynamic replanning.
o Robot Control: Sending commands to actuators (motors) based on the
calculated path to adjust motor speed based on positional errors.
o Error Correction: During navigation, the micromouse may encounter issues
such as wheel slippage, sensor inaccuracies and unexpected obstacles that may
require path recalculation or other methods to prevent such errors.
2.1.2. Input -> Processing -> Output:
STM32F405RG:
o Advantages: Higher performance strength with advanced features like faster
processing speeds, more powerful peripherals and more memory.
o Suitable for using complex algorithms like Flood-fill or A*.
We decided to use…bc of
2.2.2 Sensors:
Sensors allow the micromouse to acknowledge its environment by identifying walls, corners,
and open paths in the maze, ensuring the micromouse makes informed navigation decisions
effectively.
IR (Infrared) Sensors:
o Emit and detect obstacles by measuring infrared light reflections.
o Compact, lightweight and power-efficient.
o Accurate in short-range detection, unaffected by ambient light.
o Cost-effective: good stability over time and battery used lasts for a long
duration.
Ultrasonic Sensors:
o Emit sound waves and measure the time taken for the echoes to come back,
from that the distance to obstacles can be calculated.
o Good for medium-range and wide-angle detection, unaffected by lighting
conditions.
o Worse at short-range detection with slower response time.
o Consume more power, more expensive and bigger in size than IR.
Both types of sensors can be used in the micromouse and have their own advantages.
However, ultrasonic sensors also come with limitations that may negatively impact specific
requirements of a micromouse. Therefore, ultrasonic sensors are considered optional. On the
bright side, ultrasonic sensors may be used over IR sensors in several situations such as
mazes with wide maze corridors, maze walls with poor IR reflectivity or in designs that
integrate both types of sensors. A common solution is using IR as the primary sensors and
Ultrasonic as backup or for other specific purposes.
2.2.3. Motors:
DC Motors:
o Provide smooth, continuous rotation and precise movement.
o Reliable and easily controlled.
Encoders:
o Measure the number of rotations or distance of the wheels.
o Provide feedback for closed-loop motor control.
o Ensure accurate distance measurement, speed and direction control of turning
angles.
The micromouse uses DC motors with rotary encoders for the movement required for maze
navigation. Encoders feedback on the micromouse’s position and movement, which is
essential for correcting errors during navigation.