TiniScript: A Simplified Language for Educational Robotics

Gabriel Gonzalo Guzman Ramos,Pedro Jesus Guzman Ramos
2024-11-10
Abstract:TiniScript is an intermediate programming language designed for educational robotics, aligned with STEM principles to foster integrative learning experiences. With its minimalist single-line syntax, such as F(2, 80) , TiniScript simplifies robotic programming, allowing users to bypass complex code uploading processes and enabling realtime direct instruction transmission. Thanks to its preloaded interpreter, TiniScript decouples programming from hardware, significantly reducing wait times. Instructions can be sent wirelessly from any Bluetooth enabled device, making TiniScript adaptable to various robots. This adaptability optimizes iterative and collaborative learning, allowing students to focus on the creative aspects of robotics. This paper explores TiniScripts design principles, syntax, and practical applications, highlighting its potential to make robotics programming more accessible and effective in developing critical thinking skills.
Robotics
What problem does this paper attempt to address?
The main problems that this paper attempts to solve are the complexity and inefficiency existing in the current educational robot programming environments, especially the interruption of the learning process caused by the cumbersome process of repeatedly uploading code in traditional programming methods. Specifically, the paper points out the following problems: 1. **The Cumbersome Process of Uploading and Re - uploading Code**: After each modification of the code, it needs to be recompiled and uploaded to the microcontroller. This process is not only time - consuming but also interrupts students' real - time interaction and experimental opportunities. 2. **Technical Barriers**: For young learners, managing and dealing with these mechanical issues (such as cable connections and code uploads) adds extra technical difficulties, which hinders them from focusing on the study of programming logic. 3. **Lack of Real - time Interaction**: Traditional programming methods rely on burning code onto the microcontroller, which makes it impossible for students to immediately see the effects of code modification, limiting the opportunities for iterative learning. To solve these problems, the paper introduces a new programming language - TiniScript. The design of TiniScript aims to simplify educational robot programming, enabling users to achieve real - time, wireless control through a concise single - line syntax. The following are the specific ways in which TiniScript solves the above problems: - **Simplified Syntax**: TiniScript adopts a minimalist single - line command syntax. For example, `F(2, 80)` means moving forward for 2 seconds with a power of 80%. This simple syntax allows users to bypass the complex coding process and focus on the core concepts of programming. - **Wireless Real - time Control**: TiniScript supports sending instructions via Bluetooth from any Bluetooth - enabled device (such as a tablet, computer or smartphone). Thanks to the built - in interpreter, TiniScript eliminates the need for cable connections and repeated code uploads, achieving instant response and enhanced real - time interaction. - **High Adaptability**: TiniScript can be compatible with multiple robot devices and can achieve automatic conversion from block programming to TiniScript code through an online platform (such as [http://tinibot.pe](http://tinibot.pe)), further enhancing its applicability in different educational environments. Through these innovations, TiniScript not only simplifies the programming process but also enhances the educational experience, cultivates students' critical thinking and creativity, enabling them to learn robot programming in a more dynamic and immersive environment.