oalogo2  

AUTHOR(S):

Petr Coufal, Tomas Hornik, Stepan Hubalovsky, Michal Musilek

 

TITLE

Development and Programming of KarelNXT Robot as a Simulation of xKarel Programming Language Including a Sample Program

pdf PDF

ABSTRACT

The article is dealing with programming of a KarelNXT robot made from a LEGO construction set. The idea comes from xKarel programming language, which is a traditional programming language utilizing a virtual robot only shown on a screen. The virtual xKarel programming language was extended by its implementation in LEGO Mindstorm NXT-G integrated development environment. Real robots built from LEGO construction sets use additional sensors (compass, color and ultrasonic) which we incorporated in such a way as to make possible building of a robot with equal functions to the robot in xKarel programming language. KarelNXT robot built from LEGO construction set is using the control unit in NXT version. In the article we mention the detailed description of individual robot movement instructions with a description of their meaning and functionality. Finally, we provide a sample program for comparison.

KEYWORDS

Robot, LEGO, Mindstorms NXT, KarelNXT, xKarel, Sensors, Instructions, Programming Languages

REFERENCES



[1] Klassner, F., Kearney, S.: An Evaluation of Simulation in LEGO Mindstorms Robot Programming Coursework. Las Vegas, CSREA Press, pp.3-9, ISBN: 1-60132-435-9, (2016).

[2] Slangen, L.,Van Keulen, H., Gravemeijer, K.: What pupils can learn from working with robotic direct manipulation environments. International Journal of Technology and Design Education, pp. 449-469, ISSN 0957-7572, (2011).

[3] Coufal, P.: Robotics in Education. Diploma thesis, University of Hradec Kralove, (2016).

[4] XKarel home page [online]. Praha, Robot Karel implementation. Accessed June 20, 2017. Available: http://xkarel.sourceforge.net/eng/. (2017)

[5] Building Karel the Robot: Invaluable Learning Experience for Students [online]. Carson City, Dave Riske. Accessed June 20, 2017. Available: https://nclab.com/building-karelrobot- LEGO/. (2017)

[6] “EOPD – How to measure distance." In: HiTechnic Blog. [online]. Miami: HiTechnic Products, 2010. Accessed June 20, 2017. Available: http://www.hitechnic.com/blog/eopd -sensor/eopd-how-to-measure-distance/. (2017)

Cite this paper

Petr Coufal, Tomas Hornik, Stepan Hubalovsky, Michal Musilek. (2017) Development and Programming of KarelNXT Robot as a Simulation of xKarel Programming Language Including a Sample Program. International Journal of Mathematical and Computational Methods, 2, 327-331

 

cc.png
Copyright © 2017 Author(s) retain the copyright of this article.
This article is published under the terms of the Creative Commons Attribution License 4.0