SlideShare a Scribd company logo
1 of 9
ROVER PROJECT #1: Maneuvering the Rover
Andrew Brouillete, Michael Hernandez, and Bach Nguyen
Report by: Bach Nguyen
CSIT Department
Southeastern Louisiana University
Hammond, LA 70401
Contact Number: 985-662-2106
Contact Email: bach.nguyen-2@selu.edu
ABSTRACT:
This project is done to demonstrate our understanding of using the DFRobot V1.2 Motor
Shield. By controlling the signal from the Arduino to the motor shield we were able to maneuver
it in 4 directions. Here is the list of directions: backward, forward, left and right.
INTRODUCTION
At the most basic level, electric motors exist to convert electrical energy into mechanical
energy. This is done by way of two interacting magnetic fields -- one stationary, and another
attached to a part that can move. A number of types of electric motors exist, but most BEAMbots
use DC motors1 in some form or another. DC motors have the potential for very high torque
capabilities (although this is generally a function of the physical size of the motor), are easy to
miniaturize, and can be "throttled" via adjusting their supply voltage. DC motors are also not
only the simplest, but the oldest electric motors. The basic principles of electromagnetic
induction were discovered in the early 1800's by Oersted, Gauss, and Faraday. By 1820, Hans
Christian Oersted and Andre Marie Ampere had discovered that an electric current produces a
magnetic field. The next 15 years saw a flurry of Cross-Atlantic experimentation and innovation,
leading finally to a simple DC rotary motor. A number of men were involved in the work, so
proper credit for the first DC motor is really a function of just how broadly you choose to define
the word "motor."(Seale 1)
BACKGROUND:
Because of these reasons, the dc motor is chosen to use to drive a set of mechanical gear
that is connected to the wheel. This particular set of rover from DFRobot has 4 wheels which are
drive by 4 dc motors.
PROJECT GOALS:
The goal of this project are to get familiar with the control system of a 4 wheel drives
rover using. We set up the rover to move forward, backward, turn left and turn right depends on
which function is called in the main function of the Arduino. Also we attempted to do the 8
figure with the rover.
METHODOLOGY
By utilize these following materials we were able to complete the rover and make it
move:
 DFRobot 4 Wheel Drives Kit
 DFRobot Arduino Uno
 DFRobot Motor Shield V 1.2
 9 V power supply
We choose to do a tank control mode for the turning since there are no mechanic part of the
rover that let us maneuver it using the default setup. To use the tank control mode of the rover
we connect the left side motors of the rover to the first 2 slots in the motor shield connector and
the right side to the last 2 slots of the motor shield. To make sure the wire stay connected and not
compromise the power connection between the shield and the motors we twist the wires together
to make one single input to the slot. Below is the picture of the finish product should look like.
Here is the code and the description for the functionalities of the rover.
int E1 = 5;
int M1 = 4;
int E2 = 6;
int M2 = 7;
int i = 0;
int j = 0;
void setup()
{
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
}
void loop()
{
figure8();
}
void figure8(){
forward();
for(i = 0; i < 4;i++){
forward();
left();
if (i == 3){
forward();
for(j = 0; j < 4 ; j++){
forward();
right();
}
}
}
i = 0 ;
j = 0 ;
}
void forward(){
digitalWrite(M1,HIGH); //clockwise turn right
digitalWrite(M2, HIGH);
analogWrite(E1, 220); //PWM Speed Control
analogWrite(E2, 220); //PWM Speed Contro
delay(1000);
}
void backward(){
digitalWrite(M1,LOW); //clockwise turn right
digitalWrite(M2, LOW);
analogWrite(E1, 220); //PWM Speed Contro
analogWrite(E2, 220); //PWM Speed Control
delay(1000);
}
void right(){
digitalWrite(M1,HIGH); //clockwise turn right
digitalWrite(M2, LOW);
analogWrite(E1, 200); //PWM Speed Control
analogWrite(E2, 230); //PWM Speed Control
delay(1000);
}
void left(){
digitalWrite(M1,LOW); //counter clockwise turn left
digitalWrite(M2, HIGH);
analogWrite(E1, 230); //PWM Speed Control
analogWrite(E2, 200); //PWM Speed Control
delay(1000);
}
In this code, for each function with the entitled with direction are made of 2 set of function to
control motor set 1 and motor set 2. To be able to move forward, both of the set has to have a
high signal going through it. For it to go backward, the 2 set of motor is set to both receive a low
digital Input from the Arduino. To turn right the first set must be write high with speed slower
than set 2 with low signal and higher speed due to the lack in traction of the tires. To turn left the
same thing is done but opposite with turning right. For the figure 8 we use a counter in a for loop
to control the number of turns the rover make to create a circle of that direction then we add
another counter to stop it from going the other way then start going the other way to complete the
letter 8. To get the traction of the tires are really bad we decided to wrap wires around the wheels
like the picture below.
RESULTS
After countless time of recalibration, we finally were able to successfully made the 8
figure even though there are few minor bugs like the traction would not let the rover turns or the
batteries went dead because huge power drainage. So it took us a really long time to get a good
reading on how to modify the turns.
CONCLUSIONS:
We completed the project with a lot of minor setbacks whether it’s the traction of the tires in
which we have to nets wire segments for the wheel to rollover or replacing the batteries that’s powering
the whole system.
REFERENCES
Seale, Eric. "DC Motors -- Background and History." DC Motors -- Background and
History. Solarbotics Websites, n.d. Web. 10 May 2016.
"Motor Shield V 1.2." - Robot Wiki. N.p., n.d. Web. 10 May 2016.

More Related Content

What's hot

Power generation using speed breakers
Power generation using speed breakersPower generation using speed breakers
Power generation using speed breakerspeddanna
 
Power Generation Using Speed Breakers
Power Generation Using Speed BreakersPower Generation Using Speed Breakers
Power Generation Using Speed BreakersPrachurya Sarma
 
power generation from speed breaker
power generation from speed breakerpower generation from speed breaker
power generation from speed breakerDXVICKY
 
Stepper motor in industrial applications
Stepper motor in industrial applicationsStepper motor in industrial applications
Stepper motor in industrial applicationsDr.Raja R
 
Power generation using speed breakers and efficient use of energy created by it.
Power generation using speed breakers and efficient use of energy created by it.Power generation using speed breakers and efficient use of energy created by it.
Power generation using speed breakers and efficient use of energy created by it.Aman Bharti
 
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...silveroak engineering collage
 
Stabilized controller of a two wheels robot
Stabilized controller of a two wheels robotStabilized controller of a two wheels robot
Stabilized controller of a two wheels robotjournalBEEI
 
Semi Perpetual Motion Machine(ppt)
Semi Perpetual Motion Machine(ppt)Semi Perpetual Motion Machine(ppt)
Semi Perpetual Motion Machine(ppt)Harsh Gupta
 
Seminar on Magnetic levitation and its applicaton
Seminar on Magnetic levitation and its applicatonSeminar on Magnetic levitation and its applicaton
Seminar on Magnetic levitation and its applicatonRahul Shaw
 
Presentation on Active Magnetic Bearings
Presentation on Active Magnetic BearingsPresentation on Active Magnetic Bearings
Presentation on Active Magnetic BearingsBhagvat Wadekar
 
Power Generation by speed breakers.
Power Generation by speed breakers.Power Generation by speed breakers.
Power Generation by speed breakers.Ashwini Swaminathan
 
Power generation using speed breakers
Power generation using speed breakersPower generation using speed breakers
Power generation using speed breakersimaanbakshi
 

What's hot (20)

Power generation using speed breakers
Power generation using speed breakersPower generation using speed breakers
Power generation using speed breakers
 
Power Generation Using Speed Breakers
Power Generation Using Speed BreakersPower Generation Using Speed Breakers
Power Generation Using Speed Breakers
 
power generation from speed breaker
power generation from speed breakerpower generation from speed breaker
power generation from speed breaker
 
Stepper motor in industrial applications
Stepper motor in industrial applicationsStepper motor in industrial applications
Stepper motor in industrial applications
 
Power generation using speed breakers and efficient use of energy created by it.
Power generation using speed breakers and efficient use of energy created by it.Power generation using speed breakers and efficient use of energy created by it.
Power generation using speed breakers and efficient use of energy created by it.
 
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
 
Electric Screw Jack
Electric Screw JackElectric Screw Jack
Electric Screw Jack
 
Electrical by speed braker
Electrical by speed brakerElectrical by speed braker
Electrical by speed braker
 
Stabilized controller of a two wheels robot
Stabilized controller of a two wheels robotStabilized controller of a two wheels robot
Stabilized controller of a two wheels robot
 
STEPPER MOTOR
STEPPER MOTORSTEPPER MOTOR
STEPPER MOTOR
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Semi Perpetual Motion Machine(ppt)
Semi Perpetual Motion Machine(ppt)Semi Perpetual Motion Machine(ppt)
Semi Perpetual Motion Machine(ppt)
 
J010516267
J010516267J010516267
J010516267
 
Self Balancing Robot
Self Balancing RobotSelf Balancing Robot
Self Balancing Robot
 
Seminar on Magnetic levitation and its applicaton
Seminar on Magnetic levitation and its applicatonSeminar on Magnetic levitation and its applicaton
Seminar on Magnetic levitation and its applicaton
 
MECHANICS PRO PPT
MECHANICS PRO PPTMECHANICS PRO PPT
MECHANICS PRO PPT
 
Presentation on Active Magnetic Bearings
Presentation on Active Magnetic BearingsPresentation on Active Magnetic Bearings
Presentation on Active Magnetic Bearings
 
Power Generation by speed breakers.
Power Generation by speed breakers.Power Generation by speed breakers.
Power Generation by speed breakers.
 
Power generation using speed breakers
Power generation using speed breakersPower generation using speed breakers
Power generation using speed breakers
 
Solar Car
Solar CarSolar Car
Solar Car
 

Viewers also liked

Tightjunction a&amp;pmuih
Tightjunction a&amp;pmuihTightjunction a&amp;pmuih
Tightjunction a&amp;pmuihSharon Mack
 
Cumplimiento tendencias digitales 2016 sm digital
Cumplimiento tendencias digitales 2016 sm digitalCumplimiento tendencias digitales 2016 sm digital
Cumplimiento tendencias digitales 2016 sm digitalSM Digital
 
savills-prime-office-cost-index-q4-2016
savills-prime-office-cost-index-q4-2016savills-prime-office-cost-index-q4-2016
savills-prime-office-cost-index-q4-2016Marcus Arredondo
 
StepperMotorControl
StepperMotorControlStepperMotorControl
StepperMotorControlBach Nguyen
 
Дубовиця у 2 світовій війні
Дубовиця у 2 світовій війніДубовиця у 2 світовій війні
Дубовиця у 2 світовій війніОля Грейнер
 
A embocadura eficiente para o músico trompetista
A embocadura eficiente para o músico trompetistaA embocadura eficiente para o músico trompetista
A embocadura eficiente para o músico trompetistaPartitura de Banda
 
201702 CV Alberto Mendez Project Manager
201702 CV Alberto Mendez Project Manager201702 CV Alberto Mendez Project Manager
201702 CV Alberto Mendez Project ManagerArag2
 
Capital militante tentativa de definição
Capital militante tentativa de definiçãoCapital militante tentativa de definição
Capital militante tentativa de definiçãoEmidia Costa
 
DSR Testing (Part 2)
DSR Testing (Part 2)DSR Testing (Part 2)
DSR Testing (Part 2)Steve Upton
 
Free Pick NBA
Free Pick NBAFree Pick NBA
Free Pick NBAJoe Duffy
 
Current dac based regulator for nvm
Current dac based regulator for nvmCurrent dac based regulator for nvm
Current dac based regulator for nvmBhawana Singh Nirwan
 

Viewers also liked (20)

Dawns Resume
Dawns ResumeDawns Resume
Dawns Resume
 
Tightjunction a&amp;pmuih
Tightjunction a&amp;pmuihTightjunction a&amp;pmuih
Tightjunction a&amp;pmuih
 
Operaciones Básicas en PHP
Operaciones Básicas en PHPOperaciones Básicas en PHP
Operaciones Básicas en PHP
 
Cumplimiento tendencias digitales 2016 sm digital
Cumplimiento tendencias digitales 2016 sm digitalCumplimiento tendencias digitales 2016 sm digital
Cumplimiento tendencias digitales 2016 sm digital
 
savills-prime-office-cost-index-q4-2016
savills-prime-office-cost-index-q4-2016savills-prime-office-cost-index-q4-2016
savills-prime-office-cost-index-q4-2016
 
StepperMotorControl
StepperMotorControlStepperMotorControl
StepperMotorControl
 
Дубовиця у 2 світовій війні
Дубовиця у 2 світовій війніДубовиця у 2 світовій війні
Дубовиця у 2 світовій війні
 
A embocadura eficiente para o músico trompetista
A embocadura eficiente para o músico trompetistaA embocadura eficiente para o músico trompetista
A embocadura eficiente para o músico trompetista
 
201702 CV Alberto Mendez Project Manager
201702 CV Alberto Mendez Project Manager201702 CV Alberto Mendez Project Manager
201702 CV Alberto Mendez Project Manager
 
Ransomware
RansomwareRansomware
Ransomware
 
B de baleia
B de baleiaB de baleia
B de baleia
 
C de carro
C de carroC de carro
C de carro
 
Capital militante tentativa de definição
Capital militante tentativa de definiçãoCapital militante tentativa de definição
Capital militante tentativa de definição
 
DSR Testing (Part 2)
DSR Testing (Part 2)DSR Testing (Part 2)
DSR Testing (Part 2)
 
2017 report new
2017 report new2017 report new
2017 report new
 
Druk white lotus school
Druk white lotus schoolDruk white lotus school
Druk white lotus school
 
Michigan Workers
Michigan WorkersMichigan Workers
Michigan Workers
 
Pp 1
Pp 1Pp 1
Pp 1
 
Free Pick NBA
Free Pick NBAFree Pick NBA
Free Pick NBA
 
Current dac based regulator for nvm
Current dac based regulator for nvmCurrent dac based regulator for nvm
Current dac based regulator for nvm
 

Similar to ROVER PROJECT

Solar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUISolar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUIIRJET Journal
 
“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”
“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”
“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”IOSR Journals
 
360 degree Steering Android.ppt
360 degree Steering Android.ppt360 degree Steering Android.ppt
360 degree Steering Android.pptSRLMECH
 
Build the Robo Car
Build the Robo CarBuild the Robo Car
Build the Robo CarParesh Goel
 
PROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking carPROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking carMehul kumar
 
Introduction to basic ROBOTICS.
Introduction to basic ROBOTICS.Introduction to basic ROBOTICS.
Introduction to basic ROBOTICS.Priyanka Jayaswal
 
Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Kael Kristjanson
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Ronza Sameer
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Ionela
 
The Power Saving Low Cost Rotating 8 Led Information Display
The Power Saving Low Cost Rotating 8 Led Information DisplayThe Power Saving Low Cost Rotating 8 Led Information Display
The Power Saving Low Cost Rotating 8 Led Information DisplaySheikh R Manihar Ahmed
 
Electronz_Chapter_10.pptx
Electronz_Chapter_10.pptxElectronz_Chapter_10.pptx
Electronz_Chapter_10.pptxMokete5
 
Self charging solar car seminar report
Self charging solar car seminar reportSelf charging solar car seminar report
Self charging solar car seminar reportAshish Dubey
 
IRJET-3 Fabrication of Pedal Assist Bicycle
IRJET-3 	  Fabrication of Pedal Assist BicycleIRJET-3 	  Fabrication of Pedal Assist Bicycle
IRJET-3 Fabrication of Pedal Assist BicycleIRJET Journal
 
IRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo MotorsIRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo MotorsIRJET Journal
 
AUTOMATIC COIL WINDING MACHINE
AUTOMATIC COIL WINDING MACHINEAUTOMATIC COIL WINDING MACHINE
AUTOMATIC COIL WINDING MACHINEIRJET Journal
 
IRJET- Automated Gear Transmission in Two Wheelers using Embedded System
IRJET- Automated Gear Transmission in Two Wheelers using Embedded SystemIRJET- Automated Gear Transmission in Two Wheelers using Embedded System
IRJET- Automated Gear Transmission in Two Wheelers using Embedded SystemIRJET Journal
 
IRJET-Demon: An Electric Bike
IRJET-Demon: An Electric BikeIRJET-Demon: An Electric Bike
IRJET-Demon: An Electric BikeIRJET Journal
 
Quad pod transformable vehicle
Quad pod transformable vehicleQuad pod transformable vehicle
Quad pod transformable vehicleslmnsvn
 

Similar to ROVER PROJECT (20)

Solar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUISolar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUI
 
“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”
“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”
“Rover - Remote Operated Vehicle for Extraction and Reconnaissance”
 
360 degree Steering Android.ppt
360 degree Steering Android.ppt360 degree Steering Android.ppt
360 degree Steering Android.ppt
 
Build the Robo Car
Build the Robo CarBuild the Robo Car
Build the Robo Car
 
PROJECT REPORT
PROJECT REPORTPROJECT REPORT
PROJECT REPORT
 
PROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking carPROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking car
 
Introduction to basic ROBOTICS.
Introduction to basic ROBOTICS.Introduction to basic ROBOTICS.
Introduction to basic ROBOTICS.
 
Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
 
The Power Saving Low Cost Rotating 8 Led Information Display
The Power Saving Low Cost Rotating 8 Led Information DisplayThe Power Saving Low Cost Rotating 8 Led Information Display
The Power Saving Low Cost Rotating 8 Led Information Display
 
Electronz_Chapter_10.pptx
Electronz_Chapter_10.pptxElectronz_Chapter_10.pptx
Electronz_Chapter_10.pptx
 
Self charging solar car seminar report
Self charging solar car seminar reportSelf charging solar car seminar report
Self charging solar car seminar report
 
Project paper
Project paperProject paper
Project paper
 
IRJET-3 Fabrication of Pedal Assist Bicycle
IRJET-3 	  Fabrication of Pedal Assist BicycleIRJET-3 	  Fabrication of Pedal Assist Bicycle
IRJET-3 Fabrication of Pedal Assist Bicycle
 
IRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo MotorsIRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo Motors
 
AUTOMATIC COIL WINDING MACHINE
AUTOMATIC COIL WINDING MACHINEAUTOMATIC COIL WINDING MACHINE
AUTOMATIC COIL WINDING MACHINE
 
IRJET- Automated Gear Transmission in Two Wheelers using Embedded System
IRJET- Automated Gear Transmission in Two Wheelers using Embedded SystemIRJET- Automated Gear Transmission in Two Wheelers using Embedded System
IRJET- Automated Gear Transmission in Two Wheelers using Embedded System
 
IRJET-Demon: An Electric Bike
IRJET-Demon: An Electric BikeIRJET-Demon: An Electric Bike
IRJET-Demon: An Electric Bike
 
Quad pod transformable vehicle
Quad pod transformable vehicleQuad pod transformable vehicle
Quad pod transformable vehicle
 

ROVER PROJECT

  • 1. ROVER PROJECT #1: Maneuvering the Rover Andrew Brouillete, Michael Hernandez, and Bach Nguyen Report by: Bach Nguyen CSIT Department Southeastern Louisiana University Hammond, LA 70401 Contact Number: 985-662-2106 Contact Email: bach.nguyen-2@selu.edu
  • 2. ABSTRACT: This project is done to demonstrate our understanding of using the DFRobot V1.2 Motor Shield. By controlling the signal from the Arduino to the motor shield we were able to maneuver it in 4 directions. Here is the list of directions: backward, forward, left and right. INTRODUCTION At the most basic level, electric motors exist to convert electrical energy into mechanical energy. This is done by way of two interacting magnetic fields -- one stationary, and another attached to a part that can move. A number of types of electric motors exist, but most BEAMbots use DC motors1 in some form or another. DC motors have the potential for very high torque capabilities (although this is generally a function of the physical size of the motor), are easy to miniaturize, and can be "throttled" via adjusting their supply voltage. DC motors are also not only the simplest, but the oldest electric motors. The basic principles of electromagnetic induction were discovered in the early 1800's by Oersted, Gauss, and Faraday. By 1820, Hans Christian Oersted and Andre Marie Ampere had discovered that an electric current produces a magnetic field. The next 15 years saw a flurry of Cross-Atlantic experimentation and innovation, leading finally to a simple DC rotary motor. A number of men were involved in the work, so proper credit for the first DC motor is really a function of just how broadly you choose to define the word "motor."(Seale 1) BACKGROUND: Because of these reasons, the dc motor is chosen to use to drive a set of mechanical gear that is connected to the wheel. This particular set of rover from DFRobot has 4 wheels which are drive by 4 dc motors. PROJECT GOALS:
  • 3. The goal of this project are to get familiar with the control system of a 4 wheel drives rover using. We set up the rover to move forward, backward, turn left and turn right depends on which function is called in the main function of the Arduino. Also we attempted to do the 8 figure with the rover. METHODOLOGY By utilize these following materials we were able to complete the rover and make it move:  DFRobot 4 Wheel Drives Kit  DFRobot Arduino Uno  DFRobot Motor Shield V 1.2  9 V power supply We choose to do a tank control mode for the turning since there are no mechanic part of the rover that let us maneuver it using the default setup. To use the tank control mode of the rover we connect the left side motors of the rover to the first 2 slots in the motor shield connector and the right side to the last 2 slots of the motor shield. To make sure the wire stay connected and not compromise the power connection between the shield and the motors we twist the wires together to make one single input to the slot. Below is the picture of the finish product should look like.
  • 4. Here is the code and the description for the functionalities of the rover. int E1 = 5; int M1 = 4; int E2 = 6; int M2 = 7; int i = 0; int j = 0; void setup() { pinMode(M1, OUTPUT); pinMode(M2, OUTPUT); } void loop() { figure8();
  • 5. } void figure8(){ forward(); for(i = 0; i < 4;i++){ forward(); left(); if (i == 3){ forward(); for(j = 0; j < 4 ; j++){ forward(); right(); } } } i = 0 ; j = 0 ; } void forward(){ digitalWrite(M1,HIGH); //clockwise turn right digitalWrite(M2, HIGH); analogWrite(E1, 220); //PWM Speed Control analogWrite(E2, 220); //PWM Speed Contro delay(1000);
  • 6. } void backward(){ digitalWrite(M1,LOW); //clockwise turn right digitalWrite(M2, LOW); analogWrite(E1, 220); //PWM Speed Contro analogWrite(E2, 220); //PWM Speed Control delay(1000); } void right(){ digitalWrite(M1,HIGH); //clockwise turn right digitalWrite(M2, LOW); analogWrite(E1, 200); //PWM Speed Control analogWrite(E2, 230); //PWM Speed Control delay(1000); } void left(){ digitalWrite(M1,LOW); //counter clockwise turn left digitalWrite(M2, HIGH); analogWrite(E1, 230); //PWM Speed Control analogWrite(E2, 200); //PWM Speed Control delay(1000);
  • 7. } In this code, for each function with the entitled with direction are made of 2 set of function to control motor set 1 and motor set 2. To be able to move forward, both of the set has to have a high signal going through it. For it to go backward, the 2 set of motor is set to both receive a low digital Input from the Arduino. To turn right the first set must be write high with speed slower than set 2 with low signal and higher speed due to the lack in traction of the tires. To turn left the same thing is done but opposite with turning right. For the figure 8 we use a counter in a for loop to control the number of turns the rover make to create a circle of that direction then we add another counter to stop it from going the other way then start going the other way to complete the letter 8. To get the traction of the tires are really bad we decided to wrap wires around the wheels like the picture below.
  • 8. RESULTS After countless time of recalibration, we finally were able to successfully made the 8 figure even though there are few minor bugs like the traction would not let the rover turns or the batteries went dead because huge power drainage. So it took us a really long time to get a good reading on how to modify the turns. CONCLUSIONS: We completed the project with a lot of minor setbacks whether it’s the traction of the tires in which we have to nets wire segments for the wheel to rollover or replacing the batteries that’s powering the whole system.
  • 9. REFERENCES Seale, Eric. "DC Motors -- Background and History." DC Motors -- Background and History. Solarbotics Websites, n.d. Web. 10 May 2016. "Motor Shield V 1.2." - Robot Wiki. N.p., n.d. Web. 10 May 2016.