DFRobotShop Rover Tutorial – Control With Android App / Bluetooth



DFRobotShop Rover - Title 3_25
DFRobotShop Rover v2 (Bluetooth Kit) [RB-Rbo-41]
The DFRobotShop Rover products have been out for a while and we have received many questions since then on both our support center and on our forum. One common question we get is how to control the rover using a smart phone / tablet?. This tutorial will cover a simple Android-based solution to make this happen for you and your rover!

Requirements

  • DFRobotShop Rover v2
  • DFRobot Serial Bluetooth Module
  • Android platform (Phone or Tablet) running Android version 2.3.3 and up
  • Arduino IDE
Please note there is also a DFRobotShop Rover v2 Bluetooth Kit with the Bluetooth module and a LiPo battery included, which is perfect for this application.

Programming the Rover

You can download the code for the Rover v2 here. Extract the files to a folder and go into the folder named “tank_wasd_keyboard_control“. From there, open the .ino file. If you have the Arduino IDE installed, it should automatically open the file. Make sure your rover is connected via USB to the computer and that you have the proper Arduino Uno drivers installed. Go to the Tools menu in the Arduino IDE and ensure you have the right board (Arduino Uno) and the right COM port selected.
Make sure to remove the DFRobot Serial Bluetooth Module before uploading code to the rover. Click the Upload button and wait for the process to finish. Once the upload is complete, you can optionally use the Serial Monitor (from the Tools menu or using the top-right corner icon Serial Monitor Icon) to test the rover. Make sure to select a baud rate of 9600. Send ‘W‘, ‘S‘, ‘A‘, ‘D‘ to move the rover forward, backwards, turn left and turn right. Send any other key to make the rover stop moving.
Once you are done uploading / testing the rover, simply disconnect the USB cable and replace the DFRobot Serial Bluetooth Module on its socket.

Bluetooth Pairing

Android Bluetooth Settings
From your Android device home screen, open Settings. Go to the Bluetooth category. Make sure the rover has the Bluetooth module on and that the Rover is powered. Also make sure the Android device’s Bluetooth interface is ON. If the device does not show up in the list press “Search for devices” and wait for it to show up. It should be named “Bluetooth_Bee_V2“. Select this device to start the pairing process.
blue-02-s
Bluetooth Pairing
To pair the device, you will need to enter the PIN 1234. Once this is done the module will pair to your Android device. It should now show up in the list under the heading “Paired devices“, as seen below.
blue-03-s
Module Paired

Obtaining the App

You can obtain the free app here. Note that this app is not affiliated with RobotShop. If you are unable to use this link, please follow these steps to obtain the app:
app-1-s
Google Play – Apps
First, open the Google Play app. From there, go to the “Apps” category.
app-2-s
Google Play – Arduino Bluetooth Controller
Then, search for “Arduino Bluetooth Controller“. Press on the app showed above.
app-3-s
App Installation
Install the app by pressing the “Install” button
app-4-s
Opening the App
Finally, once the app is installed press “Open” to start the Arduino Bluetooth Controller. Before opening the app, make sure the rover is still powered with the Bluetooth module attached and that the pairing was completed successfully.

Using the App

use-1-s
Bluetooth Permission Request
When the app starts, it may request that the Bluetooth to be turned on (if it was previously off). Activate Bluetooth to make sure we can connect to the rover.
use-2-s
UUID
Next, the app will ask you if you wish to change the UUID. There is no need to change it, so simply press “Proceed” to continue.
use-3-s
Bluetooth Paired Devices
Select the paired device called “Bluetooth_Bee_V2“. If it is not visible, ensure the rover is powered and the Bluetooth module is attached and press “Scan for devices“. If the device still doesn’t show up, go back to the Bluetooth Pairing step.
use-4-s
Controller Mode
Once at the mains screen, select “Controller Mode“. The view below is what is visible on a larger tablet screen. When viewed on a smart phone, the buttons will be closer together.
use-5-s
Set Commands
From the controller screen, select options at the top right and choose “Set Commands“.
use-6-s
Commands
Press each button name and enter the command of your choice. The default commands in the “tank_wasd_keyboard_control” example are ‘W‘, ‘S‘, ‘A‘, ‘D‘ as mentioned previously. Here we chose ‘X‘ as the “stop” command. When done setting the commands, press the back arrow to return to the controller screen.

You can now press the buttons on the screen to control your rover remotely through Bluetooth! Enjoy!
Previous
Next Post »
My photo

Hi, I`m Sostenes, Electrical Technician and PLC`S Programmer.
Everyday I`m exploring the world of Electrical to find better solution for Automation. I believe everyday can become a Electrician with the right learning materials.
My goal with BLOG is to help you learn Electrical.
Related Posts Plugin for WordPress, Blogger...

Label

KITAIFA NEWS KIMATAIFA MICHEZO BURUDANI SIASA TECHNICAL ARTICLES f HAPA KAZI TU. LEKULE TV EDITORIALS ARTICLES DC DIGITAL ROBOTICS SEMICONDUCTORS MAKALA GENERATOR GALLERY AC EXPERIMENTS MANUFACTURING-ENGINEERING MAGAZETI REFERENCE IOT FUNDAMENTAL OF ELECTRICITY ELECTRONICS ELECTRICAL ENGINEER MEASUREMENT VIDEO ZANZIBAR YETU TRANSDUCER & SENSOR MITINDO ARDUINO RENEWABLE ENERGY AUTOMOBILE SYNCHRONOUS GENERATOR ELECTRICAL DISTRIBUTION CABLES DIGITAL ELECTRONICS AUTOMOTIVE PROTECTION SOLAR TEARDOWN DIODE AND CIRCUITS BASIC ELECTRICAL ELECTRONICS MOTOR SWITCHES CIRCUIT BREAKERS MICROCONTROLLER CIRCUITS THEORY PANEL BUILDING ELECTRONICS DEVICES MIRACLES SWITCHGEAR ANALOG MOBILE DEVICES CAMERA TECHNOLOGY GENERATION WEARABLES BATTERIES COMMUNICATION FREE CIRCUITS INDUSTRIAL AUTOMATION SPECIAL MACHINES ELECTRICAL SAFETY ENERGY EFFIDIENCY-BUILDING DRONE NUCLEAR ENERGY CONTROL SYSTEM FILTER`S SMATRPHONE BIOGAS POWER TANZIA BELT CONVEYOR MATERIAL HANDLING RELAY ELECTRICAL INSTRUMENTS PLC`S TRANSFORMER AC CIRCUITS CIRCUIT SCHEMATIC SYMBOLS DDISCRETE SEMICONDUCTOR CIRCUITS WIND POWER C.B DEVICES DC CIRCUITS DIODES AND RECTIFIERS FUSE SPECIAL TRANSFORMER THERMAL POWER PLANT cartoon CELL CHEMISTRY EARTHING SYSTEM ELECTRIC LAMP ENERGY SOURCE FUNDAMENTAL OF ELECTRICITY 2 BIPOLAR JUNCTION TRANSISTOR 555 TIMER CIRCUITS AUTOCAD C PROGRAMMING HYDRO POWER LOGIC GATES OPERATIONAL AMPLIFIER`S SOLID-STATE DEVICE THEORRY DEFECE & MILITARY FLUORESCENT LAMP HOME AUTOMATION INDUSTRIAL ROBOTICS ANDROID COMPUTER ELECTRICAL DRIVES GROUNDING SYSTEM BLUETOOTH CALCULUS REFERENCE DC METERING CIRCUITS DC NETWORK ANALYSIS ELECTRICAL SAFETY TIPS ELECTRICIAN SCHOOL ELECTRON TUBES FUNDAMENTAL OF ELECTRICITY 1 INDUCTION MACHINES INSULATIONS ALGEBRA REFERENCE HMI[Human Interface Machines] INDUCTION MOTOR KARNAUGH MAPPING USEUL EQUIATIONS AND CONVERSION FACTOR ANALOG INTEGRATED CIRCUITS BASIC CONCEPTS AND TEST EQUIPMENTS DIGITAL COMMUNICATION DIGITAL-ANALOG CONVERSION ELECTRICAL SOFTWARE GAS TURBINE ILLUMINATION OHM`S LAW POWER ELECTRONICS THYRISTOR USB AUDIO BOOLEAN ALGEBRA DIGITAL INTEGRATED CIRCUITS FUNDAMENTAL OF ELECTRICITY 3 PHYSICS OF CONDUCTORS AND INSULATORS SPECIAL MOTOR STEAM POWER PLANTS TESTING TRANSMISION LINE C-BISCUIT CAPACITORS COMBINATION LOGIC FUNCTION COMPLEX NUMBERS ELECTRICAL LAWS HMI[HUMANI INTERFACE MACHINES INVERTER LADDER DIAGRAM MULTIVIBRATORS RC AND L/R TIME CONSTANTS SCADA SERIES AND PARALLEL CIRCUITS USING THE SPICE CIRCUIT SIMULATION PROGRAM AMPLIFIERS AND ACTIVE DEVICES BASIC CONCEPTS OF ELECTRICITY CONDUCTOR AND INSULATORS TABLES CONDUITS FITTING AND SUPPORTS CONTROL MOTION ELECTRICAL INSTRUMENTATION SIGNALS ELECTRICAL TOOLS INDUCTORS LiDAR MAGNETISM AND ELECTROMAGNETISM PLYPHASE AC CIRCUITS RECLOSER SAFE LIVING WITH GAS AND LPG SAFETY CLOTHING STEPPER MOTOR SYNCHRONOUS MOTOR AC METRING CIRCUITS APPS & SOFTWARE BASIC AC THEORY BECOME AN ELECTRICIAN BINARY ARITHMETIC BUSHING DIGITAL STORAGE MEMROY ELECTRICIAN JOBS HEAT ENGINES HOME THEATER INPECTIONS LIGHT SABER MOSFET NUMERATION SYSTEM POWER FACTORS REACTANCE AND IMPEDANCE INDUCTIVE RESONANCE SCIENTIFIC NOTATION AND METRIC PREFIXES SULFURIC ACID TROUBLESHOOTING TROUBLESHOOTING-THEORY & PRACTICE 12C BUS APPLE BATTERIES AND POWER SYSTEMS ELECTROMECHANICAL RELAYS ENERGY EFFICIENCY-LIGHT INDUSTRIAL SAFETY EQUIPMENTS MEGGER MXED-FREQUENCY AC SIGNALS PRINCIPLE OF DIGITAL COMPUTING QUESTIONS REACTANCE AND IMPEDANCE-CAPATIVE RECTIFIER AND CONVERTERS SEQUENTIAL CIRCUITS SERRIES-PARALLEL COMBINATION CIRCUITS SHIFT REGISTERS BUILDING SERVICES COMPRESSOR CRANES DC MOTOR DRIVES DIVIDER CIRCUIT AND KIRCHHOFF`S LAW ELECTRICAL DISTRIBUTION EQUIPMENTS 1 ELECTRICAL DISTRIBUTION EQUIPMENTS B ELECTRICAL TOOL KIT ELECTRICIAN JOB DESCRIPTION LAPTOP THERMOCOUPLE TRIGONOMENTRY REFERENCE UART WIRELESS BIOMASS CONTACTOR ELECTRIC ILLUMINATION ELECTRICAL SAFETY TRAINING FILTER DESIGN HARDWARE INDUSTRIAL DRIVES JUNCTION FIELD-EFFECT TRANSISTORS NASA NUCLEAR POWER SCIENCE VALVE WWE oscilloscope 3D TECHNOLOGIES COLOR CODES ELECTRIC TRACTION FEATURED FLEXIBLE ELECTRONICS FLUKE GEARMOTORS INTRODUCTION LASSER MATERIAL PID PUMP SEAL ELECTRICIAN CAREER ELECTRICITY SUPPLY AND DISTRIBUTION MUSIC NEUTRAL PERIODIC TABLES OF THE ELEMENTS POLYPHASE AC CIRCUITS PROJECTS REATORS SATELLITE STAR DELTA VIBRATION WATERPROOF