|Buy from US||Buy from UK||Buy from DE||Buy from IT||Buy from FR||Buy from ES||Buy from JP|
In this lesson, we will use Mobile to control our robot car and make an imitation driving. Since is a mock driving, we will use a virtual steering wheel and gear in our APP to imitate their counterparts in real car.
In this lesson,Mecanum Omni wheel will allows robot car make omni-directional movement( parallel shift to left and right).
OSOYOO Mecanum Wheels Robotic Car Chassis x 1 (2x left-wheels/2x right-wheels and 4x motor)
OSOYOO Mega2560 board fully compatible with Arduino
OSOYOO V1.0 Wifi Shield x 1
OSOYOO Model X motor driver x 2
OSOYOO HC02 bluetooth module
OSOYOO Battery box x 1
18650 Batteries(3.7V) x 2
You must complete lesson 1 (assembling the car) before you continue on with this lesson.No need change anything, just keep the hardware wire connection as it is.
STEP1: Connect B_TX and B_RX to D19 and D18.
(Note: You need split 2 pcs of male-to-female jumper wires from our 10-pc jumper wire bundle. Any color from the bundle will be ok. The rest of 8 pcs wires are as spare parts for potential broken or damaged wires.)
STEP2:Bluetooth Module should be inserted into bluetooth 6-pin slot in OSOYOO Wifi Board
|Download Arduino IDE here:
|7 zip is a free zip
utility that un-zips zip files
|Download 7zip here for free
Step 1: Install latest Arduino IDE (If you have Arduino IDE version after 1.1.16, please skip this step). Download Arduino IDE from https://www.arduino.cc/en/Main/Software?setlang=en , then install the software.
Step 2: Download https://osoyoo.com/driver/mecanum/mecanum-2560-lesson4.zip , unzip the download zip file lesson4.zip, you will see a folder called lesson4 .
Step 3: Connect mega2560 board to PC with USB cable, Open Arduino IDE -> click file -> click Open -> choose code “lesson4.ino” in lesson4 folder, load the code into arduino.
Step 4: Choose corresponding board/port for your project,upload the sketch to the board.
Go to your Google Play or Apple APP store and search APP name “OSOYOO imitation driving”, Download the APP as following and install it in your smart phone.
Power on the robot, and open APP.
1)If you have not paired Bluetooth module with your cell phone, please pair the bluetooth module first before open the APP. In your cell phone Setting->Bluetooth ,find a Bluetooth device called HC02, pair it with password 1234
2)After bluetooth HC02 device is paired, open the APP. If you are using Android APP, ClickBT Search Button to connect APP to HC02 device, if it is iOS APP, just click connect
3)Click Engine Switch to start/stop the car
4)Click Speed +/- button to accelerate or reduce speed
5)Rotate the mobile phone to change direction(steering wheel will rotate while you are turning the phone).
6)click Gear button to change gear to Forward or Backward direction.
7)press F1 to Shift to left way, F5 to shift to right way, F3 to up left diagonal, F4 to up right diagonal.
DownLoad Url osoyoo.com