99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

Contact the editor at the end of the article to obtain the project source code.

The RC-Tank is an open-source remote-controlled tank project based on the Arduino Nano development board, combined with the HC-05 Bluetooth module and the L298N motor driver module, along with a bamboo 3D printed shell. This project allows you to easily create a tank that connects to a mobile app via Bluetooth for wireless control, enabling you to command the tank to move forward, backward, and turn using your smartphone app.99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

RC-Tank Bill of Materials

99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

To complete the RC-Tank open-source project, you will need to prepare some basic electronic components and tools:

  • Core Control Board: Arduino Nano

  • Bluetooth Communication: HC-05 Bluetooth module (for wireless connection between the phone and the tank)

  • Motor Driver: L298N motor driver module (to drive the tank’s DC motors)

  • Power Source:

    • 7.4V 1300 mAh LiPo battery (to power the motors)

    • 9V battery and battery holder (to power the Arduino and Bluetooth module)

  • Drive Mechanism: 4 DC motors

  • Connecting Wires: Jumper wires

  • Structural Components: M3 nuts

  • 3D Printer: A 3D printer (to print the tank body and tracks)

  • Control Terminal: An Android phone (with the corresponding Bluetooth remote control app installed)

The 3D printing files include parts for the tank body, tracks, and side panels. Ensure that the 3D printer is set up correctly to print these plastic parts, which form the basic framework of the tank.

Link to the tank body 3D model: https://thingiverse.com/thing:3004073

Link to the tank tracks and side panels 3D models: https://thingiverse.com/thing:972768

Assemble the printed 3D parts with the electronic components to form a complete tank model.

99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

RC-Tank Circuit and System Programming

  • Circuit Connections

99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

The power supply for the RC-Tank open-source project, the serial communication between the Bluetooth module and Arduino, and the connections between the motor driver module, motors, and Arduino are shown in the diagram above.

  • Programming

The core code for the RC-Tank open-source project is as follows, responsible for parsing the Bluetooth commands sent from the mobile app and controlling the motor driver module to make the tank perform the corresponding actions. You can upload it to the Arduino Nano development board using the Arduino IDE.

// DRONE PROTON RC TANK CODES
const int sol_enable = 11;  // ENABLE A
const int sag_ileri = 10;   // INPUT 1
const int sag_geri = 9;     // INPUT 2
const int sol_ileri = 8;    // INPUT 3
const int sol_geri = 7;     // INPUT 4
const int sag_enable = 6;   // ENABLE B

void setup() {
    pinMode(sag_ileri, OUTPUT);
    pinMode(sag_geri, OUTPUT);
    pinMode(sol_ileri, OUTPUT);
    pinMode(sol_geri, OUTPUT);
    pinMode(sag_enable, OUTPUT);
    pinMode(sol_enable, OUTPUT);
    Serial.begin(9600);
}

void loop() {
    if (Serial.available() > 0) {
        char gelen_veri = Serial.read();
        Serial.println(gelen_veri);

        if (gelen_veri == 'R') { // if incoming_data is 'R'
            /* get the car back */
            digitalWrite(sag_ileri, 1);
            digitalWrite(sag_geri, 0);
            digitalWrite(sol_ileri, 1);
            digitalWrite(sol_geri, 0);
            analogWrite(sag_enable, 255); // motor speed
            analogWrite(sol_enable, 255);
        }

        if (gelen_veri == 'F') { // if incoming_data is 'F'
            /* get the car left */
            digitalWrite(sag_ileri, 0);
            digitalWrite(sag_geri, 1);
            digitalWrite(sol_ileri, 1);
            digitalWrite(sol_geri, 0);
            analogWrite(sag_enable, 255); // motor speed
            analogWrite(sol_enable, 255);
        }

        if (gelen_veri == 'B') { // if incoming_data is 'B'
            /* get the car right */
            digitalWrite(sag_ileri, 1);
            digitalWrite(sag_geri, 0);
            digitalWrite(sol_ileri, 0);
            digitalWrite(sol_geri, 1);
            analogWrite(sag_enable, 255); // motor speed
            analogWrite(sol_enable, 255);
        }

        if (gelen_veri == 'L') { // if incoming_data is 'L'
            /* get the car forward */
            digitalWrite(sag_ileri, 0);
            digitalWrite(sag_geri, 1);
            digitalWrite(sol_ileri, 0);
            digitalWrite(sol_geri, 1);
            analogWrite(sag_enable, 255); // motor speed
            analogWrite(sol_enable, 255);
        }

        if (gelen_veri == 'S') { // if incoming_data is 'S'
            /* get the car stop */
            digitalWrite(sag_ileri, 0);
            digitalWrite(sag_geri, 0);
            digitalWrite(sol_ileri, 0);
            digitalWrite(sol_geri, 0);
        }
    }
} 

99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

After assembly, connect the power supply, install the Arduino Bluetooth car controller app on your phone, and try to connect via Bluetooth to test the tank’s various functions.

If you have any needs for source code procurement or project delivery, please scan the code to contact the editor, WeChat ID: beacon0418

99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young Makers

99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young MakersPrevious RecommendationsEspressif ESP32 + Doubao Smart AI ChatbotArduino Open Source ESP32 Smart WatchSource Code Delivery for IoT Smart Water Management and Wastewater Treatment90 Yuan DIY Smart AI Watch based on DeepSeek100 Yuan Smart AI Cycling ComputerSmart AI Monitoring of Boss’s Movements While WorkingThis challenging IoT journey has lasted for ten years.99 Yuan, Open Source Arduino + Bamboo 3D Printing, DIY Bluetooth Remote Control Tank for Young MakersDisclaimer:The content published by this public account comes from the internet, and we respect and uphold the rights of the original authors. Due to the numerous sources of information, if there are any copyright issues with the article content, or if the images, materials, download links, etc. used in the article involve infringement, please inform us, and we will handle it promptly.

Leave a Comment