You can download the user manual from:
|Buy from USA||Buy from UK||Buy from DE||Buy from IT||Buy from FR||Buy from ES||ここでご購入を！|
In this tutorial, we will use Osoyoo Sport Car for Arduino to do some simple movements. Once the car installation is completed, it is very important to test the installation and sample code. If you have passed the test movement of this lesson, it means Arduino, motor control module, motors, batteries, chassis and wire connections between these parts are all functioning well.
If you don’t complete the frame of car, please review lesson 1
|Download Arduino IDE here:
|7 zip is a free zip
utility that un-zips zip files
|Download 7zip here for free
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 , then install the software.
Step 2: Download Lesson 2 sample code , unzip the download zip file sg90car-lesson2.zip, you will see a folder called sg90car-lesson2 .
Step 3: Connect UNO R3 board to PC with USB cable, Open Arduino IDE -> click file -> click Open -> choose code “sg90car-lesson2.ino” in sg90car-lesson2 folder, load the code into arduino.
Notice: Shut off your battery or Unplug your power adapter when upload sketch code to Arduino.
#define FRONT 90 // steering to front
Step 5: Choose corresponding board/port for your project, upload the sketch to the board.
1.Disconnect Arduino from PC and confirm that the power switch of the OSOYOO Motor Shield V1.1 is off, then put a 9V battery into battery box.
(Note: make sure polar direction is correct, otherwise it can destroy your device and cause fire hazard).
2. Put the car on the ground, turn on the switch of OSOYOO Motor Shield V1.1, the car should go forward, backward, left turn, right turn, go backward, back to right, back to left, then stop.
Note: If the car does not move as per above mentioned result, you should check your wire connection, jumper caps on OSOYOO Motor Shield V1.1, battery voltage (must over 7.2v).
3. If you want to change the angel of the right or left, please edit the line 20 and 21 of the code and upload the sketch again: ( Note: the angel can’t be set more than 35)
int SHARP_RIGHT=FRONT+33; int SHARP_LEFT=FRONT-33;
4. If you want to change the speed of the car, please revise the following code of the sketch (Note: the max value is 255)
#define SPEED 190 #define HI_SPEED 220
DownLoad Url osoyoo.com