Note: ALL OSOYOO Products for Arduino are Third Party Board which is fully compatible with Arduino

Authorized Online Retailers

Where to buy the set with 18650 batteriese and USB charger

Buy from OSOYOO Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

Buy the V2.1 Robot car without Battery and charger:

Buy from OSOYOO Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

Objective

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” only Team B robots and no harm to TEAM A. So does Team B bullet.
Players use Mobile APP in Lesson 7 to control their robots to kill enemy team robots as possible. You can complete and run the sketch code in Lesson 7 and make sure motor connection is correct.

Parts and Devices

No. Picture Device Qty. Accessories Link
1 IR receiver 1 M3 Plastic Screw x 2
M3 Plastic Nut x 2
M3 Plastic Pillar x 2
Click here to buy
2 IR transmitter 1 M3 Plastic Screw x 2
M3 Plastic Nut x 2
M3 Plastic Pillar x 2
Click here to buy
3 Buzzer Sensor Module 1 M3 Plastic Screw x 1
M3 Plastic Nut x 1
M3 Plastic Pillar x 1
Click here to buy
4 20pin 15cm Female to Female Cable 1 Click here to buy
5 Hex Screwdriver 1 Click here to buy
6 M3 plastic screw 5
7 M3 plastic pillar 5
8 M3 plastic nut 5

Hardware Installation
Step 1:This project needs at least two Osoyoo Robots. In each robot, Lesson 7 hardware installation must have been completed.
Step 2: Install IR receiver (Lesson 2) and buzzer module (lesson 5) and add IR transmitter with 2pcs M3 plastic screws, pillars and nuts as following:

Step 3: Connect IR receiver, IR transmitter and buzzer module with OSOYOO Uart WiFi shield V1.3 as following graph


Software Installation:

Open-source Arduino
Software(IDE)
Download IDE here:
https://www.arduino.cc/en/Main/Software?setlang=en
7 zip is a free zip
utility that un-zips zip files
Download 7zip here for free
https://www.7-zip.org/
OSOYOO imitation driving Robot APP search “OSOYOO imitation driving” in
Google Play or Apple APP store

(If you can not find this APP in Google Play, you can directly download the APP from following link: https://osoyoo.com/driver/v1car.apk)

Step 1: Download and install sketch code from v2smartcar-lesson8. Unzip this file, and you will see folders called v2smartcar-lesson8A and v2smartcar-lesson8B

Step 2: Upload code “v2smartcar-lesson8A.ino” in v2smartcar-lesson8A folder for Team A robots and Upload code “v2smartcar-lesson8B.ino” in v2smartcar-lesson8B folder for Team B robots

Step 3: If you have installed APP in Lesson 7, please skip this step. Otherwise go to Google Play and search the APP name “Osoyoo imitation driving”, and install the APP to your mobile phone (Note: If you can not find this APP in Google Play, you can directly download the APP from following link: https://osoyoo.com/driver/v1car.apk)

Step 4: After install the APP, pair the HC-02 bluetooth module to your mobile phone, then open Osoyoo Imitation driving APP. You will find a BTSearch list, click HC-02 device to connect the bluetooth device on your car.

Play the Fighting Game:
In your APP, click Engine Toggle icon, your robot car will start moving. Use your steering wheel, gear to change your car direction. When you find your enemy, click “F1” to trigger bullet against bullet. If your bullet hits enemy car, enemy car will freeze, buzzer and dead. If you are hit by enemy’s bullet, you car will freeze and your APP will show “dead”.