Professional Documents
Culture Documents
Abstract: - The application of micromouse and MATLAB to raise student interest in learning the
implementation skills of autonomous mobile robots is presented in this paper. The project-oriented hands-on
laboratory is devised for graduate students from the department of electronic engineering of Lunghwa
University of Science and Technology, and for introductory workshops for vocational high school students and
teachers with electronic and information engineering backgrounds. To enhance the learning outcomes,
micromouse contests are also organized for students to see how well they learned the skills in the laboratory.
The assessments and feedback from students show that the kit and the related laboratory experiences do help
motivate students to learn actively and successfully the implementation skills of autonomous mobile robots.
The kit shown in Fig. 1 is steered with step motors The project-based hands-on laboratory exercises are
and differential drive. The firmware can be described in details as follows.
downloaded to the flash memory of the
microcontroller dsPIC30F6010 through an in system 3.1 An interrupt driven real-time control
programming (ISP) port. Students can collect the firmware
data stored in the microcontroller, or send commands The micromouse has to calculate its position in a
to the firmware via an RS232 serial bus. The maze and scan the environment with the infrared
micromouse controls 6 infrared light emitting diodes LEDs and optical sensors constantly, such that the
(LEDs) in 5 directions, and detects the intensity of the errors in position calculations can be corrected and
reflected light to determine the maze wall the goal cell can be found. This relies heavily on an
information and to correct the motion commands for interrupt driven real-time control firmware structure.
two step motors. The kit can also keep track of its Students would learn in this part how to control the
position in the maze by using the pulses which are time intervals of system functions for peripherals,
sent to step motors. The firmware in the motion control, and the maze solving algorithm.
microcontroller can interact with the user with These time-intervals should be short to make the
buttons and matrix LED display. By using the micromouse react fast enough to environment
functions the mircromouse kit provides, students changes, which is important when the micromoue is
should devise their own maze-solving algorithm to running fast. Key factors to influence the code
help the micromouse find out the goal and decide an execution efficiency, such as fixed-point
optimal route from the start to the goal according to mathematics, table-lookup skills for trigonometric
its motion capability. functions, and programming skills would be
introduced to students in this part.
experimental results
3 theoretical predictions via least square methods 40
cm/sec
2.5 20
0
2 0 20 40 60 80 100 120 140
outptu voltage
2
The acceleration profile with a limit of 5m/sec
1.5 6
4
1
m/sec2
2
0.5
0
0 20 40 60 80 100 120 140
0 time in ms
2 4 6 8 10 12 14
distance to the wall in cm
The second part of this section is to introduce to be corrected if the pole position of the maze can be
students how pulse commands of step motors can be detected when the micromouse runs in a given maze.
used to calculate the posture of the micromouse. Because the initial position and the orientation angle
Assume that the orientation at first of the micromouse of the micromouse are set to 0 and /2,
is as shown in Fig. 6b, and the distance between respectively, these calculation errors should also be
two wheels is L. It can be seen from Fig. 6 that the corrected based on the infrared sensor readings.
following relationships in Table 1 hold. Diagonal straight line motion can be corrected by
Table 1 Position and orientation calculations for step motor using the readings of forward-looking optical sensors,
micromouse such that the micromouse would not hit the posts or
corners alongside the path.
Right wheel moves a step
orientation: θ n = θ + ∆θ
position
1 1
xCn = ( xRn + xL ) , yCn = ( yRn + y L )
2 2
Rn Fig. 7 The ways that a micromouse uses in correcting the
x − x L cos ∆ θ − sin ∆θ xR − xL
y − y = sin ∆θ cos ∆θ y − y longitudinal, lateral, and alignment errors
Rn L R L
4 Workshops, Contests and feedbacks Table 2. The average scores of the survey
questionnaires for the workshop
The micromouse kit described in this paper is used in Mean
2009 to encourage vocational high school teachers (standard
Questions (score: 1-5) deviation)
and students to learn implementation skills of
2009 2010
intelligent mobile robots. Figure 9 shows the free
workshops supported by the Ministry of Education. The arrangement and design of the hands-on 4.45 4.62
Moreover, every participant of the workshop can laboratory for micromouse is good (0.55) (0.50)
bring back not only the micromouse, but also the The handouts for the hands-on laboratory are 4.43 4.38
corresponding IDEs. It can be seen from Table 2 that effective and complete (0.68) (0.67)
the feedback on the survey questionnaires from The laboratory is helpful for students in
vocational high school students (22 in 2009, 15 in improving hardware and software 4.33 4.62
implementation skills, and in raise our (0.66) (0.50)
2010) and teachers (18 in 2009, 6 in 2010) was quite interest
positive in consecutive 2 years. The majority of the 4.45 4.62
participants (86.6%, 92.4%) agreed that they were I am happy to join the workshop
(0.68) (0.50)
motivated to learn those skills and theories, and were I would recommend to my colleagues or 4.56 4.57
satisfied (88.6%, 92.4%) with the organization of the classmates to join this workshop next time (0.53) (0.51)
laboratory. To see how well the participants of the
workshop integrate all the skills learned in the hands
on laboratory, contests (Figure 9) were held after they 5 Conclusion
finished their micromice. It is observed that most of A low cost micromouse kit developed in Lunghwa
the participants do try actively to make their University of Science and Technology and used as a
micromice run smoothly and win the contest. learning platform for autonomous mobile robots is
presented in this paper. Several laboratory exercises
with graphical user interface of MATLAB are also
devised for the kit to help students learn the basics
about micromouse and mobile robots. They include 1)
introduction of the integrated development
environment (IDE) for the micromouse kit, 2)
interrupt driven real-time control firmware structure,
3) implementation of a simple maze-solving
algorithm, 4) maze wall detection via infrared light
emitting diodes (LEDs) and optical sensors, 5)
motion control of stepping motors and the
micromouse, and 6) adjustments of motion
commands of stepping motors for position and
orientation errors of micromouse in a maze by using
infrared LEDs and optical sensors. The kit is
designed with help from the local branch of
Microchip Inc., therefore, students can get the
necessary C-compilers and microcontrollers free of
charge. It is hoped that every student can have his/her
own micromouse easily even if he/she is
economically disadvantaged, and learn quickly the
techniques in making an autonomous mobile robot.
The assessments and feedback from students show
that the micromouse kit and related national contests
do effectively raise students’ interest, and therefore
motivate them to learn actively those related theory
and implementation skills. The overall cost of the kit
Fig. 9 The micromouse kit used in a workshop and a is less than USD$150, which is well below the cost of
contest for students’ final projects similar commercially available kits [10, 11].
6. Acknowledgements
The authors would like to thank the National Science
Council for its financial support under grant NSC
99-2511-S-262-001, and Microchip Inc. for their
support of free C-compilers and microcontrollers.
References:
[1]. Bill Gates, “A robot in every home,” Scientific
American Magazine, Jan. 2007.
[2]. iRobot cooperation, Vacuum cleaning robot -
iRobot Roomba, www.irobot.com, Accessed
June 21, 2009.
[3]. Qu, Z., and X. Wu, “A new curriculum on
planning and cooperative control of autonomous
mobile robots,” International Journal of
Engineering Education, Vol. 22, No. 4, pp.
804-814, 2006.
[4]. Ning Chen, H. Chung, and Y. K. Kwon,
“Integration of micromouse project with
undergraduate curriculum: a large-scale student
participation approach,” IEEE Trans. on Educ.,
Vol. 38, No. 2, pp. 136-144, May, 1995.
[5]. The UK micromouse contests website:
http://www.tic.ac.uk/micromouse/
[6]. The 24th annual micromouse contest in the
IEEE Appllied Power Electronics Conference
and Exposition 2010, www.apec-conf.org.
[7]. The 2010 all Japan micromouse contest,
http://www.ntf.or.jp/mouse, Accessed August
11, 2010.
[8]. The Singapore robotic games 2010 website:
http://guppy.mpe.nus.edu.sg/srg/
[9]. The 2009 Taiwan micromouse & intelligent
robot contest, http://robot2009.lhu.edu.tw
[10].Micromouse AIRAT2 website:
www.robotstorehk.com/micromouse/RS-AIRA
T2.html.
[11].Intelligent 8051 micomouse from ICtec, website:
www.icci.com.tw/web/MdFront?mdId=MD000
0002307000830&command=displayDetail
[12].LEGO mindstorm website:
http://mindstorms.lego.com/en-us/default.aspx
[13].Society of Robots, “Micromouse – Maze
Solver – Theory,” website:
http://www.societyofrobots.com/member_tutori
als/node/94
[14].Peter Harrison, Micromouse Online, website:
http://www.micromouseonline.com/blog/.
[15].Ng Beng Kiat’s Homepage,
http://www.np.edu.sg/alpha /nbk/, accessed on
3/18/2010.