|Buy from US||Buy from UK||Buy from DE||Buy from IT||Buy from FR||Buy from ES||Buy from JP|
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.
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.
Step 2: Add an IR receiver module onto the car. Install the IR receiver module with 2pcs M2.5*10 plastic screws, M2.5 plastic pillars and M2.5 plastic nuts at the front of upper chassis.
Step 3: Connect the S pin in IR receiver to D10 pin in OSOYOO basic board, GND to GND, VCC to 5V, as the following photo (Remember : DO NOT remove any existing wires installed in Lesson 1 ) :
|Download Arduin IDE here:
|7 zip is a free zip
utility that un-zips zip files
|Download 7zip here for free
Step 1: Install latest Arduin IDE (If you have Arduino IDE version after 1.1.16, please skip this step)
Download Arduin IDE from https://www.arduino.cc/en/Main/Software?setlang=en , then install the software.
Step 2: Install IRremote library into Arduin 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 Arduin IDE(Open Arduin 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 and unzip the download zip file smartcar-lesson2.zip, you will see a folder called smartcar-lesson2.
Step 4: Connect osoyoo basic board to PC with USB cable, Open Arduin IDE -> click file -> click Open -> choose code “smartcar-lesson2.ino” in smartcar-lesson2 folder, load the code into the board.(Notice: Shut off your battery or Unplug your power adapter when upload sketch code to the board.)
Step 5: Choose corresponding board and port for your project,upload the sketch to the board.
Press IR controller keys to control the car movements as per following instruction table:
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.
Copy code from following link:https://osoyoo.com/wp-content/uploads/samplecode/irdemo.zip
upload above sketch into your board 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.
I have done all the steps but my right two motors do not move. what am I doing wrong?
Please check the wirings firstly.
Do you test lesson 1 or lesson 2 With this problem you met,
if you test lesson 2, do you press any key?
Please take photos send to my email address: [email protected]