Overview

Our team built this car from parts rather than a kit. An Arduino Uno drove four gearbox motors through an L298N driver, an HC-05 Bluetooth module received commands from an Android phone, and my father helped me with the code. The phone app had no preset controls for our car, so every direction and turn had to be mapped by hand.

The team was Yos Sebastian, Fitra Hutomo, Bagas Tunjung, Hanif Ramadhan and Fernando Desma.

Year
2018
Team
5 students
Board
Arduino Uno
Control
Android over Bluetooth
Software
Arduino IDE 1.6.3
Status
Archived prototype

How it worked

The phone ran a free app called Bluetooth RC Controller and sent one character per command. The HC-05 passed those characters to the Arduino over a software serial connection. The sketch read each command and switched the two channels of the L298N, which powered the four 6V gearbox motors. Everything ran from 9V batteries on an acrylic chassis.

  1. Mount the Arduino, HC-05, L298N drivers and four gearbox motors on the acrylic chassis.
  2. Wire the motors and Bluetooth module, avoiding pins 0 and 1 because they were unstable.
  3. Write the control sketch and upload it with Arduino IDE 1.6.3.
  4. Pair the phone, open Bluetooth RC Controller, and drive.
Fritzing wiring diagram showing an Arduino Uno, an HC-05 module, two L298N drivers and four motors.
Wiring reference: Arduino Uno, HC-05 and two L298N drivers (Fritzing diagram by Andry Borovov).

What was hard

  • Pins 0 and 1 on the Uno were unstable, so the Bluetooth connection had to stay away from them.
  • With a small budget and little experience, the chassis worked but was never factory-finished.
  • The wiring wasted battery, so the car needed frequent charging.
  • The code did not always behave, and we revised and re-uploaded it several times.

What we took away

By the end, the car drove reliably from any Android phone running Gingerbread or newer. We found that pairing speed depended more on the Android version than on the hardware, and that distance barely changed how long pairing took.

If we built it again, we would add a distance sensor, track down the battery drain, and try radio control for a longer range.

A memory worth keeping

Two things stayed with me: my teacher's smile while reviewing the project, and my classmates crowding around to try it. My math teacher even offered Rp 2.5 million to buy it.