Mars explorer wheel robotic kit, arduino mega2560 (41 pages)
Summary of Contents for OSOYOO V2.1
Page 1
OSOYOO V2.1 Robot Car Kit for Arduino Online Tutorial Index: https://osoyoo.com/?p=32220 If you have any problem, please feel free to contact us, our email address support@osoyoo.info...
Install device ........................ 16 Connection ........................19 Software Installation ......................... 24 Final Testing: ..........................26 OSOYOO V2.1 Robot car kit Lesson 2: IR Remote Control Robot Car ......28 Objective ............................ 28 Parts and Devices ........................28 Hardware Installation ....................... 29 Software Installation .........................
Page 3
Software Installation ......................... 56 Ultrasonic sensor servo initial direction alignment .............. 58 Final Testing ..........................58 Osoyoo V2.1 Robot Car Lesson 6: Use Wifi to control an IoT Robot Car ......60 Objective ............................ 60 Parts and Devices ........................60 Hardware Installation .......................
About This Kit OSOYOO V2.0 robot car is a perfect combination of challenge and excitement, learning and fun. The kit comes with step by step ONLINE tutorial with text, picture and video. The kit is great for any skill level — whether you’re a pro, enthusiast, or a beginner.
OSOYOO robot car introduction video: https://osoyoo.com/V2.1robotcar-video.html OSOYOO robot car tutorial PDF download link: https://osoyoo.com/manual/V2.1robotcar.pdf Customer Service and Tech Support You have following two options to ask for help: 1) Leave comments on our tutorial https://osoyoo.com/?p=32220 2) Send email to support@osoyoo.info.
OSOYOO V2.1 Robot car kit Lesson 0: Introduction OSOYOO robotic car learning kit is designed for beginners to learn Arduino programming and get hands-on experience on robot design and assembly. We have developed a step-by-step tutorial which evolves from a simple car without any control to a multi-function robotic car controlled by mobile APP.
*OSOYOO MODEL X motor driver module is an improved L298N module which has newly designed wiring sockets and can greatly simplify the assembly procedure and wire connection stability. Parts and Devices Picture Device Qty. Data sheet Buy in Link OSOYOO basic...
Page 8
Click here to Servo Motor click here Mount Holder Click here to for Ultrasonic Sensor Buzzer Sensor Click here to click here Module Click here to HC module click here Click here to IR transmitter Click here to Gear motor Metal Motor Click here to Holders with...
Page 9
3pin female to Click here to 3pin female jumper wire 6pin male to Click here to 6pin female jumper wire OSOYOO 2pin Click here to PnP cable 20cm 20Pin jumper Click here to wire Male to some female 20cm 7pin 25cm...
Page 10
1Pair 18650 Click here to batteries (Optional) 9V Battery Box Click here to (Optional) 9V Battery Click here to (Not including) M3*10 Hex Screws M3*10 screw M3 nut Copper pillar Screw for wheel M3 plastic screw...
We believe with this hardware + software support, you are able to become expert programmer (developer) very soon. So don’t waste time, just get this kit, and start your project right away! Lesson 1: what is Arduino, link: https://osoyoo.com/?p=11341 Lesson 2: Fully compatible with Arduino UNO Rev.3, Link: https://osoyoo.com/?p=9837 ...
Lesson 16: IR Transmitting Module and IR Receiving Module, link: https://osoyoo.com/?p=12364 Tutorial and sample projects OSOYOO robotic car learning kit is designed for beginners to learn Arduino programming and get hands-on experience on robot design and assembly. We have developed a step-by-step tutorial which evolves from a simple car without any control to a multi-function robotic car controlled by mobile APP.
OSOYOO V2.1 Robot car kit Lesson 1: Basic robot car assembly Objective In this “Hello World” version lesson, we will install the most important framework in the smart car and program the car to do some simple movements. If you have passed the test movement of this lesson, it means Arduino, voltage meter, motor control module, motors, batteries,chassis and...
Page 14
Picture Device Qty. Data sheet Buy in Link OSOYOO basic board click here Click here to buy OSOYOO Uart WiFi click here Click here to buy shield V1.3 OSOYOO model X click here Click here to buy motor driver module...
Page 15
3pin female to 3pin Click here to buy female jumper wire 6pin male to 6pin Click here to buy female jumper wire OSOYOO 2pin PnP Click here to buy cable 20cm Philips screwdriver Click here to buy Hex Screwdriver Click here to buy...
Install device 1) Remove the protective film on upper and low car chassis (Each car chassis has one protective film) 2) Fix 4 motors with Metal Motor Holders as follow (Please check the motor derection before installing metal motor holders) 3) Fix 4 motors on lower car chassis with screw M3*10 hex screws via hex screwdriver (screws in metal motor holder package)
Page 18
5) Install voltage meter on low car chassis with 2pcs M3 plastic screws, plastic pillars and plastic nuts 6) Fix OSOYOO UNO R3 board on upper car chassis with 4pcs M3 plastic screws, plastic pillars and plastic nuts. (Please install UNO R3 board at the...
Page 19
7) There are two kind of robot car set for you to choose to buy. The one is with 2 battery box( 18650 battery box and 9V battery box), and the other one is with 1 pair 18650 batteries and 1 piece battery charger for 18650. We recommend to use 18650 batteries as the power.
8) Insert OSOYOO Uart WIFI shield V1.3 onto your UNO board Connection 1) Connect 4 motors to OSOYOO MODEL X motor driver module K1 to K4 sockets as per following graph:...
Page 21
2) Connect Voltage Meter to OSOYOO MODEL X motor driver module with 3pin female to female jumper wire as below connection diagram...
Page 22
3) Connect OSOYOO MODEL X motor driver module 6 control pins to OSOYOO Uart WiFi shield V1.3 D6, D7, D8, D9, D11, D12 with 6pin male to 6pin female jumper wire, and 12V-GND socket to VIN-GND socket with OSOYOO 2pin PnP cable 20cm as per following graph...
Page 23
4) Connect battery box (battery box for 18650 batteries or for 9V battery) to VIN-GND socket of OSOYOO Uart WiFi shield V1.3 according below connection diagram...
Page 24
5) Connect upper chassis to lower chassis with five copper pillars and fix copper pillars with 10pcs M3*10 hex screws, then install 4 wheels onto the motors.
Now hardware installation is almost down. Before we install 18650 batteries into the box, we need burn the sample code into Arduino First. Software Installation Open-source Download Arduino IDE here: Arduino https://www.arduino.cc/en/Main/Software?setlang=en Software(IDE) 7 zip is a free Download 7zip here for free utility that un- https://www.7-zip.org/ zips zip files...
Page 26
Step 2: Download Lesson One sample code from https://osoyoo.com/driver/v2smartcar-lesson1.zip , unzip the download zip file smartcar-lesson1.zip, you will see a folder called v2smartcar-lesson1. Step 3: Connect Arduino UNO to PC with USB cable, Open Arduino IDE -> click file -> click Open -> choose code “v2smartcar-lesson1.ino” in smartcar- lesson1 folder, load the code into arduino.
Disconnect Arduino from PC, put battery into battery box. When you put the car on the ground and turn on the switch on OSOYOO Uart WIFI shield V1.3 and the switch on battery box if you install battery box for 18650, the car should go forward 2 seconds, then go backward 2 seconds, then left turn for 2 seconds, then right turn for 2 seconds, then stop.
Remote Control Robot Car Objective In this tutorial, we will use Osoyoo Smart DIY kit to make a simple remote controlled smart car. Once the car installation is completed, we will use a Infrared Remote to control the car movements including go forward, go back, left turn and right turn.
20Pin jumper wire Male to some female 20cm Click here to buy Screwdriver M3 plastic screw M3 plastic pillar M3 plastic nut Hardware Installation Step 1: Install the smart car basic frame work as per Smart Car Lesson 1 . If you have already completed installation in Lesson 1 , just keep it as is.
existing wires installed in Lesson 1) : Software Installation Open-source Download Arduino IDE here: Arduino https://www.arduino.cc/en/Main/Software?setlang=en Software(IDE) 7 zip is a free Download 7zip here for free utility that un- https://www.7-zip.org/ zips zip files 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...
Page 32
Step 2: Install IRremote library into Arduino IDE (If you have already installed IRremote library, please skip this step) Download IRremote library from https://osoyoo.com/wp-content/uploads/samplecode/IRremote.zip, then import the library into Arduino IDE(Open Arduino IDE-> click Sketch->Include Library->Add .Zip Library) Step 3: Download Lesson 2 IRremote smart car sample code fromhttps://osoyoo.com/driver/v2smartcar-lesson2.zip...
Step 5: Choose corresponding board and port for your project, upload the sketch to the board. Testing Press IR controller keys to control the car movements as per following instruction table...
In order to solve this problem. Please take following steps: Step A) Get the IR code of each button in your IR remote. Copy code from following link: https://osoyoo.com/wp- content/uploads/samplecode/irdemo.ino Upload above sketch into your Arduino and open the serial monitor in your upper-right corner.
Page 35
Write down the IR code of your control buttons “▲” “▼” “>” “<” “OK” button, STEP B) replace the IR code in lesson 2 sketch file: Open your Lesson 2 code again, then you will see following lines define the IR CODE of each button: //code from IR controller “▲”...
OSOYOO V2.1 Robot car kit Lesson 3: Object follow Robot car Objective In this lesson, we will install 2pcs IR Obstacle Avoidance modules on robot car and program the car to follow object movements. The principle of this experiment is based on IR detection object. The car receives the signal from the IR Obstacle Avoidance module, and then the program will drive the car to take actions.
Ultrosonic Sensor click here Click here to buy 20Pin jumper wire Male to female some 20cm Philips screwdriver Click here to buy Hex Screwdriver Click here to buy M3 plastic screw M3 plastic pillar M3 plastic nut Hardware installation Step 1: Install the smart car basic frame work as per Smart Car Lesson 1 .
Page 38
Step 3: Connect 2pcs IR Obstacle Avoidance modules as below diagram (Remember: DO NOT remove any existing wires installed in Lesson1):...
Page 39
Step 4: Fix the screws on copper pillars to connect upper chassis to lower chassis.
, then install the software. Step 2: Download Lesson One sample code from https://osoyoo.com/driver/v2smartcar-lesson3.zip , unzip the download zip file v2smartcar-lesson3.zip, you will see a folder called v2smartcar- lesson3. Step 3: Connect Arduino UNO to PC with USB cable, Open Arduino IDE ->...
Page 41
Step 4: Choose corresponding board/port for your project, upload the sketch to the board.
Adjust the sensitivity of IR Obstacle Avoidance modules Turn on the car, put object about 10cm ahead of each IR Obstacle Avoidance modules and adjust potentiometer on IR Obstacle Avoidance modules to detect object or your hand. Note: When these module detect objects, the power indicator and signal indictor are on.
Page 43
car, all movement directions are contrary to other courses. 2) The car can only move forward, turn right and turn left, but cannot move backward.
OSOYOO V2.1 Robot car kit Lesson 4: Tracking Line Robot Car Objective: In this lesson, we will add 5 channel black/white tracking sensor module to the framework built in Lesson 1. If you have not completed installation in Lesson 1, please review...
Parts and Devices Data Picture Device Qty. Buy in Link sheet Tracking sensor Click here to buy click here module 7pin 25cm Female to Female Click here to buy Cable Philips Click here to buy screwdriver Hex Screwdriver Click here to buy M3 plastic screw M3 plastic pillar M3 plastic nut...
Step 3: Connect GND-VCC pin of tracking sensor module to GND-5V of OSOYOO Uart WiFi shield V1.3; connect IR1, IR2, IR3, IR4, IR5 pins to A0, A1, A2, A3, A4 with 7pin 25cm female to female cable as the following photo...
Software Installation Open-source Download Arduino IDE here: Arduino https://www.arduino.cc/en/Main/Software?setlang=en Software(IDE) 7 zip is a free Download 7zip here for free utility that un- https://www.7-zip.org/ zips zip files Step 1: Install latest Arduino IDE (If you have Arduino IDE version after 1.1.16, please skip this step).
Page 48
Step 2: Download Lesson 4 tracking smart car sample code from http://osoyoo.com/picture/V2.1_Arduino_Robot_Car/code/v2smartcar- lesson4.zip, unzip the download zip file smartcar-lesson4.zip, you will see a folder called smartcar-lesson4. Step 3: Connect UNO R3 board to PC with USB cable, Open Arduino IDE ->...
Adjust the sensitivity of tracking sensor modules Adjust the sensitivity of tracking sensor modules. Turn on and hold the car and adjust the potentiometer on the tracking sensor with Philips screwdriver until you get the best sensitivity status: the signal indicate LED light will turn on when sensor is above black track, and the signal LED will turn off when the sensor is above white ground Testing...
Page 50
Prepare a black track (the width of the black track is more than 20mm and in white ground. Please note, the bend angle of track can’t less than 30mm) be larger than 90 degree. If the angle is too large, the car will move out of the track.
OSOYOO V2.1 Robot car kit Lesson 5: Obstacle Avoidance Robot Car Objective In this lesson, we will add a servo motor, an ultrasonic module and a buzzer onto Lesson 1 framework. With these new devices, the car can “see” obstacle through ultrasonic sensor and measure the distance.
Page 52
Ultrosonic Sensor click here Click here to buy Servo Motor click here Click here to buy Mount Holder for Click here to buy Ultrasonic Sensor Buzzer Sensor click here Click here to buy Module Philips Click here to buy screwdriver Hex Screwdriver Click here to buy 20Pin jumper wire...
M3 plastic pillar M3 plastic nut M2*4 self tapping screw M2.2*8 self tapping screw M1.4*8 screw and Hardware Installation Step 1: Install the smart car basic frame work as per Smart Car Lesson 1 you have already completed installation in Lesson 1 , Everything keep it as is except move ENA from D9 to D3(we need D9 for Servo control).
Page 54
Step 3: Install Ultrasonic Module to mount holder with 4pcs M1.4*8 screw and M1.4 nuts Step 4: Install mount holder for Ultrasonic Module on servo motor with M2*4 Self Tapping screw...
Page 55
Step 5: Install Buzzer module at the back of upper chassis with 1pc M3 plastic screw, M3 plastic pillar and M3 plastic nut Step 6: Connect SG90 servo motor, OSOYOO MODEL X motor driver module and OSOYOO Uart WiFi shield V1.3 as following graph...
Page 56
Step 7: Connect ultrasonic module, Buzzer module with OSOYOO Uart WiFi shield V1.3 as below connection diagram Step 8: Fix the screws on copper pillars to connect upper chassis to lower chassis if you remove these.
, then install the software. Step 2: Download sample code fromhttps://osoyoo.com/driver/v2smartcar- lesson5.zip , unzip the download zip file smartcar-lesson5.zip, you will see a folder called v2smartcar-lesson5. Step 3: Connect Arduino UNO to PC with USB cable, Open Arduino IDE ->...
Page 58
Step 4: Choose corresponding board/port for your project,upload the sketch to the board.
Ultrasonic sensor servo initial direction alignment After turning on the battery, you will hear a long beep sound, then the servo will make some movement and finally stops at a direction for 5 seconds. During this first 5 seconds, you must make sure the Ultrasonic sensor (two eyes) is facing straight forward.
Page 60
as per link Ultrasonic sensor servo initial direction alignment...
Osoyoo V2.1 Robot Car Lesson 6: Use Wifi to control an IoT Robot Car Objective In this project we will connect Robot Car to Wifi and Use an APP to control the car through Internet. This is a typical Internet of Things(IoT) Application.
Page 62
7pin 25cm Click here to Female to Female Cable Click here to Ultrosonic Sensor click here Click here to Servo Motor click here Mount Holder for Click here to Ultrasonic Sensor Buzzer Sensor Click here to click here Module Philips Click here to screwdriver Click here to...
M3 plastic screw M3 plastic pillar M3 plastic nut M2*4 self tapping screw M2.2*8 self tapping screw M1.4*8 screw and Hardware Installation 5. If you don’t Step 1: Install the smart car basic frame work as per lesson install tracking sensor module, please completed installation in Lesson...
Page 64
E_RX(ESP8266_RX) pin to D4(UNO software serial TX) as per following picture (Note: Our OSOYOO Uart WiFi shield V1.3 are connected BLE URAT TX/RX ports to D4,D5 with jumper caps by default. If you find the BLE URAT TX/RX ports are connected, you need remove these jumper caps and change to...
Page 65
Step 3: Connect SG90 servo motor, OSOYOO MODEL X motor driver module and OSOYOO Uart WiFi shield V1.3 as following graph (If you complete wires in lesson 5, please skip this step):...
Page 66
Step 4: Connect ultrasonic module, buzzer module with OSOYOO Uart WiFi shield V1.3 as below connection diagram (If you complete wires in lesson 5, please skip this step)
Step 5: Connect tracking sensor module with OSOYOO Uart WiFi shield V1.3 as below connection diagram (If you complete wires in lesson 4, please skip this step) Note: 1)Please remember to adjust the sensitivity of tracking sensor modules as per lesson 4 2)Please remember to do Ultrasonic sensor direction alignment as per...
Page 68
“Osoyoo Wifi Robot APP” in Osoyoo Wifi Robot APP Google Play or Apple Store Step 1) APP installation: you need search “Osoyoo Wifi Robot APP” in Google Play or Apple Store, and then install this APP...
Page 69
Step 2) Please download the library zip file from https://osoyoo.com/driver/WiFiEsp-master.zip .Open Arduino IDE ->click Sketch ->Include Library ->Add .ZIP library, then load above zip file into Arduino. Step 3) Arduino Sketch code Installation: OSOYOO V2 Robot Car can work in two Wifi modes: STA mode and AP...
1) Please download STA mode sketch code from http://osoyoo.com/picture/V2.1_Arduino_Robot_Car/code/v2smartcar- lesson6A.zip. Unzip the file, you will see a folder “v2smartcar- lesson6A”. Open Arduino IDE -> click file -> click Open -> choose code “v2smartcar-lesson6A.ino” in v2smartcar-lesson6A folder, load the code into...
3) Upload the sketch to Arduino. Finally, click the Serial monitor window in upper right corner of Arduino IDE, you will see following result: 4) In this mode, your will see an IP address which is our LAN IP address assigned by my router.
Robot is fixed as 192.168.4.1 and It is not connected to WAN. 1) Please download sketch from following link: http://osoyoo.com/picture/V2.1_Arduino_Robot_Car/code/v2smartcar- lesson6B.zip. Unzip the file, you will see a folder “v2smartcar- lesson6B”. Open Arduino IDE -> click file -> click Open -> choose code “v2smartcar-lesson6B.ino”...
Page 73
Note: F1~F6 are further development functions in the future.
Osoyoo V2.1 Robot Car Lesson 7: Imitation Driving with Bluetooth APP Objective 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.
Osoyoo Uno R3 board Step 2: Connect Bluetooth TX/RX ports to D4,D5 with jumper caps Note: Our OSOYOO Uart WiFi shield V1.3 are connected BLE URAT TX/RX ports to D4,D5 with jumper caps by default. If you find the Bluetooth TX/RX...
Page 76
Step 3: Connect OSOYOO MODEL X motor driver module and OSOYOO Uart WiFi shield V1.3 as following graph: Remember following tips restore your motor control system to lesson 1: If your last project is lesson 1,2,3,4, your motor control system is same as Lesson 1, no need do anything.
Software Installation Open-source Download Arduino IDE here: Arduino https://www.arduino.cc/en/Main/Software?setlang Software(IDE) 7 zip is a free zip Download 7zip here for free utility that un-zips https://www.7-zip.org/ zip files...
Page 78
If you can not use Google Play to find the APP, please Download the APP from following link :https://osoyoo.com/driver/v1car.apk. 2) Install APP on Apple IOS device as following In Apple APP store search APP name “OSOYOO imitation driving”, download the APP as following and install it in your smart phone...
Step 2: Download and install Arduino sketch code from https://osoyoo.com/driver/v2smartcar-lesson7.zip. Unzip this file, and you will see a folder called v2smartcar-lesson7. Open Arduino IDE -> click file -> click Open -> choose code “v2smartcar-lesson7.ino” in v2smartcar-lesson7 folder, load the code into Arduino...
Step 2)Go to your mobile phone ->Setting ->Bluetooth setting and search a Bluetooth device called HC-02, pair it with code 1234 Step 3) Open OSOYOO imitation driving Robot APP, Click BT Search button and find the bluetooth you have paired Step 4) Turn on Engine toggle, and When you rotate your mobile phone angle, your car will change direction.
In this project, we will make robots dog-fighting game. We need two groups of Osoyoo Robot cars and each group has at least one robot car. Team A robots will Infrared signal as bullet to shoot at Team B robots and vice versa. IR Bullet from Team A will “kill”...
20cm M3 plastic screw M3 plastic pillar M3 plastic nut Hardware Installation Step 1:This project needs at least two Osoyoo V2 Arduino Robots. In each robot, Lesson 7 hardware installation must have been completed. Step 2: Install IR receiver (Lesson...
APP to your mobile phone. Step 4: After install the APP, pair the HC-02 bluetooth module to your mobile phone, and then open Osoyoo Imitation driving APP. You will find a BTSearch list, click HC-02 device to connect the bluetooth device on your car.
Need help?
Do you have a question about the V2.1 and is the answer not in the manual?
Questions and answers