CarGameAR: An Integrated AR Car Game Authoring Interface for Custom-Built Car Programed on Arduino Board

Dang Bach Bui, Wanwan Li, Hong HuangarXiv 2023 · DOI · arXiv

Abstract

In this paper, we present CarGameAR: An Integrated AR Car Game Authoring Interface for Custom-Built Car Programed on Arduino Board. The car consists of an Arduino board, an H-bridge, and motors. The objective of the project is to create a system that can move a car in different directions using a computer application. The system uses Unity software to create a virtual environment where the user can control the car using keyboard commands. The car's motion is achieved by sending signals from the computer to the Arduino board, which then drives the motors through the H-bridge. The project provides a cost-effective and efficient way to build a car, which can be used for educational purposes, such as teaching programming. Moreover, this project is not limited to the control of the car through keyboard commands in a virtual environment. The system can be adapted to support augmented reality (AR) technology, providing an even more immersive and engaging user experience. By integrating the car with AR, the user can control the car's motion using physical gestures and movements, adding an extra layer of interactivity to the system. This makes the car an ideal platform for game development in AR, allowing the user to create driving games that blend the physical and virtual worlds seamlessly. Additionally, the car's affordability and ease of construction make it an accessible and valuable tool for teaching programming and principles in a fun and interactive way. Overall, this project demonstrates the versatility and potential of the car system, highlighting the various applications and possibilities it offers for both education and entertainment.

Introduction

While Augmented Reality (AR) has exploded in popularity, creating "Phygital" (physical + digital) experiences remains a high-hurdle task. Most existing AR racing setups are either entirely virtual or require prohibitively expensive specialized hardware. CarGameAR addresses this gap by providing an open-source authoring interface that bridges physical robotics and virtual environments. The system allows students and hobbyists to create and play AR driving games where physical movements and virtual obstacles coexist in real-time using low-cost, off-the-shelf components.

Methodology and Hardware Design

The researchers developed a hardware-software stack designed for affordability and modularity. The car's chassis was designed in TinkerCAD and 3D-printed using PLA plastic. The "brain" of the vehicle is an Arduino board connected to an L298N H-bridge—a specialized circuit that allows the user to control the speed and direction of DC motors.

The custom-built Arduino car featuring a 3D-printed chassis and motor assembly.

Software Integration and AR Authoring

The team utilized Unity to build the AR interface and the Ardity package to handle serial communication over a USB connection. When a user inputs a command via the keyboard (e.g., 'W' for forward), Unity sends a signal via the COM port to the Arduino. The Arduino interprets this command, triggers the H-bridge to spin the motors, and sends a confirmation signal back to Unity to ensure synchronization between the virtual and physical worlds.

The interface supports a drag-and-drop system within Unity, allowing users to place virtual obstacles—such as trees or stones—directly into the camera feed of the real-world environment.

The Unity authoring interface showing the virtual AR scene alongside the real-world camera feed.

Key Insights and Results

A significant finding during development was the "Caster Wheel Conundrum." The authors initially struggled with unpredictable movement due to a free-spinning front caster wheel. They discovered that physical restrictions (gluing the wheel to rotate only forward/backward) were more effective and energy-efficient than complex software stabilization.

Qualitative testing showed that the system performed optimally on smooth, flat surfaces. On rougher terrain, increased friction caused inconsistent motor speeds, leading to "crooked" movement that could break AR alignment. Despite these mechanical challenges, the project successfully demonstrated a functional pipeline for controlling a physical car through a virtual AR overlay with minimal latency.

Limitations and Future Work

The current iteration of CarGameAR is constrained by a physical USB "umbilical cord," which limits range and can cause interference. Future versions aim to implement wireless communication via Bluetooth or Wi-Fi. Additionally, the authors suggest adding wheel encoders for more precise positional tracking to improve performance on uneven surfaces. Beyond gaming, this tool holds potential for teaching physics, engineering, and interactive marketing.

Summary updated

Abstract

In this paper, we present CarGameAR: An Integrated AR Car Game Authoring Interface for Custom-Built Car Programed on Arduino Board. The car consists of an Arduino board, an H-bridge, and motors. The objective of the project is to create a system that can move a car in different directions using a computer application. The system uses Unity software to create a virtual environment where the user can control the car using keyboard commands. The car's motion is achieved by sending signals from the computer to the Arduino board, which then drives the motors through the H-bridge. The project provides a cost-effective and efficient way to build a car, which can be used for educational purposes, such as teaching programming. Moreover, this project is not limited to the control of the car through keyboard commands in a virtual environment. The system can be adapted to support augmented reality (AR) technology, providing an even more immersive and engaging user experience. By integrating the car with AR, the user can control the car's motion using physical gestures and movements, adding an extra layer of interactivity to the system. This makes the car an ideal platform for game development in AR, allowing the user to create driving games that blend the physical and virtual worlds seamlessly. Additionally, the car's affordability and ease of construction make it an accessible and valuable tool for teaching programming and principles in a fun and interactive way. Overall, this project demonstrates the versatility and potential of the car system, highlighting the various applications and possibilities it offers for both education and entertainment.
BibTeX
@misc{bui2023cargamear,
  author = {Dang Bach Bui and Wanwan Li and Hong Huang},
  title = {{CarGameAR: An Integrated AR Car Game Authoring Interface for Custom-Built Car Programed on Arduino Board}},
  year = {2023},
  eprint = {2305.00084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.00084},
}
Figure