Project showcase
Banger BLE Car

Banger BLE Car © CC BY-NC-SA

An easy Bluetooth controlled toy car.

  • 1,358 views
  • 0 comments
  • 10 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
DC motor (generic)
With integrated speed reducer.
×1
61pby065esl  sx679  tnr8syww5d
HC-05 Bluetooth Module
×1
Tens70
9V battery (generic)
×1
61vhxtmzbyl
AA Batteries
×6
6xAA battery holder
×1
12002 04
Breadboard (generic)
Small size
×1
11026 02
Jumper wires (generic)
×1
Marble
×1
Smartphone
×1

Necessary tools and machines

3drag
3D Printer (generic)
Lasercutter
Laser cutter (generic)

Apps and online services

About this project

An Arduino school project made in two months of maximum time.

SPECIFICATIONS

STRUCTURE

The automobile is almost entirely built of Plexiglass pieces, worked with laser cutting, embedded and glued. The two motors, with integrated speed reducer, and Arduino, are screwed in the Plexiglass structure. The structure has almost entirely designed on Autocad, taking note of the Plexiglass slab’s thickness(4mm). Other parts, which had to be 3D printed has been designed on Solidworks. All the parts has been projected to simplify the wiring, avoiding welding the jumpers.

Code

bangerArduino
#include <SoftwareSerial.h>
char data = 0;
void setup() {
  Serial.begin(9600);         //Sets the data rate in bits per second (baud) for serial data transmission

  // Impostazione canale A
  pinMode(2, OUTPUT); // initialize direction pin (motor A)
  pinMode(3, OUTPUT);  // initialize brake pin (motor A)

  // Impostazione canale B
  pinMode(4, OUTPUT); // initialize direction pin (motor B)
  pinMode(5, OUTPUT);  // initialize brake pin (motor B)
}

void loop() {
  if (Serial.available() > 0) // Send data only when you receive data:
  {
    data = Serial.read();      //Read the incoming data and store it into variable data
    Serial.print(data);        //Print Value inside data in Serial monitor
    Serial.print("\n");        //New line
    switch (data) {
      case '1':
        // Motor A
        digitalWrite(2, HIGH);   // set forward direction (motor A)
        digitalWrite(3, LOW);    // disactivate brake pin (motor A)
        analogWrite(6, 255);     // set max speed (motor A)
        // Motor B 
        digitalWrite(4, HIGH);   // set forward direction (motor B)
        digitalWrite(5, LOW);    // disactivate brake pin (motor B)
        analogWrite(9, 255);     //set max speed (motor B)
      case '2':
        // Motor A
        digitalWrite(2, HIGH);  // set forward direction (motor A)
        digitalWrite(3, LOW);   // disactivate brake pin (motor A)
        analogWrite(6, 0);      //set min speed (motor A)
        // Motor B
        digitalWrite(4, LOW);    // set backward direction (motor B)
        digitalWrite(5, LOW);    // disactivate brake pin (motor B)
        analogWrite(9, 0);       //set min speed (motor B)
        break;
      case '3':
        // Motor A
        digitalWrite(2, HIGH);   // set forward direction (motor A)
        digitalWrite(3, LOW);    // disactivate brake pin (motor A)
        analogWrite(6, 255);     //set max speed (motor A)
        // Motor B
        digitalWrite(4, HIGH);   // set forward direction (motor B)
        digitalWrite(5, LOW);    // disactivate brake pin (motor B)  
        analogWrite(9, 127);     //set half speed (motor B)
        break;
      case '4':
        // Motor A
        digitalWrite(2, HIGH);    // set forward direction (motor A)
        digitalWrite(3, LOW);     // disactivate brake pin (motor A)
        analogWrite(6, 127);      //set half speed (motor A)
        // Motor B
        digitalWrite(4, HIGH);   // set forward direction (motor B)
        digitalWrite(5, LOW);    // disactivate brake pin (motor B) 
        analogWrite(9, 255);     //set max speed (motor B)
        break;
    }
  }
}

Schematics

cattura_(2)_8p49DUXGBY.jpg
Cattura (2) 8p49duxgby

Comments

Similar projects you might like

My First Arduino 101 Car Controlled by BLE

Project tutorial by Alexis Santiago Allende

  • 1,830 views
  • 0 comments
  • 9 respects

Robotic Car controlledover Bluetooth with Obstacle Avoidance

Project showcase by S.Ranjith Reddy

  • 9,601 views
  • 5 comments
  • 17 respects

Bluetooth Mini Car

Project showcase by Hesham

  • 8,138 views
  • 2 comments
  • 29 respects

Android controlled robot car

Project showcase by Isara Naranirattisai

  • 7,900 views
  • 2 comments
  • 13 respects

Obstacle Avoiding Car

Project showcase by Team Adam

  • 5,745 views
  • 1 comment
  • 18 respects

Bluetooth Controlled Car

Project tutorial by JANAK13

  • 2,534 views
  • 7 comments
  • 16 respects
Add projectSign up / Login