Ks0193 keyestudio Self-balancing Car: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
<br>
<br>
==Overview ==
==Overview ==
How to DIY a mini balance car on your own? This balance car kit is based on Arduino development platform. We mainly use UNO R3 as core and balance shield with built-in MPU-6050 as drive board to test the car body posture.  
How to DIY a mini balance car on your own? This balance car kit is based on Arduino development platform. We mainly use UNO R3 as core and balance shield with built-in MPU-6050 as drive board to test the car body posture. <br>
The balance shield comes with a Bluetooth interface, fully compatible with the Bluetooth XBee module (only compatible with Andriod system).
The balance shield comes with a Bluetooth interface, fully compatible with the Bluetooth XBee module (only compatible with Andriod system).<br>
When connecting to Bluetooth, you can easily control the moving direction of balance car with Bluetooth APP, making a variety of unique postures.
When connecting to Bluetooth, you can easily control the moving direction of balance car with Bluetooth APP, making a variety of unique postures.<br>
To facilitate the operation control, Bluetooth APP has both key and gravity control modes. 
To facilitate the operation control, Bluetooth APP has both key and gravity control modes. <br>
Moreover, it adds the function of adjusting the balance angle and PID parameters as well, so you can perfectly adjust and control the balance car.
Moreover, it adds the function of adjusting the balance angle and PID parameters as well, so you can perfectly adjust and control the balance car. <br>
No need to worry how to play it. We can provide you with all assembly components, as well as the corresponding installation, debugging method and program.
No need to worry how to play it. We can provide you with all assembly components, as well as the corresponding installation, debugging method and program.<br>
<br>[[image:KS0193-图片1.png|thumb|600px|]]<br>
<br>[[File:UNO R3--.png|600px|frameless|thumb]]<br>
 
<br>
== Operation Principle ==
The self-balancing car uses the power of the car body to maintain the relative balance, which is a process of dynamic balance. <br>
The power to maintain the balance of the car comes from the movement of the wheels, driven by two DC motors. <br>
The control of the car body can be divided into three control tasks as follows:<br>
* 1. Balance Control: keep the car upright and balanced by controlling the forward and backward rotation of the car’s wheel. <br>
* 2. Speed Control: realize the front and rear movement and speed control by controlling the inclination of the car. In fact, it is achieved finally by controlling the speed of the motor. <br>
* 3. Direction Control: realize the steering control by controlling the rotational speed differences between the two motors of the car. <br>
<br>
In this way, it is relatively simple to understand the three control tasks. <br>
But in the final control process, it comes down to the control of a control quantity. So there will be coupling between the three tasks, which will interfere with each other. <br>
The key is to control the car’s balance; the speed and direction control should be as smooth as possible.<br>
<br>[[File:|600px|frameless|thumb]]<br>
 
<br>
== Parameters of balance car == 
<br>
* 1.Motor parameters:<br>
<br>[[File:|600px|frameless|thumb]]<br>
* 2.Working voltage: DC 9-12V
* 3.Motor drive chip: TB6612FNG
* 4.Body posture detection: MPU-6050
* 5.Comes with power control switch
* 6.Comes with Bluetooth control switch for controlling serial communication
 
<br>
<span style=color:red> '''Pay special attention to:'''  <br>
The balance shield comes with a slide switch for controlling the Bluetooth communication. <br>
When upload the source code, must turn the slide switch OFF; otherwise, code uploading will fail. <br>
When connecting to the Bluetooth module, should turn the slide switch ON.<br>
<br>[[File:|600px|frameless|thumb]]<br>
 
<br>
== Kit List ==
The kit packaging contains all electronic components for this self-balancing car. As you work your way through each project, you will learn how to control the car. <br>

Revision as of 14:06, 25 April 2019

keyestudio Self-balancing Car


Overview

How to DIY a mini balance car on your own? This balance car kit is based on Arduino development platform. We mainly use UNO R3 as core and balance shield with built-in MPU-6050 as drive board to test the car body posture.
The balance shield comes with a Bluetooth interface, fully compatible with the Bluetooth XBee module (only compatible with Andriod system).
When connecting to Bluetooth, you can easily control the moving direction of balance car with Bluetooth APP, making a variety of unique postures.
To facilitate the operation control, Bluetooth APP has both key and gravity control modes. 
Moreover, it adds the function of adjusting the balance angle and PID parameters as well, so you can perfectly adjust and control the balance car.
No need to worry how to play it. We can provide you with all assembly components, as well as the corresponding installation, debugging method and program.

thumb


Operation Principle

The self-balancing car uses the power of the car body to maintain the relative balance, which is a process of dynamic balance.
The power to maintain the balance of the car comes from the movement of the wheels, driven by two DC motors.
The control of the car body can be divided into three control tasks as follows:

  • 1. Balance Control: keep the car upright and balanced by controlling the forward and backward rotation of the car’s wheel.
  • 2. Speed Control: realize the front and rear movement and speed control by controlling the inclination of the car. In fact, it is achieved finally by controlling the speed of the motor.
  • 3. Direction Control: realize the steering control by controlling the rotational speed differences between the two motors of the car.


In this way, it is relatively simple to understand the three control tasks.
But in the final control process, it comes down to the control of a control quantity. So there will be coupling between the three tasks, which will interfere with each other.
The key is to control the car’s balance; the speed and direction control should be as smooth as possible.

[[File:|600px|frameless|thumb]]


Parameters of balance car


  • 1.Motor parameters:


[[File:|600px|frameless|thumb]]

  • 2.Working voltage: DC 9-12V
  • 3.Motor drive chip: TB6612FNG
  • 4.Body posture detection: MPU-6050
  • 5.Comes with power control switch
  • 6.Comes with Bluetooth control switch for controlling serial communication


Pay special attention to:
The balance shield comes with a slide switch for controlling the Bluetooth communication.
When upload the source code, must turn the slide switch OFF; otherwise, code uploading will fail.
When connecting to the Bluetooth module, should turn the slide switch ON.

[[File:|600px|frameless|thumb]]


Kit List

The kit packaging contains all electronic components for this self-balancing car. As you work your way through each project, you will learn how to control the car.