A low-cost table-top robot platform for measurement science education in robotics and artificial intelligence ACTA IMEKO ISSN: 2221-870X June 2023, Volume 12, Number 2, 1 - 5 ACTA IMEKO | www.imeko.org June 2023 | Volume 12 | Number 2 | 1 A low-cost table-top robot platform for measurement science education in robotics and artificial intelligence Hubert Zangl1,2, Narendiran Anandan1, Ahmed Kafrana1 1 Institute of Smart Systems Technologies, Sensors and Actuators, University of Klagenfurt, Klagenfurt, Austria 2 Silicon Austria Labs, AAU SAL USE Lab, Klagenfurt, Austria Section: RESEARCH PAPER Keywords: Education; robot perception; introductory lab experiments Citation: Hubert Zangl, Narendiran Anandan, Ahmed Kafrana, A low-cost table-top robot platform for measurement science education in robotics and artificial intelligence, Acta IMEKO, vol. 12, no. 2, article 23, June 2023, identifier: IMEKO-ACTA-12 (2023)-02-23 Section Editor: Eric Benoit, Université Savoie Mont Blanc, France Received August 9, 2022; In final form May 2, 2023; Published June 2023 Copyright: This is an open-access article distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Funding: This work has received funding from the "European Regional Development Fund" (EFRE) and "REACT-EU" (as reaction of the EU to the COVID-19 pandemic) by the "Kärntner Wirtschaftsförderungs Fonds" (KWF) within the project Pattern-Skin 3520/34263749706. Corresponding author: Hubert Zangl, e-mail: hubert.zangl@aau.at 1. INTRODUCTION Robots are entering more and more into our daily live and are attractive for young people interested in science and technology. Consequently, also the education at the bachelor and master level must adapt to the needs in this interdisciplinary subject. The importance of the link between different domains is also emphasized in a survey [1] stating that 57 % of the faculty believes that students in electrical engineering have deficiencies in kinematics and dynamics. Consequently, experiments for measurement science education that addresses kinematics and dynamics can help to overcome such issues and to cope with the rise of interdisciplinarity in engineering education [2] when aspects of kinematics and dynamics are considered in the design of the experiments. Electrical engineering laboratory courses at the bachelor level typically consist of experiments involving basic electronics circuits, and measurement of circuit parameters such as currents, voltages, power and waveforms. Advanced laboratory courses for higher-semester students utilize analog and digital semiconductor devices such as transistors, op-amps, and microcontrollers. Experiments involving sensors typically involve dedicated interface circuitry, and the experimental activity consists in measuring the circuit output to determine the physical quantity. While these experiments are necessary for students to develop their basic knowledge in electrical engineering, they do not provide sufficient exposure to topics such as kinematics and sensor fusion algorithms. Many low-cost, simple robot platforms are available off the shelf. A drawback of such systems is that the mechanical integration of various sensors requires substantial modifications making the whole system often fragile and delicate. Customized 3D printing allows to adjust the geometry to ideally host all sensor equipment and to obtain a rather robust setup. 3D printing has become an essential tool in robotics; therefore, low- cost printed platforms have been suggested to be used in education [3]. However, most of the related educational programs focus on higher level of robotics or mechanics, yet more is needed in education in measurement science. Aspects ABSTRACT Robotics and artificial intelligence represent highly interdisciplinary fields, which – in particular on the bachelor level - makes providing a strong fundamental background in the education challenging. With respect to lab exercises in measurement, one approach to provide interdisciplinary hands-on experience is to embed experiments for measurement science in a robotic context. We present a low-cost robot platform that can be used to address several measurement science and sensor topics, and also other aspects such as machine learning, actuators and mechanics. The 3D printed chassis can be equipped with different sensors for environment perception but also be adapted to different embedded PC platforms. In order to also introduce concepts of robot simulation and realization approaches in a hands-on fashion, the table-top robot is also available as a digital twin in the simulation environments Gazebo and CoppeliaSim®, where, e.g., limitations of simulations and required adaption of models to consider non ideal effects of sensors can be studied. mailto:hubert.zangl@aau.at ACTA IMEKO | www.imeko.org June 2023 | Volume 12 | Number 2 | 2 such as sensors and data acquisition and their practical use play an important role for engineers. These aspects should be addressed in the education of students in the field of robotics and artificial intelligence. Furthermore, it is also important to consider uncertainty and raise the awareness towards non-ideal effects present in real systems. Influences due to differences in various acquisition setups and measurement system can be studied using simulations of the system [4]. Additionally, the relevance of the uncertainty for so called “sim2real” approaches (e.g. [5]), which use simulations as a basis for the generation of training data for learning algorithms, can thus be emphasized. The considered course, where the proposed robot platform is introduced, is a laboratory course under the title of “Measurement Science, Sensors and Actuators”. This course will be part of a Bachelor study program under the title Robotics and Artificial Intelligence, which will start in fall 2022. It is one of more than seven laboratory courses out of which the students can choose freely. It needs to be considered that these laboratory courses are to be taken at a rather early in the study program and should give the students a practical context for their further study. Consequently, not all theories behind the experiments will be fully understood in this early stage of education, and this needs to be considered in the design of the exercises. The learning aims are thus hands-on experience with respect to a wide range of topics • Torque, angular velocity, and acceleration • Force, linear velocity, and acceleration • Inertia and moment of inertia • Friction • Mechanical (angular, linear) power, electrical power, and conversion efficiency determination • Data acquisition and recording • Sensors for proprioception and exteroception • Multi-body simulation and development of models from the real world • Comparison of results from simulation and real- world experiments • Influence of noise and other non-ideal effects of sensors and measurement systems, uncertainty propagation • Model based signal processing • Machine learning-based signal processing The design of the experiments aims to touch on all these aspects in order to give students visualization and better understanding of the theory presented in the corresponding lectures. It also covers the often under-represented step to obtain simplified models from real world scenarios [6] and understanding the resulting discrepancies. 2. PROPOSED PLATFORM Figure 1 illustrates a lab scenario. Many data acquisition systems nowadays are PC based and we also make use of tools such as LabVIEW® [7] and MATLAB® [8] allowing for fast automation of measurement tasks even when students work with it for the first time. In addition, frameworks such as ROS [9] allow to easily make first steps with robotics as many modules are available. However, since many students will work in the same room simultaneously, small robots that can be used on the table are advantageous. Consequently, our design comprises tiny 3D printed wheeled robots. 3D printing not only allows for low-cost realizations of robots, but it also allows to easily make adaptions to the chassis of the robots, e.g. in order to mount certain sensors such as RGB cameras, depth cameras, ultrasound and time of flight sensors, wheel speed sensors etc. but also to provide different actuators concepts. Figure 2 illustrates different realizations. These robots are controlled using a Raspberry Pi Zero with ROS on Raspberry Pi OS, but also other platforms such as BeagleBone®, ODROID, and Jetson Nano™ boards utilizing ROS on Ubuntu can be used with the hardware. The robot body frame is constructed using 3D printing depending on the desired mounting configuration of the sensors and actuators. A block diagram of a typical robot with selected hardware components is shown in Figure 3. The robot's single board computer that interfaces with the onboard sensors and actuators are housed within the 3D printed body. The measurement data is published on ROS for further processing. The robot can be connected wirelessly to a PC but can also execute programs for various tasks running on the embedded PC. It is powered by commonly available low-cost portable power banks that can be easily swapped and recharged. Optionally the robots can be mounted with optical tracking markers for use in motion tracking facilities. The proposed platform is a fully functional wheeled robot with various measurement and actuation capabilities. It thus Figure 1. Illustration of the table-top robot as used in a classroom. Figure 2. Photographs of different 3D printed robots. In contrast to off-the shelf robots, the geometry can quickly be adapted to ideally host sensors and actuators. While the left robot can only manipulate objects by shifting them, the robot on the right also includes a simple soft robotics fin ray type gripper [10], which can also be equipped with tactile sensors. ACTA IMEKO | www.imeko.org June 2023 | Volume 12 | Number 2 | 3 provides students a complete exposure to a simple robot and all its internal components and working principles, the students will then be able to adapt and modify the existing platform for different requirements. The models for 3D printing, boards, and software will be provided as open source and students will be able to continue further experiments as they can easily realize their own robot at low costs. 3. INITIAL EXPERIMENTS WITH THE ROBOTS Since one of the ideas is to also enhance the understanding in kinematics and dynamics, the first experiments address measurements related to the motors of the robot. On a simple test bench students can measure the current and voltage applied to the mounted DC motor. The DC motor measurement setup incorporates a disk brake and piezoresistive sensor that can measure the force on the brake. By measuring the force on the support of the brake, torque can be estimated. Additionally, the angular velocity is measured using magnetoresistive sensors counting marks on the shaft. Figure 4 shows a picture of the proposed motor characterization workbench. Consequently, students get familiar with measurement of current, voltage, and power in the electrical domain but also to speed, force, torque, and power in the mechanical domain. Furthermore, this allows to determine the efficiency and consequently the thermal losses and heating of the motors. The magnetoresistive sensors can be used in odometry and the drift due to inaccuracies using integration of the velocity can be observed in a follow up experiment. 4. INTRODUCTION TO ROBOT SIMULATION Many different environments for robot simulation are available, including open source frameworks such as Gazebo [11] and CoppeliaSim® [12]. As the actual time to work in the lab is rather short, a system is preferred that can be used with an easy to learn graphical user interface. CoppeliaSim® provides such an interface and was therefore chosen for the introductory course. Additionally, it allows to select different physics simulation engines such as Bullet [13], Newton Dynamics [14], Open Dynamic Engine [15], and Vortex [16]. The initial simulation experiments thus aim to provide an understanding of capabilities of current robot simulation environments, required parameters and limitations of the simulation approaches. This can be illustrated in the simple scenario of a bouncing ball. For this, a simple sphere can be added using the GUI of CoppeliaSim® and placed in a height of one meter above the ground. When the simulation is started, the ball falls as expected but sticks to the surface without bouncing. In the following, the object parameters in different simulators are discussed that control the simulation of the physical contact. The students should then find appropriate parameters, such that the ball shows a realistic bouncing behavior, including the attenuation over time. This should illustrate that simulations are only approximations of the reality and that results obtained with different simulation engines can be quite different for the same scenario. In order to get realistic behaviors, parameter tuning is required, and the values are not necessarily directly obtainable from the material properties of the objects. This should raise the awareness that simulation results need to be validated in general. As a next step, the simulation of the simple robot is set up. A step file of the 3D printed chassis is provided, and students need to add joints, motors, and wheels. In the following simulations, a torque is assigned to the motors, and the behavior of the robot is analysed by the students. They should verify if the linear acceleration of the robot correctly corresponds to the estimated torque. 5. CONSIDERING MEASUREMENT UNCERTAINTY IN ROBOT SIMULATION In order to achieve realistic simulations that allow development of signal processing algorithms or simulation-based machine learning approaches, also realistic sensor models considering non-ideal characteristics of sensors are important. Typically, robot simulation tools such as CoppeliaSim® provide means for simulation of sensors such as accelerometers and gyroscopes, but non-ideal characteristics of these sensors are usually not included. Consequently, they need to be included by the user. Figure 5 illustrates such a simple model as used in CoppeliaSim®. Based on datasheets of accelerations sensors, students should include effects such as deviation in offset, sensitivity, noise, crosstalk and potentially nonlinearity, such that the simulation model generates realistic sensor data based. Figure 3. Hardware components in the proposed robotic platform. Depending on the requirements additional components can be included. Figure 4. The DC motor has a spinning wheel attached to its shaft. This spinning wheel has holes near its perimeter. The angular velocity of the wheel can be obtained by processing the output signal of the magnetoresistive sensor S1. A brake wheel that can spin freely is mounted next to the spinning wheel, and the force applied can be adjusted and measured. A small extrusion of the brake wheel applies force on the force sensor, whose output can be used to measure the torque. ACTA IMEKO | www.imeko.org June 2023 | Volume 12 | Number 2 | 4 A linear model could look like [ 𝑌1(𝑡) 𝑌2(𝑡) 𝑌3(𝑡) ] = [ 𝑆11 𝑆12 𝑆13 𝑆21 𝑆22 𝑆23 𝑆31 𝑆32 𝑆33 ] [ 𝑋1(𝑡) 𝑋2(𝑡) 𝑋3(𝑡) ] + [ 𝑂1 𝑂2 𝑂3 ] + [ 𝑁1(𝑡) 𝑁2(𝑡) 𝑁3(𝑡) ] , (1) where, 𝑌𝑖 are the sensor outputs, 𝑋𝑖 are the sensor inputs, 𝑆𝑖𝑗 (cross)-sensitivities, 𝑂𝑖 offset values and 𝑁𝑖 noise contributions. For each sensor realization, offsets and sensitivities will be different and noise contributions will vary for each sample. The students should also include an explanation of how the parameters for the random variables are determined from the datasheet of an actual sensor. The model should be developed for one of • 3 axis acceleration sensor • 3 axis gyroscope • pressure sensor. The sensor model should be tested on a simulated robot, e.g. in order to assess the feasibility of the determination of a joint angle of a robot joint using two acceleration. 6. SENSOR FUSION ALGORITHMS An important part of measurement science, especially in robotic context is the application of algorithms to improve the estimate of the measurands in the presence of noise and uncertainties. A popular method used for robotic tracking applications is the Kalman Filter [17]. The proposed wheeled robot is a suitable platform for students to learn about the estimation of the system state from the sensor readings. Even though the full theory behind the Kalman filter will be addressed later in the curriculum, the students should be able to implement the equations and to do first analysis in order to get an idea of the benefits of signal processing methods in measurement science. In a simple exercise the students must estimate and track the velocity and acceleration (in one dimension) of the robot using the Kalman Filter. The robot will move on a straight line on a flat level surface and the output of the angular velocity sensor (𝜔m) and the acceleration (𝑎m) from an Inertial Measurement Unit (IMU) is available as measurements at regular time intervals (d𝑡). The diameter of the robot’s wheel (𝐷) is a known constant. From the measured angular velocity and using the knowledge of the wheel diameter, the measured linear velocity 𝑣m of the robot is obtained as 𝑣m = π 𝐷 𝜔m . (2) The state of the system to be estimated and tracked is 𝑥 = [ 𝑣 𝑎 ] . (3) In this setup, the system has no control inputs, therefore the Kalman Filter state predict equations are, �̂�𝑛+1 = 𝐹 𝑥𝑛 , where 𝐹 = [ 1 d𝑡 0 1 ] (4) and 𝑃𝑛+1 = 𝐹 𝑃 𝐹 T+𝑄𝑛 , (5) where 𝑃 is the covariance matrix that represents the uncertainty in estimation and 𝑄 is process noise. Given the measurements 𝑧 = [ 𝑣m 𝑎m ]. (6) The state update and the uncertainty update equations are given by, �̂�𝑛 = �̂�𝑛−1 + 𝐾𝑛 (𝑧𝑛 − 𝐻�̂�𝑛−1) (7) and 𝑃𝑛 = (𝐼 − 𝐾𝑛 𝐻)𝑃𝑛−1, (8) where 𝐻 is the identity matrix and 𝐾𝑛 is the Kalman gain 𝐾𝑛 = 𝑃𝑛−1 𝐻 𝑇 [𝐻 𝑃𝑛−1 𝐻 T + 𝑅𝑛] −1 , (9) where 𝑅 is the measurement uncertainty matrix. An advanced version of this experiment tracks motion (linear and angular position, velocity, and acceleration) of the robot, additionally positional measurement inputs from the range sensor can be included, and motor voltage and current measurements can be used as control inputs to the system state. This state can then be compared to the ground truth positions obtained from optical motion tracking systems. 7. HIGHER LEVEL ASPECTS The same robots can also be used with optical time of flight sensors or time of flight cameras. With these sensors, it is possible to develop object avoidance approaches based on reinforcement learning in simulation. Here, the aim is to maneuver the robot towards a certain target position while avoiding collision with obstacles. Again, the focus is on the influence of the sensor signal's quality on the training result. We use one or more 8 × 8 multi- zone time of flight ranging sensors [18]. Figure 6 shows a training setup that students can use. Figure 5. Simple acceleration sensor model in CoppeliaSim®. It comprises an ideal force sensor and a seismic mass, the accelerations are determined by dividing the forces as obtained from the physics simulation engine by the mass. Figure 6. Reinforcement learning with gazebo and time of flight sensors. The aim is that the robot navigates to the red rectangle, while avoiding collisions with the obstacles. The simulated sensor signals are illustrated in the top left image, where the distance is encoded in a gray scale image. ACTA IMEKO | www.imeko.org June 2023 | Volume 12 | Number 2 | 5 8. SUMMARY This paper summarizes an approach to integrate robots in lab exercises on measurement science. The simple, low-cost table- top robot with 3D printed chassis can be equipped with various sensors and can be used for a variety of experiments starting from current and voltage measurement on a DC motor, measurement of force, speed, and mechanical power, as well as conversion efficiency. Non ideal effects of inertial sensors as they are used in robots can be simulated using simulation frameworks and the consequences can also be studied in the experiments. The sensors and measurement systems can also be used and studied in signal processing, and signal fusion approaches as well as in machine learning allowing to study the influence of the signal quality on the training results. ACKNOWLEDGEMENT This work has received funding from the "European Regional Development Fund" (EFRE) and "REACT-EU" (as reaction of the EU to the COVID-19 pandemic) by the "Kärntner Wirtschaftsförderungs-Fonds" (KWF) within the project Pattern-Skin 3520/34263749706. REFERENCES [1] J. M. Esposito, The State of Robotics Education: Proposed Goals for Positively Transforming Robotics Education at Postsecondary Institutions, IEEE Robot. Automat. Mag., vol. 24, no. 3, Sep. 2017, pp. 157–164. DOI: 10.1109/MRA.2016.2636375 [2] M. Roy, A. Roy, The Rise of Interdisciplinarity in Engineering Education in the Era of Industry 4.0: Implications for Management Practice, IEEE Eng. Manag. Rev., vol. 49, no. 3, Sep. 2021, pp. 56–70. DOI: 10.1109/EMR.2021.3095426 [3] L. Armesto, P. Fuentes-Durá, D. Perry, Low-cost Printable Robots in Education, J Intell Robot Syst, vol. 81, no. 1, Jan. 2016, pp. 5–24. DOI: 10.1007/s10846-015-0199-x [4] T. Mitterer, L. Faller, H. Müller, and H. Zangl, A Rocket Experiment for Measurement Science Education, Journal of Physics: Conference Series, 2018, vol. 1065, no. 2, p. 022005. DOI: 10.1088/1742-6596/1065/2/022005 [5] C. Doersch, A. Zisserman, Sim2real transfer learning for 3D human pose estimation: motion to the rescue, Advances in Neural Information Processing Systems, 2019, vol. 32, 14 pp. DOI: 10.48550/arXiv.1907.02499 [6] L. L. Bucciarelli, S. Kuhn, Engineering education and engineering practice: Improving the fit, Between Craft and Science: Technical Work in the United States, edited by Stephen R. Barley and Julian E. Orr, Ithaca, NY: Cornell University Press, 1997, pp. 210-229. DOI: 10.7591/9781501720888-012 [7] National Instruments, LabVIEW. Online [Accessed 8 June 2023] https://www.ni.com/en-us/shop/labview.html [8] Mathworks, Matlab. Online [Accessed 8 June 2023] https://www.mathworks.com/products/matlab.html [9] M. Quigley, K. Conley, B. P. Gerkey, J. Faust, T. Foote, J. Leibs, R. Wheeler, A. Y. Ng, ROS: an open-source Robot Operating System, in ICRA Workshop on Open Source Software, 2009, vol. 3, no. 3.2, p. 5. [10] W. Crooks, G. Vukasin, M. O’Sullivan, W. Messner, C. Rogers, Fin Ray® Effect Inspired Soft Robotic Gripper: From the RoboSoft Grand Challenge toward Optimization, Front. Robot. AI, vol. 3, Nov. 2016. DOI: 10.3389/frobt.2016.00070 [11] Open Robotics, Gazebo. Online [Accessed 7 August 2022] https://gazebosim.org/home [12] Coppelia Robotics, Robot simulator CoppeliaSim: create, compose, simulate, any robot. Online [Accessed 7 August 2022] https://www.coppeliarobotics.com [13] pybullet.org, Bullet Real-Time Physics Simulation. Online [Accessed 12 January 2023] https://pybullet.org/wordpress/ [14] Julio Jerez, Alain Suero and various other contributors, Newton Dynamics. Online [Accessed 12 January 2023] http://newtondynamics.com/forum/newton.php [15] Russ Smith, Open Dynamic Engine. Online [Accessed 12 January 2023] http://www.ode.org/ [16] CM Labs, Vortex Studio. Online [Accessed 12 January 2023] https://www.cm-labs.com/vortex-studio/ [17] R. E. Kalman, A new approach to linear filtering and prediction problems, Journal of Basic Engineering (ASME), vol. 82, Mar. 1960, pp. 35–45. DOI: 10.1115/1.3662552 [18] STMicroelectronics, VL53L5CX - Time-of-Flight 8x8 multi-zone ranging sensor with wide field of view. Online [Accessed 31 March 2022] https://www.st.com/content/st_com/en/campaigns/vl53l5cx- time-of-flight-sensor-multizone.html https://doi.org/10.1109/MRA.2016.2636375 https://doi.org/10.1109/EMR.2021.3095426 https://doi.org/10.1007/s10846-015-0199-x https://doi.org/10.1088/1742-6596/1065/2/022005 https://doi.org/10.48550/arXiv.1907.02499 https://doi.org/10.7591/9781501720888-012 https://www.ni.com/en-us/shop/labview.html https://www.mathworks.com/products/matlab.html https://doi.org/10.3389/frobt.2016.00070 https://gazebosim.org/home https://www.coppeliarobotics.com/ https://pybullet.org/wordpress/ http://newtondynamics.com/forum/newton.php http://www.ode.org/ https://www.cm-labs.com/vortex-studio/ https://doi.org/10.1115/1.3662552 https://www.st.com/content/st_com/en/campaigns/vl53l5cx-time-of-flight-sensor-multizone.html?ecmp=tt24055_gl_ps_nov2021&aw_kw=time%20of%20flight%20sensor&aw_m=e&aw_c=15158713672&aw_tg=aud-1232809041753:kwd-364398038077&aw_gclid=CjwKCAjwopWSBhB6EiwAjxmqDfZxhMfkx7mWtBXS9FUo8LVzwM21kmu-6_7U6IdEECCYbTLJ77gfLxoCn4cQAvD_BwE&gclid=CjwKCAjwopWSBhB6EiwAjxmqDfZxhMfkx7mWtBXS9FUo8LVzwM21kmu-6_7U6IdEECCYbTLJ77gfLxoCn4cQAvD_BwE https://www.st.com/content/st_com/en/campaigns/vl53l5cx-time-of-flight-sensor-multizone.html?ecmp=tt24055_gl_ps_nov2021&aw_kw=time%20of%20flight%20sensor&aw_m=e&aw_c=15158713672&aw_tg=aud-1232809041753:kwd-364398038077&aw_gclid=CjwKCAjwopWSBhB6EiwAjxmqDfZxhMfkx7mWtBXS9FUo8LVzwM21kmu-6_7U6IdEECCYbTLJ77gfLxoCn4cQAvD_BwE&gclid=CjwKCAjwopWSBhB6EiwAjxmqDfZxhMfkx7mWtBXS9FUo8LVzwM21kmu-6_7U6IdEECCYbTLJ77gfLxoCn4cQAvD_BwE