Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES |
Robot Tank Car Electronic Parts Kit
Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES |
In this lesson, we will install the most important framework in the tank car and program the car to do some simple movements. If you have passed the test movement in this lesson, it means Arduino UNO board, voltage meter,motor control driver module, motors, batteries,chassis and wire connections between these parts are all functioning well.
As your experiments in future lessons are all based on frame work of Lesson 1 and lesson 2, it is very important to test the installation and sample code in this Lesson properly.
TR300 tank car chassis x1 +Acrylic board chassis x1
OSOYOO UNO R3 board fully compatible with Arduino x1
OSOYOO V1.3 WIFI shield x1
OSOYOO Model X motor driver x1
OSOYOO Battery box x 1
OSOYOO Voltage meter x1
18650 batteries(3.7V) x 2
some screws and jumper wires
Install Arduino UNO,wifi expansion board,L298N motor driver board and voltage meter on upper acrylic chassis with M3*6 screw, M3*6 Plastic Pillars and M3 nuts.
Connect Driver board K1 (or K2) and K3 (or K4) sockets to 2 motors as per the following graph.
Connect the Uno board, battery box, Voltage Meter and driver board according below connection diagram.
Now hardware installation is almost down, you need to put the 18650 batteries inside the holder.Both flat top and button top 18650 battery can be put inside the holder. The button top battery is recommend because it is easier to figure out positive pole of the battery.If you buy flat top battery, you must make sure the positive pole of the battery is put on the + side of the holder.if you make put battery on wrong direction, it will damage the car.Before we install 18650 batteries into the box, we need burn the sample code into Arduino First.
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.
Step2 :Download Lesson One sample code from https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-lesson1.zip , unzip the download zip file, you will see a folder called tankcar-lesson1.
Step 3: Connect Arduino UNO to PC with USB cable, Open Arduino IDE -> click file -> click Open -> choose code “tankcarV2.0-lesson1.ino” in folder, load the code into arduino.(Notice: Shut off your battery or Unplug your power adapter when upload sketch code to Arduino.)
Step 4: Choose corresponding board/port for your project, upload the sketch to the board.
Please install your 18650 batteries in battery box for 18650 as per following instruction.
Disconnect Arduino from PC, put battery into battery box. When you put the car on the ground and turn on the switch on battery box if you install battery box for 18650.the car should go forward 2 seconds, then go backward 2 seconds, then left turn for 2 seconds, then right turn for 2 seconds, then stop.If the car does not move as per above mentioned result, you should check your wire connection and battery voltage firstly(must over 7.2v).
After running Lesson 1 code, the car will move forward and backward,left turn and right turn.
Lesson1: https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-1.zip
Lesson2: https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-2.zip
Lesson3: https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-3.zip
Lesson4: https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-4.zip
Lesson5: https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-5.zip
Lesson6: https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-6.zip
Lesson7: https://osoyoo.com/driver/TR300_tank/arduino_tank_carV2.0/tankcarV2.0-7.zip
DownLoad Url osoyoo.com