Autonomous Driving Training with XR

关于

发行日期

2026年5月28日

发行商

ContentsDa Inc

This content features Bluetooth communication with an Arduino 2WD car. Assemble the car using an ESP32 DevKit V1, TB6612FNG driver, 2WD chassis, breadboard, M-F/M-M cables, battery holder, 18650 batteries, and a switch. Then, upload this sample code to the ESP32.

The code drives two DC motors via Bluetooth (Classic BT) using commands: F (Forward), B (Backward), L (Left), R (Right), and S (Stop). Each movement automatically stops after 300–400ms.

C++ void loop() { if (SerialBT.available()) { char command = SerialBT.read(); Serial.println(command); if (command == 'F') { moveForward(); delay(400); stopMotors(); } else if (command == 'B') { moveBackward(); delay(400); stopMotors(); } else if (command == 'L') { turnLeft(); delay(325); stopMotors(); } else if (command == 'R') { turnRight(); delay(325); stopMotors(); } else if (command == 'S') { stopMotors(); } } } The car operates once you add the specific motor control functions to this loop and upload it to the ESP32.

  1. Select 1 of the 10 available maps.

  2. Connect Bluetooth via the Options tab.

  3. Controls: A (Reverse), B (Forward), Y (Right), X (Left), Right Joystick Click (View Camera).

  4. Complete 5 laps to unlock autonomous driving.

显示更多 显示更少

支持的平台

更多详情

类型
玩家模式
游戏模式
语言

相关游戏

Dance Guru Dance Guru
  • 体育
  • 实践训练
  • 学习
  • 健身与健康
Dance Guru

免费

发现

浏览

博客