A prototype of the self-driving bus

Based on the LEGO Mindstorms EV3 robot
[b]Abstract[/b]: This activity gives an overview of using the distance sensor of the LEGO Mindstorms EV3 robot. The aim of the activity is to build a self-driving bus prototype by using the LEGO Mindstorms EV3 robot, and to help understand the underlying principles (on the very primitive level) that guide the behavior of self-driving buses. [br][b]Keywords[/b]: Self-driving bus, LEGO Mindstorms EV3, prototype, robot[br][b]Resource list[/b]: one LEGO Mindstorms EV3 robot for each team (2-4 members) of students; one controlling device (iPad, Android tablet, Windows 10 PC or Macintosh computer) for each student team, with the [url=https://education.lego.com/en-us/downloads/mindstorms-ev3/software#downloads]LEGO EV3 Classroom app[/url] installed.
The background and importance of the topic
Self-driving buses are a specialized form of self-driving cars. The first experiments with self-driving cars date back to the 1920s, but the very first semi-automatic car was developed in 1977, in Japan. This car was able to drive up to 30 km/h, and used two cameras, an analog computer and an elevated rail to drive on specially marked streets. With the help of advanced digital technologies, including powerful CPUs, cameras, big data and AI, the modern self-driving cars are able to drive independently thousands of kilometers. At the moment, as the technology still isn’t mature enough, the topic of self-driving buses is less studied although they offer various positive aspects. For example, self-driving buses have the potential of decreasing operational costs, reducing road congestion, and reducing transport emissions (Mouratidis & Cobena Serrano, 2021). In addition, self-driving buses could bring down the number of bus-related crashes (Gibson, 2022).[br][br]In its essence, a self-driving bus is a robot. It has a robotic body, including various advanced sensors for establishing its position on the road, detecting possible hazards and following surrounding traffic, including pedestrians. This robotic body is driven by a combination of advanced software, including computer vision, machine learning, big data, and artificial intelligence. In a primitive way, a self-driving bus can be imitated in the classroom settings by using simple educational robots (depending on the skills, knowledge and abilities of the students). The purpose of such imitation would be introducing the concept of self-driving buses to students and to encourage them to learn some of the related principles of programming and robot building. [br][br]In the example we are using the LEGO Mindstorms EV3 robot to imitate a self-driving last-mile bus that drives from one destination to another and back (for example, from the school to the railway station and back). Also, our example program detects if a pedestrian steps on the road and then, to avoid collision, stops the bus for letting the pedestrian pass and then continues to drive. The LEGO Mindstorms EV3 is a popular and good quality robot set that allows building several types of robots (walking, crawling, driving, etc.). In our example we are using the “Driving base” robot (see the instructions [url=https://education.lego.com/v3/assets/blt293eea581807678a/blt9f94cc95ebe17900/5f8801dd69efd81ab4debf02/ev3-medium-motor-driving-base.pdf]here[/url]) that has two driving motors (allowing turning) and several sensors (allowing basic interaction with the surrounding environment). The behavior of the robot is determined by its program – and in our example we are using the [url=https://education.lego.com/en-us/downloads/mindstorms-ev3/software#downloads]LEGO EV3 Classroom app[/url] to program it. The programming is easy, as the app is based on the popular Scratch programming language with a target audience of ages 8 to 16. [br][br]The given example can be realized with other educational robots, even with the kindergarten-level BeeBot robot. In these cases, the programs should be simplified and customized to the requirements of the relevant programming languages (or, in the case of the BeeBot robot, it needs to be programmed with its buttons). [br][br]  
Program
The program is formed of three logical blocks that are started simultaneously when the program is run. When you build the program, follow the example and place all three blocks to the same program page. When executing the example program, the robot (1) drives 4 wheel rotations (with standard 56 mm diameter wheel this is roughly 70 cm); (2) turns around; (3) drives back 70 cm; (4) turns around; and (5) stops in its initial position. The robot tracks the area in front of it while driving. When a pedestrian is detected then the robot stops and beeps until the road is clear again – it will continue its initial mission then.[br][br]Try modifying the program to make it more interesting or meaningful to your purposes. Make use of other sensors and robot features (e.g., [url=https://education.lego.com/en-us/lessons/mindstorms-ev3/line-detection#continue]try line following[/url], change the color of the robot’s LED lights, let the robot show an image or make different sounds). You could also allow human operators to somewhat control the robot by using the touch sensor (e.g., the “self-driving bus” stops when the user presses the stop button – and continues either automatically or when the button is pressed again).
A video that demonstrates the robot following the example program.
The Alternative Activity
If you do not have access to real robots, there are plenty of virtual robotic programming environments on the Internet. In the following ([url=https://youtu.be/xrcPw_Mspu0]https://youtu.be/xrcPw_Mspu0[/url]) we will introduce the GearsBot environment where you can design, program and test your robots: [url=https://gears.aposteriori.com.sg/]https://gears.aposteriori.com.sg/[/url] . The files are available at [url=https://drive.google.com/drive/folders/11SXDq9ApqT_4tN9PmG_igvPqHmRoOEUs?usp=sharing]this link[/url]:[br][list][*][i]link_to_gearsbot_website.url [/i]is a link to the gearsbot website.[br][/*][*][i]gearsbot-robot.json [/i]is the description of the virtual robot. Open it with the “Load world” command.[br][/*][*][i]program.xml [/i]is the program for the virtual robot. Open the program with the “Load program” command.[br][/*][*][i]self-driving-bus-program.PNG [/i]is the screenshot of the program. This is how your program should look like.[br][/*][/list]
The video that demonstrates the alternative solution
Adjusting activity to learners with special needs - placeholder
Text and video
Knowledge test
Choose the right answers!
When was the idea of self-driving cars first introduced?
What technologies are important for modern self-driving buses?
LEGO Mindstorms EV3 is …
Conducting a Workshop
This  STEAM learning activity workshop is  addressed to familiarize pre- and in-service secondary school teachers with Educational Robots (ER) as didactic tools. In particular, this activity introduces hardware and software ER related concepts to teachers without any previous robotics experience, providing them with some examples and discussions about actual classroom activities. [br]The participants will construct and program a LEGO Mindstorms EV3 robot based prototype of a self-driving bus in this workshop. Consequently, the task for the participants is to make their robot travel from one destination to another while detecting pedestrians on its path.[br]As commented above, we don’t expect participants to have any previous knowledge about programming or working with robots. But within the workshop, participants will become familiarized with the concepts of robots and robot programming, applying simple math measurements and calculations in order to create code for the different robots. Collaborative teamwork, problem solving skills, digital skills, self-paced learning and peer tutoring are employed.[br]The robot to be used in this workshop is the LEGO Mindstorms EV3 robot.[br][br][b]Workshop[/b][br]At the beginning of the workshop we supply participants with the vocabulary, terms and concepts needed for using ERs. We explain afterwards the role of ERs as engaging learning tools and how the usage of them could be connected to different subjects. Then we cover the topic of age-appropriateness of robots. We also describe the principles of block-based programming by drawing analogies with language learning and forming sentences. We discuss afterwards for some minutes the concepts of inputs and outputs of the robots used in the workshop and describe in detail how to put all these robots to move and what the loop (repetition) block stands for. Last but not least, for the theoretical part we share our research-based understanding of why robots and other STEAM sets are still not widely used by teachers. Next we form three robot-centered teams (one team per type of robot) and we continue with solving the challenge.[br][br]The teams have to negotiate about the path their robot should move on and sensors their robot is going to use for detecting its surrounding environment. Next they have to familiarize themselves with the robot their team selected, and program the robot so that it acts as a self-driving bus. When doing so, math calculations, together with logic and research mindset will help participants to achieve the best possible solution. The teams will present their solutions to other teams. Finally, a group discussion will take place, where team members first will discuss among each other and then share to everybody their thoughts about the workshop activity and its pedagogical benefits on interdisciplinary teaching, emphasis on math, arts, robotics and coding.[br][br]The learning outcomes for the participants are listed below. Each participant is able to:[br][list][*]see the possibilities of using ERs as motivating tools in math and art classes;[br][/*][*]program simple movements of the LEGO Mindstorms EV3 robot with the help of step-by-step instructions;[br][/*][*]use digital interactive learning resources created in GeoGebra;[br][/*][*]critically evaluate the quality and applicability of the digital learning resource.[br][/*][/list]The 90 minutes workshop will give teachers hands-on experience and emotion about how they could benefit from robots as learning tools during their regular math lessons. We hope to have a fruitful discussion with the workshop participants about the effectiveness of such short workshops. The focus of the discussion is to find out whether these workshops can be used for creating awareness about the benefits of STEAM kits, especially robots, and reducing the anxiety towards using STEAM in teaching practices.[br][br][br]
References
Gibson, J. (2022). Autonomous Buses Will Revolutionize Public Transportation, but at What Cost? GoGoCharters, [url=https://gogocharters.com/blog/autonomous-buses-will-revolutionize-public-transportation-cost/]gogocharters.com/blog/autonomous-buses-will-revolutionize-public-[br]transportation-cost/[/url] [br]LEGO EV3 Classroom app. [url=https://education.lego.com/en-us/downloads/mindstorms-ev3/software#downloads]https://education.lego.com/en-us/downloads/mindstorms-ev3/[br]software#downloads[/url] [br]Line Detection with LEGO Mindstorms EV3. [url=https://education.lego.com/en-us/lessons/mindstorms-ev3/line-detection#continue]https://education.lego.com/en-us/lessons/[br]mindstorms-ev3/line-detection#continue[/url] [br]LEGO Mindstorms EV3 Driving Base Building Instructions. [url=https://education.lego.com/v3/assets/blt293eea581807678a/blt9f94cc95ebe17900/5f8801dd69efd81ab4debf02/ev3-medium-motor-driving-base.pdf]https://education.lego.com/v3/assets/blt293eea581807678a/blt9f94cc95ebe17900/5f8801dd69efd81ab4debf02/ev3-medium-motor-driving-base.pdf[/url] [br]Mouratidis, K., Cobena Serrano, V. (2021). Autonomous buses: Intentions to use, passenger experiences, and suggestions for improvement. Transportation Research Part F: Traffic Psychology and Behaviour, 76, 321-335. [url=https://www.sciencedirect.com/science/article/pii/S1369847820305921]https://www.sciencedirect.com/science/article/pii/[br]S1369847820305921[/url]
The resource in Google Drive format:
[url=https://docs.google.com/document/d/1aeiVsXXnkACHQWOKXg_AZ389v01FU5Wn6whFfns0p3I/edit?usp=sharing]Google Docs[/url]
Close

Information: A prototype of the self-driving bus