Project showcase
Remote Controlled Car

Remote Controlled Car © GPL3+

Remote controlled Car designed to navigate a course and lift a small amount of weight.

  • 2,740 views
  • 2 comments
  • 9 respects

Components and supplies

Servos (Tower Pro MG996R)
5 servos were used on the car
×5
A000066 iso both
Arduino UNO & Genuino UNO
Arduino UNO and Arduino USB host shield were used
×1
Relay (generic)
2 Channel really board was used to control the motor
×1
E switch eg1218 image 75px
Slide Switch
Power on/off switches
×2
Tens70
9V battery (generic)
9v Battery holder
×1
Adafruit industries ada830 image 75px
4xAA battery holder
with 4 AA batteries
×1

About this project

This project was built for a competition, to compete against similarly designed cars. It had to navigate a course, then pick up a half a pound weight carry it up a thirty degree incline.

Once at the top, the weight was set in a cup across a ten inch gap. The car then had to pick up another weight across the gap and transport it back down the incline and drop it off.  The car had to then maneuver back through the course to the finish.

Overall, the car performed really well. The chassie was built using some sheet and angle aluminum. The drivetrain consisted of tank style steering. The drive servos chosen were tower pro mg995 because of metal gearing and high torque. Wheels for the car were designed in Creo and were 3D rapid prototyped. The main crane arm was also 3D rapid prototyped. Both the crane and stabilizing arm were made of carbon fiber. At the end of the crane fork there was a very small wire used to pick the weight up. The stabilizing arm was used to make sure the car didn't flip forward when the weight was being deposited or picked up from across the gap.

A Hitech 311 servo was fastened to the stabilizing arm. For the electronics and controls, a wireless Play Station 3 controller was chosen, that connected to a Bluetooth dongle. The dongle was then connected to the Arduino USB host shield, which was stacked on a regular Arduino UNO.

Once code was created, the driver servos and the stabilizer servo could be controlled directly from the ports of the Arduino USB Host shield. The crane was controlled by a Hitech mg485 servo that had been modified to be a DC motor.  The motor was controlled by a two-channel relay board. The Arduino USB host shield sent a signal to the relay board to tell it when to send power to the motor, and in what direction.

After the car was designed, assembled, and some of the kinks were worked out, it was ready for competition. The car performed very well on the day of competition, posting the fastest time to complete the course. I would like to think my team members for their time and hard work (Darrin Small, Glen Smith, Lauren Toma, Alex Yoon, Dmytro Zaytsev, and Ximin Zhao).

Code

Play Station 3 controls codingArduino
This code is used to control the arduino
Team 7 bluetooth set up and drive code. 
Modified by Glen Smith April 15, 2016

 */

#include <PS3BT.h>                                                    //Include the necessary libraries.
#include <Servo.h>

USB Usb;
BTD Btd(&Usb);
PS3BT PS3(&Btd); 

Servo servo1;                                                         //Create instances of type Servo. servo1 and servo2 are drive servos. servo3 is for the stabalizer. 
Servo servo2;
Servo servo3;

int position=90; 

void setup() 
{
  Serial.begin(115200);                                              
  if (Usb.Init() == -1)
  {                                            
    Serial.print(F("\r\nOSC did not start"));
    while(1); //halt
  }
  Serial.print(F("\r\nPS3 Bluetooth Library Started"));              
  
  
  servo1.attach(5);                                                  //Drive servo1 and servo2
  servo2.attach(3);                                                   
  servo3.attach(6);                                                  //Crane arm on servo3
  pinMode(7,OUTPUT);
  pinMode(8,OUTPUT);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
}
void loop() 
{
  Usb.Task();

  if(PS3.PS3Connected || PS3.PS3NavigationConnected)                //Drive code 
  {
    
    servo1.write(map(PS3.getAnalogHat(RightHatY), 0, 255, 0, 165));
    servo2.write(map(PS3.getAnalogHat(LeftHatY), 0, 255, 180, 15));

    if(PS3.getButtonPress(DOWN) && position<178)                      //servo3 for stabilization drive out. the in and out need to be teste dto make sure everything goes the correct way.
    {
     servo3.write(position++);
     delay(10);
      }

    if(PS3.getButtonPress(UP) && position>3)                     //servo3 drive in
    {
      servo3.write(position--);
      delay(10);
      }
     
   if(PS3.getButtonPress(X))                                //DC drive out. Needs limiting factrs for crane and testing with the shield 
   { digitalWrite(7,HIGH);
      delay(10);
      }
      else
      { digitalWrite(7,LOW);
        }
    
    if(PS3.getButtonPress(TRIANGLE))                                       //DC drive in.
    { digitalWrite(8,HIGH);
      delay(10);
      }
      else
      { digitalWrite(8,LOW);
        }   
  }
  
  }
   

Schematics

Controls Schematic
This is the schematic for all of the electronics. Its kind of complicated in the center of the diagram, however the bluetooth dongle receives what the PS3 controller is telling it and it sends it through the Arduino USB host shield that is plug in to the Arduino UNO which tells everything else that to do.
Team7 elect diag 2 schem%20copy

Comments

Author

Default
Jeremy Vestal
  • 1 project
  • 3 followers

Published on

April 27, 2016

Members who respect this project

10487434 10101544397202548 602652689234148955 n1112PfeerickDefaultUysal 23Photo

and 3 others

See similar projects
you might like

Similar projects you might like

PlayStation Remote Controlled Wireless Car

Project showcase by Jasmeet Singh

  • 2,587 views
  • 1 comment
  • 6 respects

How to Make a Remote Controlled Robotic Hand with Arduino

Project showcase by Gabry295

  • 35,364 views
  • 5 comments
  • 110 respects

RC Car to BT Car Controlled with Blynk

Project tutorial by Team Daxes Hacks

  • 3,598 views
  • 2 comments
  • 6 respects

Smartphone Controlled Arduino 4WD Robot Car

Project in progress by Andriy Baranov

  • 53,241 views
  • 43 comments
  • 98 respects

Android controlled robot car

Project showcase by Isara Naranirattisai

  • 8,634 views
  • 2 comments
  • 13 respects

Robotic Car Controlled over Bluetooth by Andriod Phone

Project showcase by S.Ranjith Reddy

  • 4,431 views
  • 0 comments
  • 9 respects
Add projectSign up / Login