Content area

Abstract

A Blocks-based Visual Environment to Teach Robot-Programming to K-12 Students This paper considers the use of a blocks-based visual environment to demonstrate and teachrobot-programming to K-12 students. A visual programming environment is built using theopen-source, JavaScript-based, Blockly library developed by Google. Our approach illustratesthat robot-programming can be done in an easy, educational, and fun manner without burdeningthe students to first acquire the knowledge and experience with advanced programming conceptsand robot hardware. For illustrative purposes, we employ a low-cost, single-board computer,such as Raspberry Pi, with embedded microcontrollers, such as Brick Pi for LEGO or ArduinoUNO. The drag and drop feature of blocks, common to visual programming environments suchas Scratch, make the developed interface familiar and appealing to K-12 students and allows it tobe intuitive to learn robot-programming. To promote students’ understanding of programmingconcepts and constructs, the developed visual environment allows them to view the underlyingC-code of the block diagram that they create for robot-programming. This approach enables thestudents to compare the codes for different blocks on the fly while programming the robot and itallows them to comprehend the expected behavior of the robot.On-board the robot, a Raspberry Pi computer is used to run a Linux-based server which streamsthe web-based visual programming environment to the end user’s web browser. The end usercreates her robot-program by interacting with the visual programming environment on the webbrowser. This web-based approach offers operating system (OS) independence, thus obviatingthe need to develop OS-specific applications and allowing the end user to work with Mac, Linux,or Windows OS. To demonstrate this blocks-based visual programming environment, we showthe control of two different mobile robots. First, we consider a wheeled mobile robot that isconstructed using the LEGO NXT hardware, with a Brick Pi serving as its embeddedmicrocontroller that is interfaced with the Raspberry Pi computer. In this configuration, the BrickPI serves as an interface between the Raspberry Pi and LEGO NXT sensors and actuators.Second, we consider a two legged mobile robot that is constructed using 3D-printed componentsfor body parts and joints and servo motors for actuation, with an Arduino UNO serving as itsembedded microcontroller that is interfaced with the Raspberry Pi computer. To command andcontrol each of the mobile robots, the developed visual tool employs blocks corresponding tobasic programming constructs such as loops, conditional statements, variables, and procedures.For a user-created robot-program, the web-based programming tool Blockly is used to generatethe corresponding C-code and is wirelessly sent from the user’s browser to the server running onthe Raspberry Pi hosted on the mobile robot. The Raspberry Pi automatically compiles andexecutes the received C-code.To illustrate the ease, education, and fun value of our approach, a maze-based educational gamehas been developed. Specifically, the game requires the user to program a robot through ourvisual tool to navigate the maze and score points that are distributed throughout the maze. Thefinal paper will provide details of the visual tool, two mobile robots, and preliminary results froma pilot study involving students’ interaction with the aforementioned robot-programming tool inthe game environment.

Details

Title
A Blocks-based Visual Environment to Teach Robot-Programming to K-12 Students
Source details
Conference: 2015 ASEE Annual Conference & Exposition; Location: Seattle, Washington; Start Date: June 14, 2015; End Date: June 17, 2015
Pages
26.17.1-26.17.12
Publication year
2015
Publication date
Jun 14, 2015
Publisher
American Society for Engineering Education-ASEE
Place of publication
Atlanta
Country of publication
United States
Source type
Conference Paper
Language of publication
English
Document type
Conference Proceedings
Publication history
 
 
Online publication date
2015-07-06
Publication history
 
 
   First posting date
06 Jul 2015
ProQuest document ID
2317750439
Document URL
https://www.proquest.com/conference-papers-proceedings/blocks-based-visual-environment-teach-robot/docview/2317750439/se-2?accountid=208611
Copyright
© 2015. Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the associated terms available at https://peer.asee.org/about .
Last updated
2025-11-15
Database
ProQuest One Academic