LAFVIN Obstacle Avoidance Smart Car Kit User manual

Obstacle Avoidance Smart Car Kit


1/78
Content
Company Profile...............................................................................................................................................................................................2
Packing list....................................................................................................................................................................................................... 4
Lesson 1 Installing IDE.................................................................................................................................................................................... 5
Lesson 2 Add Libraries and Open Serial Monitor..........................................................................................................................................20
Lesson 3 Blink................................................................................................................................................................................................ 32
Lesson 4 Installation Method......................................................................................................................................................................... 43
Lesson 5 Servo................................................................................................................................................................................................54
Lesson 6 Ultrasonic Sensor Module...............................................................................................................................................................57
Lesson 7 IR Receiver Module........................................................................................................................................................................ 62
Lesson 8 L298N Motor Driver....................................................................................................................................................................... 66
Lesson 9 IR Remote Control Car................................................................................................................................................................... 70
Lesson 10 Obstacle Avoidance.......................................................................................................................................................................74

2/78
Company Profile
Established in 2011, lafvin is a manufacturer and trader specialized in research,development and production of 2560 uno,nano boards,and
all kinds of accessories or sensors use for arduino,rasperrry.We also complete starter kits designed for interested lovers of any levels to
learn Arduino or Raspberry.We are located in Shenzhen,China.All of our products comply with international quality standards and are
greatly appreciated in a variety of different markets throughout the world.
Customer Service
We are cooperating with a lot of companies from diffirent countries.Also help them to purchase electronic component products in
china,and became the biggest supplier of them. We look forward to build cooperate with more companies in future.
By the way,We also look forward to hearing from you and any of your critical comment or suggestions.Pls email us by
As a continuous and fast growing company. We keep striving our best to offer you excellent products and quality service.
Our Store
Aliexpress store: https://www.aliexpress.com/store/1942043
Brand in Amazon:LAFVIN
Product Catalog
https://drive.google.com/drive/folders/0BwvEeRN9dKllblZING00TkhYbGs?usp=sharing

3/78
Tutorial
This tutorial include codes,labraries and lessons. It is designed for beginners. It will teach every users how to assembly the smart robot
car kit and use Arduino controller board, sensors and modules.

4/78
Packing list

5/78
Lesson 1 Installing IDE
Introduction
The Arduino Integrated Development Environment (IDE) is the software side of the Arduino platform.
In this lesson, you will learn how to setup your computer to use Arduino and how to set about the lessons that follow.
The Arduino software that you will use to program your Arduino is available for Windows, Mac and Linux. The installation process is
different for all three platforms and unfortunately there is a certain amount of manual work to install the software.
STEP 1: Go to https://www.arduino.cc/en/Main/Software and find below page.
The version available at this website is usually the latest version, and the actual version may be newer than the version in the
picture.

6/78
STEP2:Download the development software that is compatible with the operating
system of your computer. Take Windows as an example here.

7/78
Click Windows Installer.
Click JUST DOWNLOAD.

8/78
Also version 1.8.0 is available in the material we provided, and the versions of our
materials are the latest versions when this course was made.
Installing Arduino (Windows)
Install Arduino with the exe. Installation package.

9/78
Click I Agree to see the following interface

10/78
Click Next
You can press Browse… to choose an installation path or directly type in the
directory you want.

11/78
Click Install to initiate installation
Finally, the following interface appears, click Install to finish the installation.

12/78
Next, the following icon appears on the desktop
Double-click to enter the desired development environment

13/78
You may directly choose the installation package for installation and skip the contents below and jump to the next section. But if you
want to learn some methods other than the installation package, please continue to read the section.
Unzip the zip file downloaded, Double-click to open the program and enter the desired development environment

14/78

15/78
However, this installation method needs separate installation of driver.
The Arduino folder contains both the Arduino program itself and the drivers that allow the Arduino to be connected to your computer by
a USB cable. Before we launch the Arduino software, you are going to install the USB drivers.
Plug one end of your USB cable into the Arduino and the other into a USB socket on your computer. The power light on the LED will
light up and you may get a 'Found New Hardware' message from Windows. Ignore this message and cancel any attempts that Windows
makes to try and install drivers automatically for you.
The most reliable method of installing the USB drivers is to use the Device Manager. This is accessed in different ways depending on
your version of Windows. In Windows 7, you first have to open the Control Panel, then select the option to view Icons, and you should
find the Device Manager in the list.
Under ‘Other Devices’, you should see an icon for ‘unknown device’ with a little yellow warning triangle next to it. This is your
Arduino.

16/78
Right-click on the device and select the top menu option (Update Driver Software...).

17/78
You will then be prompted to either ‘Search Automatically for updated driver software’ or ‘Browse my computer for driver software’.
Select the option to browse and navigate to the X\arduino1.8.0\drivers.

18/78
Click 'Next' and you may get a security warning, if so, allow the software to be installed. Once the software has been installed, you will get a
confirmation message.
Windows users may skip the installation directions for Mac and Linux systems and jump to Lesson 1. Mac and Linux users may
continue to read this section.
Table of contents