Ks0364 keyestudio Smart Little Turtle Robot V2.0: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 243: Line 243:
| align="center" | 34
| align="center" | 34
| align="center" | female-female jumper wire  
| align="center" | female-female jumper wire  
<br>
| align="center" | 1  
| align="center" | 1  
| align="center" | <br>[[File:图片1 - jumper wire.png|300px|frameless|thumb]]<br>
| align="center" | <br>[[File:图片1 - jumper wire.png|300px|frameless|thumb]]<br>
Line 446: Line 457:
===Project 1: Getting Started with ARDUINO===
===Project 1: Getting Started with ARDUINO===


==== 1) Core Part of Robot ====
==== 1)UNO Control Board ====
When it comes to using the UNO R3 as core of our robot, the UNO is the best board to get started with electronics and coding. If this is your first experience tinkering with the platform, the UNO is the most robust board you can start playing with.  <br>
When it comes to using the UNO R3 as core of our robot, the UNO is the best board to get started with electronics and coding. If this is your first experience tinkering with the platform, the UNO is the most robust board you can start playing with.  <br>
[[image:UNO R3--.png|thumb|300px|right]]
[[image:UNO R3--.png|thumb|300px|right]]
Line 2,339: Line 2,350:


<br>
<br>
<span style="color: red">''' Pay special attention to:''' </span > <br>
<span style="color: red">''' Pay special attention to:''' <br>
You must first upload the code to the board and then plug in the Bluetooth module, otherwise the program fails to compile. Because the data transmits of Bluetooth module will occupy the microcontroller’s TX and RX pins that are also used for the code upload of microcontroller, it exists a conflict. <br>
You must first upload the code to the board and then plug in the Bluetooth module, otherwise the program fails to compile. Because the data transmits of Bluetooth module will occupy the microcontroller’s TX and RX pins that are also used for the code upload of microcontroller, it exists a conflict. </span > <br>
After uploading the code, you have to do another thing, that is, install an application of Bluetooth serial assistant on the phone. <br>
After uploading the code, you have to do another thing, that is, install an application of Bluetooth serial assistant on the phone. <br>
[[File:KS0313 5-1-4.png|400px|thumb|right]]
[[File:KS0313 5-1-4.png|400px|thumb|right]]
Line 3,147: Line 3,158:


<br>
<br>
==Resource Download==
* Download Libraries,Arduino Code,Mixly Code and softrware:
https://fs.keyestudio.com/KS0364
You can get more reference from below links: <br>
* KEYESTUDIO WIKI: http://wiki.keyestudio.com/
* ARDUINO Software: https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x
* Mixly Software WIN: https://drive.google.com/open?id=1CtP1bvZB-o4M5SfvIOOwFz-488gWsFTJ
* Mixly Software MAC: https://drive.google.com/open?id=1S0N_q73Dcyp85DjnbYm6MocZm3penOqU
* Assembly Video Link: http://video.keyestudio.com/KS0364/
== Customer Service ==
== Customer Service ==
As a continuous and fast growing technology company, we keep striving our best to offer you excellent products and quality service as to meet your expectation. We look forward to hearing from you and any of your critical comment or suggestion would be much valuable to us.  <br>
As a continuous and fast growing technology company, we keep striving our best to offer you excellent products and quality service as to meet your expectation. We look forward to hearing from you and any of your critical comment or suggestion would be much valuable to us.  <br>
You can reach out to us by simply drop a line at '''keyestudio@126.com'''  <br>  
You can reach out to us by simply drop a line at '''Fennie@keyestudio.com '''  <br>  
Thank you in advance. <br>
Thank you in advance. <br>


<br>
<br>


==Resource Download==
==Buy From==
You can get more reference from below links: <br>
 
* KEYESTUDIO WIKI: http://wiki.keyestudio.com/
*[https://www.keyestudio.com/new-keyestudio-smart-little-turtle-robot-car-kit-v20-w-graphical-programming-user-manual-english-for-arduino-robot-p0050-p0050.html  Official website]
* ARDUINO Software: https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x
 
* Detailed User Guide: https://drive.google.com/open?id=1FvsLW80D6waNIYKMx1kYc39M7TOfuHfV
*[https://www.amazon.com/dp/B07KQTG1W6  Shop on amazon]
* Bluetooth APP Download: https://drive.google.com/open?id=1DyNO5l5FlEvxHmdKwXZtcDwKpTwp_duC
* Libraries Download: https://drive.google.com/open?id=16ii-ZQTNK_Fn8KG81rhBw7JX1zQQ6nG6
* Arduino Code For Projects: https://drive.google.com/open?id=1UJefzfR56n-3BBs7Xg5ufWE4e_FgQ-YA
* Mixly Code: https://drive.google.com/open?id=13JFqccHaDWwcU2CzVTt4IgnazLztDS1K
* Mixly Software WIN: https://drive.google.com/open?id=1oQxF-AZ0Aw6OQhu_8NSvwo3L2OP0Z6cU
* Assembly Video Link: http://video.keyestudio.com/KS0364/




   [[Category: Smart Car ]]
   [[Category: Smart Car ]]

Latest revision as of 09:58, 7 January 2021

Keyestudio Smart Little Turtle Robot V2.0


Intorduction

When you tell your child how beautiful the world is, it is better to take him directly to feel it; when the child asks you why the small alarm clock always sings, it is better to open the alarm clock and explore the secret of the sound with your child. When your child has a desire for a robot gift, you might do it with him as well! Now with ARDUINO, everything is impossible.
Arduino is a convenient, flexible and easy-to-use open source electronic prototyping platform, which is suitable for entry-level developers who are new to hardware. Now our keyestudio team has upgraded the turtle robot based on the turtle generation1, adding some more interesting features. Let you enjoy the DIY fun and programming while learning with your child.

keyestudio Smart Little Turtle V2.0 is an enhanced kit based on easy-to-use and flexible Arduino platform. You are able to learn how to get started with both Arduino platform and Mixly block coding.
We provide you with complete tutorials of Arduino programming language and Mixly Graphical program to control the smart turtle robot, achieving the functions of line tracking, automatic obstacle avoidance, Bluetooth control and infrared remote control.
Furthermore, it adds a 8*8 matrix that can show you the running states of robot. The wiring for the turtle robot is more simple.You can easily build the robot with a little or even no programming experience.


Parameters

  • Motor’svoltage range: 1-6V; motor shaft length: 10mm; speed: 6.0V 100rpm/min.
  • Motor control is driven by L298P.
  • Three groups of line tracking modules, to detect black-white line with higher accuracy and can also be used for anti-fall control.
  • Ultrasonic module is used to detect whether there is obstacles or not.
  • Bluetooth wireless modulecan be paired with Bluetooth device on phone to remotely control the turtle robot.
  • Infrared receiver modulematches with an infrared remote control to control the turtle robot.
  • Add a 8*8 dot matrix module, showing the robot states.
  • Can access to the external voltage 6~ 12V


Component List

When get this turtle robot kit, at first glance, you will see the beautiful big packaging box. And each component is tidily packed inside the small box. What components you should get to build the robot? We have listed all the components as follows:

No. Component Quantity Picture
1 Keyestudio UNO R3 Main Board 1
thumb
2 Keyestudio quick connectors motor driver shield 1
thumb
3 Keyestudio quick connectors IR receiver module 1
thumb
4 Keyestudio quick connectors line tracking sensor 1
thumb
5 Keyestudio quick connectors 12FN20 motor A 1
thumb
6 Keyestudio quick connectors 12FN20 motor B 1
thumb
7 Keyestudio 8x8 Dot Matrix Module 1
thumb
8 Keyestudio quick connectors ultrasonic module 1
thumb
9 keyestudio Bluetooth HC-06 1
thumb
10 Keyestudio JMFP-4 17-button 86*40*6.5MM yellow (eco-friendly) (no battery) 1
thumb
11 Double-Connector JST-PH2.0MM-5P 24AWG blue-green-yellow-red-black wire 15CM (reverse direction) 1
thumb
12 Double-Connector JST-PH2.0MM-4P 24AWG green-yellow-red-black wire 8CM (reverse direction) 1
thumb
13 Double-Connector JST-PH2.0MM-3P 24AWG yellow-red-black wire 8CM (reverse direction) 1
thumb
14 Double-Connector JST-PH2.0MM-2P 24AWG red-black wire 160mm 2
thumb
thumb
15 Battery holder with JST-PH2.0MM-2P socket lead, black-red lead length 150mm 1
thumb
16 4-cell AA battery case 1
thumb
17 Screw M2*12MM round head 4
thumbthumbthumbthumb
18 Nut M2 nickle plating 4
thumbthumbthumbthumb
19 Screw M3*6MM round head 27
thumb thumb thumb thumb thumb thumb thumb thumb thumb
20 Screw M3*6MM flat head 2
thumb
21 Nut M3 nickle plating 5
thumb thumbthumbthumbthumb
22 Dual-pass M3*10MM Copper Pillar 8
thumb thumb thumb thumbthumb thumb thumb thumb
23 Dual-pass M3*40MM Copper Pillar 4
thumb thumb thumb thumb
24 keyestudio 9G black servo 180° with mounts 1
thumb
25 N20 motor wheel 2
thumbthumb
26 White U-type motor holder 2
thumb
27 Black plastic platform 1
thumb
28 3PI miniQ universal caster 304 stainless steel 1
thumb
29 Black-yellow Handle 3*40MM cross screwdriver 1
thumb
30 1m USB cable 1
thumb
31 Black cable ties 3*100MM 5
thumb thumb thumb thumb thumb
32 Robot bottom PCB 1
thumb
33 Robot TOP PCB 1
thumb
34 female-female jumper wire







1
thumb
35 keyestudio White Piranha LED Module 1
thumb
36 3Pin female header jumper wire length 20CM 2.54mm 1
thumb


Assembly Guide

When all the components have been counted well, cannot wait to assemble it? Follow the assembly steps here to build your own robot.
(1) How to get started with? Begin with the bottom parts.
Firstly, you should prepare the components as follows:

  • M3*6MM round-head screw *2
  • Nut M3 nickle plating *2
  • Bottom PCB*1
  • Tracking sensor *1
  • Universal caster *2


thumb
Insert two M3*6MM round-head screw into the tracking sensor, then tighten two M3 Nuts to the screws.
thumb

Back view:
thumb

Then fix the two universal casters to the bottom PCB board.
thumb
Well done as below:
thumb


(2) Next, mount the motors on the bottom board. You should first get some parts below:

  • U-type holder* 2
  • M2*12MM round-head screws *4
  • M2 Nut *4
  • Motor *2


thumb

Note: Now you can check the label A,B on the motor panel.

thumb


Firstly place four M2 Nuts inside the holes of white N20 motor holders. You should get it as below.
thumb

thumb

Then place the white holders onto the motors.
thumb
After that, fix these two motor connectors on the bottom PCB with four M2*12MM round-head screws.
thumb
Back view:
thumb



(3) Completed the above assembly, let's install the wheels for this small car.

  • wheel *2


thumb
Directly plug the two yellow wheels into the motor shaft. You get it as below.
thumb


(4) Completed the above assembly, let's install the battery case. You should get all the installed parts as below.

  • M3*6MM round-head screws *2
  • M3 Nut *2
  • Battery case *1
  • 18650 Batteries ( not included) *2


thumb

We have provided you with two kinds of battery case. Here we install the 18650 2-cell battery case for the robot. So we will take the turtle robot installed with 18650 battery case as example to start the following project sections.
Firstly you can install the 2-cell AA battery case to the bottom PCB with two M3*6MM round-head screws and M3 nuts as below.
thumb
Then insert well the batteries.
thumb

If you prefer to install another 4-cell AA battery case, please see below.
thumb

thumb


Completed the above steps, you should get prepared for wire connection of motors and tracking sensor below.

  • JST-PH2.0MM-2P 24AWG black-red wire 160mm*2
  • JST-PH2.0MM-5P 24AWG blue-green-yellow-red-black wire 15CM *1


thumb

Separately connect the 2P black-red wire 160mm to the motor A and B below.
thumb
Then connect the 5P blue-green-yellow-red-black wire 15CM to the tracking sensor below.
thumb


(5) Above parts are installed well, start to install the top parts for the robot. you should get these components as follows:

  • Top PCB *1
  • M3 Nut *1
  • M3*6MM round-head screws *9
  • M3*10MM dual-pass copper pillar *8
  • IR receiver sensor *1


thumb
According to the silk mark of bottom PCB, install the IR receiver to the PCB using a M3 nut and a M3*6MM round-head screw. Then screw 8 dual-pass copper pillars to the PCB with 8 M3*6MM round-head screws.
thumb

Followed by assembling the control board on bottom PCB. Prepare well the components below: on bottom PCB. Prepare well the components below:

  • Motor drive shield*1
  • UNO R3 board*1
  • M3*6MM round-head screws *4


thumb

First of all, tighten the UNO board to the PCB using four M3*6MM round-head screws.
thumb
Then simply stack the drive shield onto the UNO R3.
thumb


(6) Time to assemble the motor and plastic platform:

  • black plastic platform *1
  • M1.2*5 tapping screws *4
  • Servo *1
  • cross white mount *1
  • M2*8 screw *1

mount the servo to the black plastic platform with four M1.2*5 tapping screws(included in plastic platform), a cross white mount and a M2*8 screw (included for servo)
thumb

Firstly upload the code to UNO R3 to control the servo rotate to 90 degrees. Detailed method please refer to the project 3 micro servo control mentioned below.
thumb

Then fix the cross white mount to the black plastic platform with four M1.2*5 tapping screws.
thumb

thumb
Then adjust the servo towards front in 90 degrees to install it.
thumb

After that, fix the servo to the plastic platform using a M2*8 screw.
thumb

thumb

Finally, mount well another two plastic platform holders using two M2*8 screws.
thumb

thumb


(7) Until now, let’s install the ultrasonic sensor to Servo platform part.

  • ultrasonic sensor *1
  • JST-PH2.0MM-4P wire 8CM *1
  • Nylon cable ties*2


thumb
Simply connect the wire to ultrasonic sensor, and then tighten the ultrasonic sensor to the black plastic platform using two cable ties through the holes of sensor.
thumb

thumb
Next, mount them onto the top PCB like below. For the top PCB, first connect the tracking sensor to the drive shield using a JST-PH2.0MM-3P yellow-red-black wire 8CM.
thumb

After that, mount the ultrasonic platform part onto the top PCB with four M3*6MM round-head screws. Then connect well one end of the wire connected to ultrasonic sensor to the drive shield.

  • Top PCB part
  • Ultrasonic platform part
  • M3*6MM round-head screw*4


thumb

thumb


(8) Completed the above assembly, let's install the dot matrix display for this small turtle.

  • Dot matrix display *1
  • Jumper wire *4
  • M3*6MM round-head screws *4
  • M3*40MM dual-pass copper pillar* 4

Firstly, connect the jumper wires to the four pins of matrix display.
thumb thumb

Then screw the four M3*40MM copper pillars to the bottom PCB with four M3*6MM round-head screws.
thumb
After that, assemble the bottom PCB parts, 8*8 dot matrix display and top PCB parts together using four M3*6MM round-head screws.
thumb

Plug the matrix display into the bottom PCB.
thumb
Finally screw the top PCB to the bottom PCB with four M3*6MM round-head screws.
thumb

Hookup Guide:
thumb

Congrats! The whole turtle robot is installed well.
thumb


Project Details for Turtle Robot

Project 1: Getting Started with ARDUINO

1)UNO Control Board

When it comes to using the UNO R3 as core of our robot, the UNO is the best board to get started with electronics and coding. If this is your first experience tinkering with the platform, the UNO is the most robust board you can start playing with.

UNO R3--.png


Well, let's at first have a look at this UNO R3 board.
UNO.png

KS0313 5.1-1.png USB Connection

Arduino board can be powered via USB connector. Or you can program the board via the USB port.

KS0313 5.1-2.png DC Power Jack

Arduino board can be supplied with power from the DC power jack

KS0313 5.1-3.png Voltage Regulator

To control the voltage provided to the Arduino board, as well as to stabilize the DC voltage used by the processor and other components.

KS0313 5.1-4.png Crystal Oscillator

How does Arduino calculate time? by using a crystal oscillator. The number printed on the top of the Arduino crystal is 16.000H9H. It tells us that the frequency is 16,000,000 Hertz or 16MHz.

KS0313 5.1-5.png Arduino RESET

You can reset your Arduino board, for example, start the program from the very beginning. Firstly, use the RESET button(17). Or you can connect an external reset button to Arduino pin 5 labeled RESET

KS0313 5.1-6.png Pin Header(3.3V,5V,GND,Vin

KS0313 5.1-7.png3.3V - provides 3.3V output voltage
KS0313 5.1-8.png5V - provides 5V output voltage
Using 3.3 volts and 5 volts, most components can normally operate with Arduino board together.
KS0313 5.1-9.pngGND(Ground pins)- two GND headers on Arduino, each of which can be used for circuit ground.
KS0313 5.1-10.pngVin - You can supply an external power (like AC power supply) through this pin to Arduino board.

KS0313 5.1-11.png Analog Pins

Arduino UNO board has 6 analog inputs, labeled A0 through A5. These pins can read the signal from analog sensors (such as humidity sensor or temperature sensor), and convert it into the digital value that can read by microcontrollers)

KS0313 5.1-12.png Microcontroller

Each Arduino board has its own microcontroller. You can regard it as the brain of your board.
The main IC (integrated circuit) on the Arduino is slightly different from the panel pair. Microcontrollers are usually from ATMEL. Before you load a new program from the Arduino IDE, you must know what IC is on your board. This information can be checked at the top of IC.

KS0313 5.1-13.png ICSP (In-Circuit Serial Programming) Header

In most case, ICSP is the AVR, an Arduino micro-header consisting of MOSI, MISO, SCK, RESET, VCC, and GND.It is often called the SPI (serial peripheral interface) and can be considered an "extension" of the output.In fact, slave the output devices under the SPI bus host.

KS0313 5.1-14.png Power LED Indicator

Powering the Arduino, LED on means that your circuit board is correctly powered on. If LED is off, connection is wrong.

KS0313 5.1-15.png TX and RX LED

Onboard you can find two labels: RX(receive ) and TX (transmit)
First appear on digital pin 0 and 1 for serial communication;
Besides, the RX LED on the board will flash in different speed when serial data is being transmitted. The flash speed depends on the baud rate set by board. And RX LED will also flash during the receiving process.

KS0313 5.1-16.png Digital I/O

Arduino UNO has 14 digital input/output pins (of which 6 can be used as PWM outputs). These pins can be configured as digital input pin to read the logic value (0 or 1). Or used as digital output pin to drive different modules like LED, relay, etc. The pin labeled “〜” can be used to generate PWM.

KS0313 5.1-17.png AREF

Reference voltage( 0-5V) for the analog inputs. Used with analogReference().


Installing Arduino IDE

When you get the UNO development board, first you should install the software and driver of Arduino. You can see all the Arduino software versions from the link below:
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x
Or you can browse the ARDUINO website at this link, https://www.arduino.cc, pop up the following interface.
KS0313-1.png

Then click the SOFTWARE on the browse bar, you will have two options ONLINE TOOLS and DOWNLOADS.
KS0313-2.png

Click DOWNLOADS, it will appear the latest software version of ARDUINO 1.8.5 shown as below.
KS0313-3.png

In this software page, on the right side you can see the version of development software for different operating systems. So ARDUINO has a rather powerful compatibility. You should download the software that is compatible with the operating system of your computer.
In our project, we will take WINDOWS system as an example here. There are also two options under Windows system, one is installed version, the other is non-installed version. For simple installed version, first click Windows Installer, you will get the following page.

KS0313-4.png

KS0313-5.png

This way you just need to click JUST DOWNLOAD, then click the downloaded file to install it.
For non-installed version, first click Windows ZIP file, you will also get the pop-up interface as the above figure.
Click JUST DOWNLOAD, and when the ZIP file is downloaded well to your computer, you can directly unzip the file and then click the icon of ARDUINO program to start it.


Installing Arduino (Windows)

Install Arduino with the exe. Installation package
thumb

Click“I Agree”to see the following interface.
thumb

Click “Next”. Pop up the interface below.
thumb

You can press Browse… to choose an installation path or directly type