Docsity

Micromouse - Microcomputer-Based Design | ETEC 474, Study Guides, Projects, Research of Engineering

Partial preview of the text

Download Micromouse - Microcomputer-Based Design | ETEC 474 and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

Western Washington University

Electronics Engineering Technology

ETEC 474

Senior Project

Hardware Description

Micromouse

Shiyoung Hwang

Micromouse

Introduction

The micromouse is an intelligent robot that is designed to search a shortest path to

the destination in a unknown maze. Therefore, it has to make decisions. For example, it

has take either left or right when the micromouse comes across a branch. If it is a dead

end, it should turn around and remember the path so the micromouse wont revisit the

same route again.

The micromouse is a maze-solving robot. Although the micromouse is not fully

qualified to be called as an artificial intelligence, it behaves like an A.I in some degree

when It tries to solve the maze. Basically, the micromouse has a microprocessor to

control the hardware and make decisions to navigate in a unknown maze. It has sensors to

receive the information about the walls around it in the maze and the information then

will be used to position the micromouse and navigate in the maze. It will also have

wheels and motors and independent power source. The figure 1.1 below shows the basic

block diagram

Figure 1.1 Block Diagram

Hardware Description

The microprocessor

The micromouse is based on the Motorola XC68HC912B32 microprocessor. The

MPU controls the circuitries through general purpose I/O ports. The figure 1.2 shows the

main schematic.

The motor

For the micromouse, two of H-546 stepper motors are used. It is a 3.15V rated

stepper motor with maximum current of 1A. It has the stepping angle of 1.8.

The advantage of using a stepper motor is precision. Because the stepping angle is

proportional to the number of input pulses, the distance traveled can be accurately

calculated with known step angle and size of the wheels.

The figure 1.4 is the motor driver schematic. As it shows, two SLA7024Ms are

used to drive the motors. It is a high-current PWM, unipolar stepper motor driver. It is

designed for high-efficiency and high-performance operation of 2-phase, unipolar stepper

motors.

The SLA7024M gets pulsed by the microprocessor based on sensor outputs and

then it will drive motors.

R 5 and R 6 are the voltage-divider resistors. Their use is to regulate the PWM

output current. Any values for those resistors can be picked as long as the maximum Vref

of 2V at pin 3 and 14 is not exceeded. With Vref, Rs, current sensing resistor, can be

calculated.

Rs = Vref / Iout

Iout is set to meet the specified running current for the motor. For the H-546, maximum

Iout is 1A.

Since the driver chip utilizes advanced NMOSFETs for the high-current, high-

voltage driver outputs, their outputs create ringing noise with PWM. But the RC filter can

precludes malfunctions due to the ringing noise. Those components are C5, C6, C7, C8,

R7, R8, R9, and R10.

From the graph above, the frequency and on time of the pulse can be calculated.

The motor resistance is 3.15. Therefore, the frequency and on time is obtained at about

34kHz and 17s respectively on the curve of 24Vcc. And off time of the pulse can be

then calculated.

TOFF = 1/34000 - 17s = 12.4s

TOFF can be used to obtain the components that determine the motor PWM

frequency. And R1, R2, R3, R4, C1, C2, C3, and C4 are the components that determine

the motor PWM frequency.

TOFF = -R1 * C1* logn(1-2/5V)

The power source

The micromouse needs a self-reliant and independent power source. Therefore, it

runs on the battery power. There are few things to consider designing the power supply

for the micromouse. First, you need to know what kind of motor will be used. Second,

how much power does the motor needs for the best performance.

For the micromouse, H-546 stepper motor from Sanyo will be used. This stepper

motor requires 3.15V and 1A. Since the speed and torque performance of the motor are

based on the flow of current from the driver to the motor winding, the lower the

inductance, the faster the current gets to the winding and the better the performance of the

motor. Therefore, 4 or 5 times greater than the supply voltage of the motor is used for the

micromouse and 2 of 7.2V NI-MH batteries are used which will output 14.4V total. Each

pack of the battery contains 6 of 1.2V battery cells.

Also, LM2575 step-down voltage regulator is used to regulate output to +5V.

LM2575 is monolithic integrated circuit that provides all the active functions for a step-

down switching regulator, capable of driving a 1A load with excellent line and load

regulation. It offers a high-efficient replacement for popular three terminal linear

regulators. The following circuit is used to regulate output to +5V.

Parts List 1 (main schematic 1/3)

Parts List 2 (sensor schematic 2/3)

 - 1 2 7.2V Ni-MH battery/450mA B1, B Item Quantity Part Description Designators - 2 4 Cap-Mono, X7R, RAD, 10%, 0.1uF, 50V C3,C4,C5,C - 3 2 Cap-Mono, X7R, RAD, 10%, 24uF, 50V C1,C - 4 1 Diode, small signal, switching, 100V, 150mA D - 5 1 Diode, Rectifier, 30V, 1A D - 6 1 Jack, 6-pin Dual-inline 0.100", Board Mount Straight Header, Male J - 7 4 Jack, 4-pin inline 0.100", Board Mount Straight Header, Male J2, J5, J6, J - 8 2 Jack, 6-pin inline 0.100", Board Mount Straight Header, Male J3, J - 9 1 Inductor, 330uH L 
  • 10 1 Resistor, metal film, 10MV, 1 / 8 W, 1% R
  • 11 1 Resistor, carbon, 15kV, 1 / 8 W, 1% R
  • 12 1 Resistor, carbon, 4.7kV, 1 / 8 W, 1% R
  • 13 1 Microprocessor, XC68HC912B32CFU8 U
  • 14 1 LM2575, 5V switching regulator U
    • 1 6 Cap, 0.01uF C1,C2,C3,C4,C5,C Item Quantity Part Description Designators
    • 2 1 Jack, 8-pin inline 0.100", Board Mount Straight Header, Male J
    • 3 1 Jack, 6-pin inline 0.100", Board Mount Straight Header, Male J
    • 4 6 IR LED LED1 ~ LED
    • 5 6 Transistor, 2N2222 NPN Q1 ~ Q
    • 6 6 IR receiver Q7 ~ Q
    • 7 12 Resistor, metal film, 1k, 50V, 1 / 8 W, 1% R1,R9,R17,R25,R33,R - R5,R13,R21,R29,R37,R
    • 8 6 Resistor, metal film, 10V, 1 / 8 W, 1% R2,R10,R18,R26,R34,R
    • 9 6 Resistor, metal film, 4.7kV, 1 / 8 W, 1% R3,R11,R19,R27,R35,R
  • 10 6 Resistor, metal film, 47kV, 1 / 8 W, 1% R4,R12,R20,R28,R36,R
  • 11 6 Resistor, metal film, 100kV, 1 / 8 W, 1% R6,R14,R22,R30,R38,R
  • 12 2 Resistor, metal film, 10kV, 1 / 8 W, 1% R7, R
  • 13 3 10k - Potentiometer R49, R51, R
  • 14 3 LM324, Low Power Quad Operational Amplifiers U1, U2, U
    • 1 2 Cap, 470pF C1, C2, C3, C Item Quantity Part Description Designators
    • 2 4 Cap-ceramic, X7R, 2200pF C5, C6, C7, C
    • 3 3 Jack, 4-pin inline 0.100", Board Mount Straight Header, Male J1, J2, J
    • 4 2 Jack, 6-pin inline 0.100", Board Mount Straight Header, Male J3, J
    • 5 2 Plug, 6-pin inline 0.100", Female Connector with Attachment P1, P
    • 6 4 Resistor, metal film, 47k, 50V, 1 / 8 W, 1% R1, R2, R3, R
    • 7 1 Resistor, metal film, 510V, 1 / 8 W, 1% R
    • 8 1 Resistor, metal film, 100V, 1 / 8 W, 1% R
    • 9 4 Resistor, metal film, 2.2kV, 1 / 8 W, 1% R7, R8, R9, R
  • 10 4 Resistor, metal film, 1V, 1 / 8 W, 1% R11,R12,R13,R