Buy from USA | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
In this tutorial, we will use Osoyoo Model-3 Robot Learning Kit to make a simple remote controlled smart car. Once the car installation is completed, we will use an Infrared Remote to control the car movements including go forward, go back, left turn and right turn.
No. | Device | Picture | Qty. | Link |
1 | IR receiver | 1 | Click here to buy | |
2 | IR remote controller | 1 | Click here to buy | |
3 | Hex Screwdriver | 1 | Click here to buy | |
4 | 20pin 15cm Female to Female Cable | 1 | Click here to buy |
Hardware Installation:
Step 1: Install the smart car basic frame work as per Lesson 1 . If you have already completed installation in Lesson 1 , just keep it as is.
Step 2: Add an IR receiver module onto the car.
Note: There are some differences between two versions for OSOYOO motor shield(V1.0 and V1.1/V1.2),
If you get OSOYOO motor shield V1.0, please install the IR receiver module with 2pcs M3 plastic screws, 2pcs M3 plastic pillars and 2pcs M3 plastic nuts as follow:
Please connect the IR receiver based as follow:
If you get OSOYOO motor shield V1.1, please see this tutorial:
Osoyoo Model-3 V2.0 Robot Car Lesson 2: IR remote controlled (OSOYOO Motor Shield V1.1)
Open-source 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/ |
Step 1: Install latest IDE (If you have IDE version after 1.1.16, please skip this step)
Download IDE from https://www.arduino.cc/en/software, then install the software.
Step 2: Install IRremote library into IDE (If you have already installed IRremote library, please skip this step)
Download IRremote library from https://downloads.arduino.cc/libraries/github.com/z3t0/IRremote-4.3.1.zip, then import the library into IDE
NOTE!!
In the pop up window, go to your downloads folder, select the IRremote.zip file you downloaded just now.
Step 3: Download Lesson 2 sample code and unzip the download zip file lesson2.zip, you will see a folder called lesson2.
Step 4: Connect OSOYOO Basic Board for Arduino to PC with USB cable, Open IDE -> click file -> click Open -> choose code “lesson2.ino” in lesson2 folder, load the code into the board.
Notice: Shut off your battery or Unplug your power adapter when upload sketch code to OSOYOO Basic Board for Arduino.
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:
Note:
1) Please try to align the transmitter port of the IR remote control with the IR receiver head as the picture in the attachment.
2) Please press remote control gently and at regular intervals
Trouble shooting:
Some user found that this IR remote does not work. The reason might be the IR remote sends different button code which does not match our sample code. In order to solve this problem. Please take following steps:
Step A) Get the IR code of each button in your IR remote.
Download code from this link.
Upload above irtest.ino sketch into your OSOYOO Basic Board for Arduino and open the serial monitor in your upper-right corner.
Write down the IR code of your control buttons ◄ ► ▲ ▼ “OK” button,
DownLoad Url osoyoo.com
You must be logged in to post a comment.
When I press the forward or backward button the left wheel gets stuck and so it turns instead. I tried the steps above to see if that was the issue, but it didn’t change anything.